Skip to content

Commit 63b0323

Browse files
committed
BOOKKEEPER-132: Sign artifacts before deploying to maven (ivank)
git-svn-id: https://svn.apache.org/repos/asf/zookeeper/bookkeeper/trunk@1208487 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3bc2bdb commit 63b0323

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Release 4.0.0 - 2011-11-30
4242

4343
BOOKKEEPER-66: use IPv4 for builds (mmorel via ivank)
4444

45+
BOOKKEEPER-132: Sign artifacts before deploying to maven (ivank)
46+
4547
bookkeeper-server/
4648

4749
BOOKKEEPER-1: Static variable makes tests fail (fpj via ivank)

pom.xml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@
116116
</build>
117117
<reporting>
118118
<plugins>
119-
120-
121119
<plugin>
122120
<groupId>org.apache.maven.plugins</groupId>
123121
<artifactId>maven-jxr-plugin</artifactId>
@@ -139,4 +137,40 @@
139137
</plugin>
140138
</plugins>
141139
</reporting>
140+
<profiles>
141+
<profile>
142+
<!-- Used only when cutting a full release. Configures the deploy plugin to mark
143+
each artifact as a release (especially important for the archetype). Signs each
144+
file deployed (it actually signs way too many files and we have to clean up a bit
145+
once deployed). -->
146+
<id>deploy</id>
147+
<build>
148+
<plugins>
149+
<plugin>
150+
<groupId>org.apache.maven.plugins</groupId>
151+
<artifactId>maven-gpg-plugin</artifactId>
152+
<configuration>
153+
<useAgent>true</useAgent>
154+
</configuration>
155+
<executions>
156+
<execution>
157+
<id>sign-artifacts</id>
158+
<phase>verify</phase>
159+
<goals>
160+
<goal>sign</goal>
161+
</goals>
162+
</execution>
163+
</executions>
164+
</plugin>
165+
</plugins>
166+
</build>
167+
<properties>
168+
<update-release-info>true</update-release-info>
169+
<!-- Don't re-run tests as part of the deploy build.
170+
Note we use skipTests, not maven.test.skip, since the latter skips
171+
compilation too and we want to deploy tests. -->
172+
<skipTests>true</skipTests>
173+
</properties>
174+
</profile>
175+
</profiles>
142176
</project>

0 commit comments

Comments
 (0)