diff options
Diffstat (limited to 'aspectjmatcher')
-rw-r--r-- | aspectjmatcher/pom.xml | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/aspectjmatcher/pom.xml b/aspectjmatcher/pom.xml index b183bd3d6..c398420af 100644 --- a/aspectjmatcher/pom.xml +++ b/aspectjmatcher/pom.xml @@ -11,18 +11,21 @@ </parent> <artifactId>aspectjmatcher</artifactId> - <packaging>pom</packaging> <name>AspectJ Matcher</name> <build> <plugins> - <!-- skip creation of test-jar in here --> + <!-- Skip creation of main + test JARs --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <executions> <execution> + <id>default-jar</id> + <phase>none</phase> + </execution> + <execution> <id>test-jar</id> <phase>none</phase> </execution> @@ -116,6 +119,31 @@ </executions> </plugin> + <!-- Caveat: Attaching the flattened POM needs packaging=jar, so do not use packaging=pom for this module --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>flatten-maven-plugin</artifactId> + <executions> + <!-- Remove dependencies declared in this POM (if any) from uber JAR and strip down POM --> + <execution> + <id>flatten</id> + <phase>process-resources</phase> + <goals> + <goal>flatten</goal> + </goals> + <configuration> + <flattenMode>oss</flattenMode> + <pomElements> + <dependencies>remove</dependencies> + <repositories>remove</repositories> + </pomElements> + <outputDirectory>${project.build.directory}</outputDirectory> + <flattenedPomFilename>flattened-pom.xml</flattenedPomFilename> + </configuration> + </execution> + </executions> + </plugin> + </plugins> </build> </project> |