hi, all
I hava a problem here. My project deps on spring, so I add spring(the whole
package) as my deps, since my project also deps on struts2-spring-plugin,
and the plugin deps on spring-core, spring-beans etc. When i package my
project, maven will both copy spring, spring-core, spring-beans... to
target, how to avoid this.
I have add exclusions:
<dependency>
  <groupId>org.apache.struts</groupId>
  <artifactId>struts2-spring-plugin</artifactId>
  <version>2.0.8</version>
  <exclusions>
   <exclusion>
    <artifactId>org.springframework</artifactId>
    <groupId>spring-core</groupId>
   </exclusion>
   <exclusion>
    <artifactId>org.springframework</artifactId>
    <groupId>spring-beans</groupId>
   </exclusion>
   <exclusion>
    <artifactId>org.springframework</artifactId>
    <groupId>spring-context</groupId>
   </exclusion>
   <exclusion>
    <artifactId>org.springframework</artifactId>
    <groupId>spring-web</groupId>
   </exclusion>
  </exclusions>
 </dependency>

Reply via email to