Skip to content
This repository was archived by the owner on Aug 17, 2019. It is now read-only.

Commit af95640

Browse files
committed
Fix pom.xml for easier maven deployment
1 parent af92c91 commit af95640

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

pom.xml

+31-4
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,19 @@
156156
</configuration>
157157
<executions>
158158
<execution>
159+
<id>scala-compile-first</id>
160+
<phase>process-resources</phase>
159161
<goals>
162+
<goal>add-source</goal>
160163
<goal>compile</goal>
164+
</goals>
165+
</execution>
166+
167+
<execution>
168+
<id>scala-test-compile</id>
169+
<phase>process-test-resources</phase>
170+
<goals>
171+
<!--<goal>add-source</goal>-->
161172
<goal>testCompile</goal>
162173
</goals>
163174
</execution>
@@ -167,31 +178,47 @@
167178
<plugin>
168179
<groupId>org.apache.maven.plugins</groupId>
169180
<artifactId>maven-surefire-plugin</artifactId>
170-
<version>2.9</version>
181+
<version>2.12.4</version>
171182
<configuration>
172183
<useFile>false</useFile>
173184
<reportFormat>plain</reportFormat>
174185
</configuration>
175186
</plugin>
176187

188+
<plugin>
189+
<groupId>org.apache.maven.plugins</groupId>
190+
<artifactId>maven-javadoc-plugin</artifactId>
191+
<version>2.9</version>
192+
<executions>
193+
<execution>
194+
<id>attach-javadoc</id>
195+
<goals>
196+
<goal>jar</goal>
197+
</goals>
198+
<phase>package</phase>
199+
</execution>
200+
</executions>
201+
</plugin>
202+
177203
<plugin>
178204
<groupId>org.apache.maven.plugins</groupId>
179205
<artifactId>maven-source-plugin</artifactId>
180-
<version>2.1.2</version>
206+
<version>2.2.1</version>
181207
<executions>
182208
<execution>
183209
<id>attach-sources</id>
184210
<goals>
185-
<goal>jar-no-fork</goal>
211+
<goal>jar</goal>
186212
</goals>
213+
<phase>package</phase>
187214
</execution>
188215
</executions>
189216
</plugin>
190217

191218
<plugin>
192219
<groupId>org.apache.maven.plugins</groupId>
193220
<artifactId>maven-release-plugin</artifactId>
194-
<version>2.2.2</version>
221+
<version>2.3.2</version>
195222
<configuration>
196223
<preparationGoals>clean verify</preparationGoals>
197224
</configuration>

0 commit comments

Comments
 (0)