Good day,
There seems to be a typo in your message :) It seems to me you're saying
that you have servlet-2.2.jar in WEB-INF/lib...I am not sure how that is
possible ( one should have overwritten the other ).
What are those two binaries you were referring to?
Cheers,
Franz
thinkboy wrote:
>
> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/ver-number-conflict-in-transitive-dependency-tf3524067s177.html#a9832410
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]