Permalink
Browse files

Add alternative for disabling maven-jar-plugin

  • Loading branch information...
1 parent 96291d0 commit bb4c16a8605f351ab22ded9afab6b9f7cfe4fffb @rnc rnc committed May 11, 2012
Showing with 12 additions and 3 deletions.
  1. +12 −3 README.md
View
@@ -30,7 +30,7 @@ This can be useful if you're wrapping another build system's output with Maven p
</execution>
</executions>
</plugin>
-
+
<plugin>
<groupId>org.commonjava.maven.plugins</groupId>
<artifactId>build-migration-maven-plugin</artifactId>
@@ -65,5 +65,14 @@ By default, the `main-artifact` goal will run in the `package` phase, which mean
This tells the jar plugin to skip all classes, and then skip building the jar (since it would be empty).
-
-
+Another way would be to bind the maven-jar-plugin to a disabled phase:
+
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>default-jar</id>
+ <phase>DISABLED</phase>
+ </execution>
+ </executions>
+ </plugin>

0 comments on commit bb4c16a

Please sign in to comment.