Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Maven Jar plugin example
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<executions>
<execution>
<id>factmodel</id>
<!--
Use the Jar plugin to produce a reduced JAR containing only those model classes
to be used as facts in Drools/Guvnor.
-->
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>factmodel</classifier>
<includes>
<include>com/something/myrules/facts/**</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment