I finally find a solution. In the web-app/web-inf/lib directory, there was a
jar file who was sharing the same name with the dependent jar file.
For a reason i don't understand, maven-war-plugin used to take this old jar
file rather than the freshly one i installed in my local repository.
- Original Message -
From: "Stéphan BEUZE"
To:
Sent: Tuesday, June 28, 2011 2:05 PM
Subject: maven-war-plugin problem - jar file unexpectedly trimmed
(truncated)
Hi all,
Sorry for annonying you, but i have searched my problem in the wiki, in
the documentation,
on the web, post it in various forums, in user-list and no one seems to
be able to answer me.
Here it is :
I have a web-app configured with a pom.xml.
This web-app relies on another maven module that produce a jar file. When
i check the produced jar file size it is 8Ko
in my local repo.
When i check this same jar file in my /lib web application, it is 5Ko.
A bunch of classes are simply ignored when the jar file reaches my /lib
directory,
causing ClassNotFoundException when running the web application.
Why is my jar trimmed ?
Stephan
**
Maven 2.2.1
maven-war-plugin: 2.1.1
** Web-app pom.xml **
http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
4.0.0
record
com.company.record
1.0.0
com.company.record
record-webapp
war
record-webapp
1.0.0
com.sun.faces
jsf-api
2.0.3-b02
jar
compile
com.sun.faces
jsf-impl
2.0.3-b02
jar
compile
org.primefaces
primefaces
2.2
jar
compile
org.primefaces.themes
redmond
1.0.0
com.company.record
record-dao
1.0.0
jar
compile
record
org.codehaus.mojo
jboss-maven-plugin
1.5.0
web
maven-war-plugin
2.1.1
default-war
package
war
false
prime-repo
Prime Technology Maven Repository
http://repository.prime.com.tr
default
** record-dao pom.xml **
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";
xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
4.0.0
record
com.company.record
1.0.0
com.company.record
record-dao
1.0.0
jar
record-dao
org.hibernate
hibernate-entitymanager
3.6.4.Final
cglib
cglib
antlr
antlr
jta
javax.transaction
commons-collections
commons-collections
hibernate-commons-annotations
org.hibernate
postgresql
postgresql
8.3-606.jdbc4
jar
compile
com.company.record
record-commun
1.0.0
jar
compile
-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org
-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org