Skip to content

Instantly share code, notes, and snippets.

@odavid
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odavid/b3c24bf0e2295b8a0ada to your computer and use it in GitHub Desktop.
Save odavid/b3c24bf0e2295b8a0ada to your computer and use it in GitHub Desktop.
Simple Maven Mixin Consumer
<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