Created
September 3, 2012 13:12
-
-
Save stephen-masters/3609258 to your computer and use it in GitHub Desktop.
Maven Jar plugin example
This file contains 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
<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