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  **
<project xmlns="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";>
<modelVersion>4.0.0</modelVersion>
<parent>
 <artifactId>record</artifactId>
 <groupId>com.company.record</groupId>
 <version>1.0.0</version>
</parent>
<groupId>com.company.record</groupId>
<artifactId>record-webapp</artifactId>
<packaging>war</packaging>
<name>record-webapp</name>
<version>1.0.0</version>

<dependencies>
 <!-- JSF 2.0 -->
 <dependency>
  <groupId>com.sun.faces</groupId>
  <artifactId>jsf-api</artifactId>
  <version>2.0.3-b02</version>
  <type>jar</type>
  <scope>compile</scope>
 </dependency>
 <dependency>
  <groupId>com.sun.faces</groupId>
  <artifactId>jsf-impl</artifactId>
  <version>2.0.3-b02</version>
  <type>jar</type>
  <scope>compile</scope>
 </dependency>

 <!-- Primefaces -->
 <dependency>
  <groupId>org.primefaces</groupId>
  <artifactId>primefaces</artifactId>
  <version>2.2</version>
  <type>jar</type>
  <scope>compile</scope>
 </dependency>
 <dependency>
  <groupId>org.primefaces.themes</groupId>
  <artifactId>redmond</artifactId>
  <version>1.0.0</version>
 </dependency>

 <!-- Internal dependencies -->
 <dependency>
  <groupId>com.company.record</groupId>
  <artifactId>record-dao</artifactId>
  <version>1.0.0</version>
  <type>jar</type>
  <scope>compile</scope>
 </dependency>
</dependencies>

<build>
 <finalName>record</finalName>
 <plugins>
  <plugin>
   <groupId>org.codehaus.mojo</groupId>
   <artifactId>jboss-maven-plugin</artifactId>
   <version>1.5.0</version>
   <configuration>
    <serverName>web</serverName>
   </configuration>
  </plugin>
  <plugin>
   <artifactId>maven-war-plugin</artifactId>
   <version>2.1.1</version>
   <executions>
    <execution>
     <id>default-war</id>
     <phase>package</phase>
     <goals>
      <goal>war</goal>
     </goals>
    </execution>
   </executions>
   <configuration>
    <useCache>false</useCache>
   </configuration>
  </plugin>
 </plugins>
</build>

<repositories>
 <repository>
  <id>prime-repo</id>
  <name>Prime Technology Maven Repository</name>
  <url>http://repository.prime.com.tr</url>
  <layout>default</layout>
 </repository>
</repositories>
</project>

**  record-dao pom.xml  **
   <project
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";>
<modelVersion>4.0.0</modelVersion>
<parent>
 <artifactId>record</artifactId>
 <groupId>com.company.record</groupId>
 <version>1.0.0</version>
</parent>

<groupId>com.company.record</groupId>
<artifactId>record-dao</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>record-dao</name>

<dependencies>
 <!-- Hibernate -->
 <dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-entitymanager</artifactId>
  <version>3.6.4.Final</version>
  <exclusions>
   <exclusion>
    <artifactId>cglib</artifactId>
    <groupId>cglib</groupId>
   </exclusion>
   <exclusion>
    <artifactId>antlr</artifactId>
    <groupId>antlr</groupId>
   </exclusion>
   <exclusion>
    <artifactId>jta</artifactId>
    <groupId>javax.transaction</groupId>
   </exclusion>
   <exclusion>
    <artifactId>commons-collections</artifactId>
    <groupId>commons-collections</groupId>
   </exclusion>
   <exclusion>
    <artifactId>hibernate-commons-annotations</artifactId>
    <groupId>org.hibernate</groupId>
   </exclusion>
  </exclusions>
 </dependency>

 <!-- Postgresql -->
 <dependency>
  <groupId>postgresql</groupId>
  <artifactId>postgresql</artifactId>
  <version>8.3-606.jdbc4</version>
  <type>jar</type>
  <scope>compile</scope>
 </dependency>

 <!-- Internal dependencies -->
 <dependency>
  <groupId>com.company.record</groupId>
  <artifactId>record-commun</artifactId>
  <version>1.0.0</version>
  <type>jar</type>
  <scope>compile</scope>
 </dependency>
</dependencies>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to