Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Commit

Permalink
Updated pom.xml to be able to release expected jars
Browse files Browse the repository at this point in the history
Change-Id: I1f42bab5301bbb926c248a8b02e38e453c50da55
  • Loading branch information
jansupol committed Apr 10, 2018
1 parent 9f192fd commit f86ca71
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundles/jaxrs-ri/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>install</phase>
<id>xcopy</id>
<phase>package</phase>
<configuration>
<tasks>
<jar destfile="${project.build.directory}/${artifactId}.jar" update="true">
Expand Down
46 changes: 46 additions & 0 deletions examples/groovy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<version>1.6</version>
<executions>
<execution>
<id>1</id>
<phase>generate-resources</phase>
<goals>
<goal>addSources</goal>
Expand All @@ -120,10 +121,55 @@
<goal>compileTests</goal>
<goal>removeStubs</goal>
<goal>removeTestStubs</goal>
<goal>groovydoc</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>2</id>
<phase>generate-resources</phase>
<configuration>
<target>
<jar destfile="${project.build.directory}/${project.artifactId}-javadoc.jar">
<zipfileset dir="${project.build.directory}/gapidocs"/>
</jar>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>3</id>
<phase>generate-resources</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/${project.artifactId}-javadoc.jar</file>
<type>jar</type>
<classifier>javadoc</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit f86ca71

Please sign in to comment.