You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Vogel,Chris" <ch...@edwardjones.com> on 2008/08/22 23:41:52 UTC

Using optional packages with EARs

I'm relatively new to Maven and am trying to build an EAR file, while
using the optional packages capability of our application server.  So,
in my project, I have an EJB module that has a dependency on
commons-lang, with no scope definition (so, compile).  In the EAR
module, I specify the EJB module as a dependency and specify to
maven-ear-plugin to add extensions to the manifest.  When I do that, I
get commons-lang in the Extension-List manifest entry, but the JAR file
is also included in the EAR file.

I'm sure it is something simple I am missing, but I have not been able
to find it.  Has anyone every tried this and succeeded?

Thank you,

Chris
 
 If you are not the intended recipient of this message (including attachments), or if you have received this message in error, immediately notify us and delete it and any attachments.  If you no longer wish to receive e-mail from Edward Jones, please send this request to messages@edwardjones.com.  You must include the e-mail address that you wish not to receive e-mail communications.  For important additional information related to this e-mail, visit www.edwardjones.com/US_email_disclosure

Second try: Using optional packages with EARs

Posted by "Vogel,Chris" <ch...@edwardjones.com>.
I'm re-posting because I didn't get any response the first time.  Any
help would be greatly appreciated.

Just to let you know, I know that I have the option of hand generating
the manifest file, but I'd prefer that it be generated.

Thanks,

Chris

-----Original Message-----
From: Vogel,Chris
Sent: Friday, August 22, 2008 4:42 PM
To: users@maven.apache.org
Subject: Using optional packages with EARs

I'm relatively new to Maven and am trying to build an EAR file, while
using the optional packages capability of our application server.  So,
in my project, I have an EJB module that has a dependency on
commons-lang, with no scope definition (so, compile).  In the EAR
module, I specify the EJB module as a dependency and specify to
maven-ear-plugin to add extensions to the manifest.  When I do that, I
get commons-lang in the Extension-List manifest entry, but the JAR file
is also included in the EAR file.

I'm sure it is something simple I am missing, but I have not been able
to find it.  Has anyone every tried this and succeeded?

Thank you,

Chris
 
 If you are not the intended recipient of this message (including
attachments), or if you have received this message in error, immediately
notify us and delete it and any attachments.  If you no longer wish to
receive e-mail from Edward Jones, please send this request to
messages@edwardjones.com.  You must include the e-mail address that you
wish not to receive e-mail communications.  For important additional
information related to this e-mail, visit
www.edwardjones.com/US_email_disclosure

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org