You probably should look into using maven-dependency-plugin now, since the old dependency-maven-plugin moved over to apache and has lost of new features, but also supports everything in the old 1.0.
-----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Thinkboy Sent: Wednesday, April 04, 2007 2:03 AM To: [email protected] Subject: ver number conflict in transitive dependency hi, my servlet-api version is conflict due to transitive dep e.g. i) commons-logging-1.0.3.jar -> servlet-api-2.2.jar ii) jetty-6.1.1.jar -> servlet-api-2.2.jar after I packaged all to /lib directory, in which both servlet-api-2.2.jar and servlet-api-2.2.jar are located. when I try to run application which is built with Jetty. it throws Exception bcos, jetty app loaded servlet-api-2.2.jar API instead of servlet-api-2.2.jar my question: what is the correct way to handle ver conflict? 1) possible to exclue this servlet-api-2.2.jar in dependency-maven-plugin ? 2) or the worse case, a maven plugin that I can specify in pom.xml to remove jar in /lib ? I am using depency-maven-plugin to generate a set of all necessary jar in /lib <!-- PLUGIN: dependency, copy all depended jars to lib --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>dependency-maven-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory> ${project.build.directory}/lib </outputDirectory> </configuration> </execution> </executions> </plugin> pls advise ~manchi --------------------------------------------------------------------- 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]
