Read this:
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html

[EMAIL PROTECTED] wrote:
> Hello everybody,
> 
> I am currently having some trouble with the war plugin and
> could need
> some help.
> The issue is about the manifest file and adding the dependent jar to
> its classpath BUT excluding it from the WEB-INF/lib folder.
> 
> http://maven.apache.org/plugins/maven-war-plugin/examples/war-
> manifest-guide.html 
> 
> I already read the war-manifest-guide and set the attribute
> <optional>true</optional> in the dependency. Having done this, the
> manifest file is being written absolutely correct. All the jars are
> being placed into the classpath.
> But the jars as well are being placed into the WEB-INF/lib folder
> which I expected not to happen, regarding the three cases at the
> bottom of the guide. 
> 
> The dependency  I use is a pom that wraps all the dependent
> jars together.
> 
>                               <dependency>
> 
> <groupId>com.example.eap</groupId>
> 
> <artifactId>EAP_3rd-party_Library</artifactId>
> 
> <version>0.0.1-SNAPSHOT</version>
>                                       <type>pom</type>
>                                       <optional>true</optional>
>                               </dependency>
> 
> The reason why I am doing this is that I have an EAR as the
> top level
> artifact that is being created. Within this EAR I have three
> WARs that
> all do use the same dependencies and need to share them.
> That?s why I
> want to set those jars to optional in the WARs and reinclude them in
> the EAR. 
> 
> 
> 
> This does all work perfectly fine except that the jars are being
> placed into the WEB-INF/lib though set to optional in the pom.
> I already tried to set the dependencie to provided aswell, but this
> just acted as if I had set only the provided scope. No jars in
> WEB-INF/lib BUT no Classpath inclusion in manifest file aswell.
> 
> Does anyone have an idea or suggenstion how I could fix this
> or what I
> might be doing wrong?
> 
> 
> Thank you for any help,
>                                  Alexander
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to