G'Day,
I'm not sure that you can use a pom dependency this way. I think that
you need to specify each dependency (as a jar) separately.
Furthermore, I think that you will need to specify them again as
additional dependencies in the EAR project.
Steve C
On 07/05/2008, at 9:39 PM, [EMAIL PROTECTED] wrote:
Hi,
yes I am totaly sure about that. I do not build within the workspace
but in a seperate folder where I checked out the sources with
tortoise.
The libs are not within the SVN repos.
And when building with scope provided, the libs are not within the
WEB-INF/lib aswell.
regards,
Alexander
Zitat von Stephen Coy <[EMAIL PROTECTED]>:
Are you sure that your IDE has not put the jars in the WEB-INF/lib
directory for you?
That is the usual reason for this behaviour.
Cheers
On 07/05/2008, at 6:22 PM, [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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]