|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
EAR LibrariesI use maven to build my ear projects. I've found that the majority of
my build process is spent copying jar dependencies into the project's ear folder. Is there some way with Glassfish that I can deploy an ear with jar libraries that are not located in the ear folder? I would like to point the ear to the required dependencies in my .m2 directory. This way I can avoid copying the jars around each time I build my ear. Several of the projects use different versions of the same libraries so loading them into a non-ear class loader might not work for me. Thanks for any help, Kem Elbrader ElementLine --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: EAR LibrariesYou can use --libraries=<comma separated path to library jar> option
while deploying your app. It accepts both fully qualified path as well as relative path. The relative path is relative to domain_dir/lib/applib dir. See GlassFish documentation or "asadmin deploy --help" for more information about this option. Kem Elbrader wrote: > I use maven to build my ear projects. I've found that the majority of > my build process is spent copying jar dependencies into the project's > ear folder. Is there some way with Glassfish that I can deploy an ear > with jar libraries that are not located in the ear folder? I would > like to point the ear to the required dependencies in my .m2 > directory. This way I can avoid copying the jars around each time I > build my ear. > > Several of the projects use different versions of the same libraries > so loading them into a non-ear class loader might not work for me. > > Thanks for any help, > Kem Elbrader > ElementLine > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: EAR LibrariesSahoo, does the -libraries option tie these jars soley to the EARs classloader, rather than the overall container class loader?
[Message sent by forum member 'whartung' (whartung)] http://forums.java.net/jive/thread.jspa?messageID=303613 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: EAR LibrariesNo, libraries specified using --libraries are not tied to container
class loader; they are only available to apps that specifically use them. Thanks, Sahoo glassfish@... wrote: > Sahoo, does the -libraries option tie these jars soley to the EARs classloader, rather than the overall container class loader? > [Message sent by forum member 'whartung' (whartung)] > > http://forums.java.net/jive/thread.jspa?messageID=303613 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |