Skip to content

Commit bb8412c

Browse files
committed
Maven: install sources JAR as well to get API docs in IDE
1 parent 9c096a5 commit bb8412c

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

pom.xml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,21 @@
135135
<release>8</release>
136136
</configuration>
137137
</plugin>
138+
<!-- Also install sources for non-release builds (to get API docs in IDEs) -->
139+
<!-- https://github.com/apache/maven-source-plugin/releases -->
140+
<plugin>
141+
<groupId>org.apache.maven.plugins</groupId>
142+
<artifactId>maven-source-plugin</artifactId>
143+
<version>3.4.0</version>
144+
<executions>
145+
<execution>
146+
<id>attach-sources</id>
147+
<goals>
148+
<goal>jar-no-fork</goal>
149+
</goals>
150+
</execution>
151+
</executions>
152+
</plugin>
138153
<!-- https://github.com/apache/maven-release/releases -->
139154
<plugin>
140155
<groupId>org.apache.maven.plugins</groupId>
@@ -216,20 +231,6 @@
216231
</execution>
217232
</executions>
218233
</plugin>
219-
<!-- https://github.com/apache/maven-source-plugin/releases -->
220-
<plugin>
221-
<groupId>org.apache.maven.plugins</groupId>
222-
<artifactId>maven-source-plugin</artifactId>
223-
<version>3.4.0</version>
224-
<executions>
225-
<execution>
226-
<id>attach-sources</id>
227-
<goals>
228-
<goal>jar-no-fork</goal>
229-
</goals>
230-
</execution>
231-
</executions>
232-
</plugin>
233234
</plugins>
234235
</build>
235236
</profile>

0 commit comments

Comments
 (0)