Last active
August 29, 2015 14:06
-
-
Save odavid/b3c24bf0e2295b8a0ada to your computer and use it in GitHub Desktop.
Simple Maven Mixin Consumer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>mixin-example</groupId> | |
<artifactId>mixin-consumer</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<name>${project.groupId}:${project.artifactId}</name> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.github.odavid.maven.plugins</groupId> | |
<artifactId>mixin-maven-plugin</artifactId> | |
<version>0.1-alpha-23</version> | |
<extensions>true</extensions> | |
<configuration> | |
<mixins> | |
<mixin> | |
<groupId>mixin-example</groupId> | |
<artifactId>echo-mixin</artifactId> | |
<version>${project.version}</version> | |
</mixin> | |
</mixins> | |
</configuration> | |
</plugin> | |
<!-- | |
Since we did not define the plugin within the mixin (only the pluginManagement section), then we state here which plugins will be executed | |
We can always add configuration/executions to the plugins and it will be merged with the parent pom and the mixins we declared earlier. | |
--> | |
<plugin> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.7</version> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment