Skip to content

Commit 3eef6f5

Browse files
author
Matthew L Daniel
committed
Attach the sources during packaging
Since this project is Open Source, it is very handy to have Maven download the sources for the jars found in central. Some projects also attach javadoc, but the sources provide javadoc (at least with IJ) so I find that they just take up space.
1 parent e162bfb commit 3eef6f5

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,20 @@
6767
</execution>
6868
</executions>
6969
</plugin>
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-source-plugin</artifactId>
73+
<version>2.2.1</version>
74+
<executions>
75+
<execution>
76+
<id>attach-sources</id>
77+
<phase>package</phase>
78+
<goals>
79+
<goal>jar</goal>
80+
</goals>
81+
</execution>
82+
</executions>
83+
</plugin>
7084
<plugin>
7185
<groupId>org.apache.maven.plugins</groupId>
7286
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)