Hi,

I'm having a problem where a project using the assembly plugin is
copying two versions of the jaxb-api jar (1.0.5 & 2.0) to the
WEB-INF/lib directory of a webapp the assembly is creating.

I tried using dependency management to explicitly specify to use version
2.0 like this:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.0</version>
        </dependency>
    </dependencies>
</dependencyManagement>


But it is still including version 1.0.5! I am using Maven 2.0.8 and
Assembly Plugin 2.1. I have also uncluded the projects pom.xml and
assembly dep.xml.

Thanks,

Matias.


 

<assembly>
    <id>bin</id>
    
    <formats>
        <format>tar.gz</format>
    </formats>

    <dependencySets>
        <!--
            ================================================================================
            Unpack dependecy modules
            ================================================================================
        -->        
        <dependencySet>
            <outputDirectory>/modules/thelma-core</outputDirectory>
            <unpack>true</unpack>
            <scope>runtime</scope>
            <includes>
                <include>icsglobal:thelma-core</include>
            </includes>
        </dependencySet>       

        <dependencySet>
            <outputDirectory>/modules/thelma-mainapp</outputDirectory>
            <unpack>true</unpack>
            <scope>runtime</scope>
            <includes>
                <include>icsglobal:thelma-mainapp</include>
            </includes>
        </dependencySet>

        <!--
            ================================================================================
            Create the WEBAPP 
            ================================================================================
        -->
        <dependencySet>
            <outputDirectory>webapp/ROOT</outputDirectory>
            <unpack>true</unpack>
            <scope>runtime</scope>
            <includes>
                <include>icsglobal:thelma-us-web</include>
            </includes>
        </dependencySet>
        
        <!-- This places all runtime libraries into the WEB-INF lib -->
        <dependencySet>
            <outputDirectory>webapp/ROOT/WEB-INF/lib</outputDirectory>
            <unpack>false</unpack>
            <scope>runtime</scope>
            <excludes>
            	<exclude>javax.servlet:jsp-api</exclude>
            	<exclude>javax.servlet:servlet-api</exclude>            	
            </excludes>
        </dependencySet>          
		
    </dependencySets>
    
    <fileSets>
        
    </fileSets>    
    
</assembly>
<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>icsglobal</groupId>
    <artifactId>thelma-us-assembly</artifactId>
    <name>ICSGlobal THELMA-US Assembly</name>
    <version>1.2-SNAPSHOT</version>
    <url>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</url>
    <packaging>jar</packaging>
  
    <repositories>
        <repository>
            <id>central</id>
            <name>ICS Global Maven Repository</name>
            <url>xxxxxxxxxxxxxxxxxxxxxxxx</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>            
        </repository>        
    </repositories>
    

    <build>

        <plugins>

            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>

                    <execution>
                        <id>1</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <tasks>
                                <echo>${project.version}</echo>
                            </tasks>
                        </configuration>
                    </execution>

                </executions>
            </plugin>

            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.1</version>
                <configuration>
                    <descriptors>
                        <descriptor>src/main/assembly/dep.xml</descriptor>
                    </descriptors>
                </configuration>
            </plugin>
        </plugins>

    </build>
    
    <dependencyManagement>
	   <dependencies>
	     <dependency>
	       <groupId>javax.xml.bind</groupId>
	       <artifactId>jaxb-api</artifactId>
	       <version>2.0</version>
	     </dependency>	     
	   </dependencies>
 	</dependencyManagement>

    <dependencies>

        <dependency>
            <groupId>icsglobal</groupId>
            <artifactId>thelma-core</artifactId>
            <version>2.5-SNAPSHOT</version>
        </dependency>

        <dependency>
            <groupId>icsglobal</groupId>
            <artifactId>thelma-mainapp</artifactId>
            <version>1.13</version>
        </dependency>        
      
        <dependency>
            <groupId>icsglobal</groupId>
            <artifactId>thelma-us-web</artifactId>
            <version>1.1-SNAPSHOT</version>
        </dependency>            

        <dependency>
            <groupId>icsglobal</groupId>
            <artifactId>thelma-webservices</artifactId>
            <version>1.5.1-SNAPSHOT</version>
        </dependency>                

        <dependency>
            <groupId>commons-dbcp</groupId>
            <artifactId>commons-dbcp</artifactId>
            <version>1.2.1</version>
        </dependency>
        
    </dependencies>

</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to