Skip to content

Instantly share code, notes, and snippets.

@stephen-masters
Created September 3, 2012 13:12
Show Gist options
  • Save stephen-masters/3609258 to your computer and use it in GitHub Desktop.
Save stephen-masters/3609258 to your computer and use it in GitHub Desktop.
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