Exclude Can from War Maven 3

We need to exclude several cans from the war ... we use maven 3 in weblogic.

I tried

<packagesourceexludes>...and <warsournceexludes..>  

but does not work.

Any other way to do this.

Thanks Vijay

+2
source share
3 answers
<dependency>
  <groupId>xerces</groupId>
  <artifactId>xerces</artifactId>
  <version>2.4.0</version>
  <scope>provided</scope>
</dependency>

Therefore, it is not necessary to exclude from each dependence. This solved my problem ... Thanks for all your answer ...

+5
source

You need to use <packagingExcludes>as described here . Cut / paste example for reference ...

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.2</version>
        <configuration>
          <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
  ...
</project>
+2
source

. , , , ( mvn: tree).

0

All Articles