diff options
Diffstat (limited to 'aspectjrt')
-rw-r--r-- | aspectjrt/pom.xml | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/aspectjrt/pom.xml b/aspectjrt/pom.xml index 930ba02ca..5e41a1558 100644 --- a/aspectjrt/pom.xml +++ b/aspectjrt/pom.xml @@ -11,7 +11,6 @@ </parent> <artifactId>aspectjrt</artifactId> - <packaging>pom</packaging> <name>AspectJ Runtime</name> <dependencies> @@ -25,12 +24,16 @@ <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> @@ -118,6 +121,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> |