Skip to content

Commit 5355fa4

Browse files
committed
generate javadoc and source artifacts. sign in deploy phase
1 parent a6efde0 commit 5355fa4

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

pom.xml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,46 @@
5050

5151
<build>
5252
<plugins>
53+
54+
<plugin>
55+
<artifactId>maven-source-plugin</artifactId>
56+
<executions>
57+
<execution>
58+
<id>attach-sources</id>
59+
<phase>deploy</phase>
60+
<goals>
61+
<goal>jar-no-fork</goal>
62+
</goals>
63+
</execution>
64+
</executions>
65+
</plugin>
66+
<plugin>
67+
<artifactId>maven-javadoc-plugin</artifactId>
68+
<executions>
69+
<execution>
70+
<id>attach-javadocs</id>
71+
<phase>deploy</phase>
72+
<goals>
73+
<goal>jar</goal>
74+
</goals>
75+
</execution>
76+
</executions>
77+
</plugin>
5378
<plugin>
5479
<groupId>org.apache.maven.plugins</groupId>
5580
<artifactId>maven-gpg-plugin</artifactId>
5681
<version>${maven-gpg-plugin.version}</version>
5782
<executions>
5883
<execution>
5984
<id>sign-artifacts</id>
60-
<phase>verify</phase>
85+
<phase>deploy</phase>
6186
<goals>
6287
<goal>sign</goal>
6388
</goals>
6489
</execution>
6590
</executions>
6691
</plugin>
92+
6793
<plugin>
6894
<groupId>org.sonatype.central</groupId>
6995
<artifactId>central-publishing-maven-plugin</artifactId>

0 commit comments

Comments
 (0)