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

Commit f86ca71

Browse files
committed
Updated pom.xml to be able to release expected jars
Change-Id: I1f42bab5301bbb926c248a8b02e38e453c50da55
1 parent 9f192fd commit f86ca71

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
lines changed

bundles/jaxrs-ri/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@
386386
<artifactId>maven-antrun-plugin</artifactId>
387387
<executions>
388388
<execution>
389-
<id>copy</id>
390-
<phase>install</phase>
389+
<id>xcopy</id>
390+
<phase>package</phase>
391391
<configuration>
392392
<tasks>
393393
<jar destfile="${project.build.directory}/${artifactId}.jar" update="true">

examples/groovy/pom.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
<version>1.6</version>
111111
<executions>
112112
<execution>
113+
<id>1</id>
113114
<phase>generate-resources</phase>
114115
<goals>
115116
<goal>addSources</goal>
@@ -120,10 +121,55 @@
120121
<goal>compileTests</goal>
121122
<goal>removeStubs</goal>
122123
<goal>removeTestStubs</goal>
124+
<goal>groovydoc</goal>
123125
</goals>
124126
</execution>
125127
</executions>
126128
</plugin>
129+
130+
<plugin>
131+
<groupId>org.apache.maven.plugins</groupId>
132+
<artifactId>maven-antrun-plugin</artifactId>
133+
<executions>
134+
<execution>
135+
<id>2</id>
136+
<phase>generate-resources</phase>
137+
<configuration>
138+
<target>
139+
<jar destfile="${project.build.directory}/${project.artifactId}-javadoc.jar">
140+
<zipfileset dir="${project.build.directory}/gapidocs"/>
141+
</jar>
142+
</target>
143+
</configuration>
144+
<goals>
145+
<goal>run</goal>
146+
</goals>
147+
</execution>
148+
</executions>
149+
</plugin>
150+
<plugin>
151+
<groupId>org.codehaus.mojo</groupId>
152+
<artifactId>build-helper-maven-plugin</artifactId>
153+
<version>3.0.0</version>
154+
<executions>
155+
<execution>
156+
<id>3</id>
157+
<phase>generate-resources</phase>
158+
<goals>
159+
<goal>attach-artifact</goal>
160+
</goals>
161+
<configuration>
162+
<artifacts>
163+
<artifact>
164+
<file>${project.build.directory}/${project.artifactId}-javadoc.jar</file>
165+
<type>jar</type>
166+
<classifier>javadoc</classifier>
167+
</artifact>
168+
</artifacts>
169+
</configuration>
170+
</execution>
171+
</executions>
172+
</plugin>
127173
</plugins>
128174
</build>
129175
</project>

0 commit comments

Comments
 (0)