Skip to content

Commit 47b0867

Browse files
author
fangyidong
committed
Generate source jar and gpg sign
git-svn-id: http://json-simple.googlecode.com/svn/trunk@205 b68fe964-5755-0410-a06c-9fee2ea08261
1 parent 7be86f1 commit 47b0867

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

pom.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,52 @@
5959
<target>1.2</target>
6060
</configuration>
6161
</plugin>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-source-plugin</artifactId>
65+
<version>2.1.2</version>
66+
<executions>
67+
<execution>
68+
<id>attach-sources</id>
69+
<phase>verify</phase>
70+
<goals>
71+
<goal>jar-no-fork</goal>
72+
</goals>
73+
</execution>
74+
</executions>
75+
</plugin>
6276
</plugins>
6377
</build>
78+
79+
<profiles>
80+
<profile>
81+
<id>release-sign-artifacts</id>
82+
<activation>
83+
<property>
84+
<name>performRelease</name>
85+
<value>true</value>
86+
</property>
87+
</activation>
88+
<build>
89+
<plugins>
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-gpg-plugin</artifactId>
93+
<version>1.4</version>
94+
<executions>
95+
<execution>
96+
<id>sign-artifacts</id>
97+
<phase>verify</phase>
98+
<goals>
99+
<goal>sign</goal>
100+
</goals>
101+
</execution>
102+
</executions>
103+
</plugin>
104+
</plugins>
105+
</build>
106+
</profile>
107+
</profiles>
108+
64109
</project>
65110

0 commit comments

Comments
 (0)