Permalink
Browse files

added maven assembly plugin config. for packaging examples

  • Loading branch information...
shikhar committed May 30, 2010
1 parent f3c072f commit b2a74935d4d1c1a78666442dc4a11cab18d7c4ad
Showing with 33 additions and 0 deletions.
  1. +18 −0 pom.xml
  2. +15 −0 src/assemble/examples.xml
View
18 pom.xml
@@ -110,6 +110,24 @@
<artifactId>maven-release-plugin</artifactId>
<version>2.0</version>
</plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-4</version>
+ <configuration>
+ <descriptors>
+ <descriptor>src/assemble/examples.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
View
@@ -0,0 +1,15 @@
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>examples</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <fileSets>
+ <fileSet>
+ <directory>src/main/java/examples</directory>
+ <includes/>
+ <outputDirectory>examples</outputDirectory>
+ </fileSet>
+ </fileSets>
+</assembly>

0 comments on commit b2a7493

Please sign in to comment.