EAR Libraries

View: New views
4 Messages — Rating Filter:   Alert me  

EAR Libraries

by Kem Elbrader-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...


Re: EAR Libraries

by Sahoo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You 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 Libraries

by glassfish-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...


Re: EAR Libraries

by Sahoo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No, 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@...

LightInTheBox - Buy quality products at wholesale price!