Hello,  my webapp depends on commons-logging-1.1 which has a punch of
optional jars and they are pull into my WEB-INF/lib directory
is it a expected behavior, the optional depdendency seems to disagree with
that


here is a pom to produce a the issue, makesure to create a empty
src/main/webapp/WEB-INF/web.xml file before run mvn package


<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>


 <groupId>com.mycom</groupId>
 <artifactId>mycom-webapp</artifactId>
 <version>1.0-SNAPSHOT</version>

 <name>mycom-webapp</name>

 <packaging>war</packaging>


 <dependencies>

   <dependency>
     <groupId>commons-logging</groupId>
     <artifactId>commons-logging</artifactId>
     <version>1.1</version>
   </dependency>

 </dependencies>

</project>



I am using maven-2.0.6

Reply via email to