Permalink
Browse files

added code to the pom to generate an empty javadoc jar

  • Loading branch information...
1 parent fbe3d86 commit 669ce711b5f0fbfb8ade6447550a9b7caed04e60 @mstump mstump committed May 29, 2012
Showing with 30 additions and 11 deletions.
  1. +20 −11 pom.xml
  2. +10 −0 scripts/emtpy-jar.sh
View
31 pom.xml
@@ -50,17 +50,6 @@
<testSourceDirectory>test</testSourceDirectory>
<plugins>
-
- <plugin>
- <groupId>com.sourceninja</groupId>
- <artifactId>sourceninja-maven-plugin</artifactId>
- <version>0.1.1-SNAPSHOT</version>
- <configuration>
- <id>${env.PRODUCT_ID}</id>
- <token>${env.PRODUCT_TOKEN}</token>
- </configuration>
- </plugin>
-
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>2.6</version>
@@ -97,6 +86,26 @@
</plugin>
<plugin>
+ <artifactId>exec-maven-plugin</artifactId>
+ <groupId>org.codehaus.mojo</groupId>
+ <executions>
+ <execution><!-- Run our version calculation script -->
+ <id>Generate Empty Javadoc</id>
+ <phase>package</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${basedir}/scripts/emtpy-jar.sh</executable>
+ <arguments>
+ <argument>${project.build.directory}/${name}-${version}-javadoc.jar</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
View
@@ -0,0 +1,10 @@
+#!/bin/sh
+OUTPATH=$1
+
+UUID=`uuidgen`
+INPATH="/tmp/$UUID"
+
+mkdir -p $INPATH
+echo "Nobody here but us chickens" > $INPATH/README
+jar cf $OUTPATH -C $INPATH README
+rm -rf $INPATH

0 comments on commit 669ce71

Please sign in to comment.