forked from apache/xmlgraphics-commons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsign-and-deploy.pom.xml
More file actions
87 lines (85 loc) · 2.59 KB
/
Copy pathsign-and-deploy.pom.xml
File metadata and controls
87 lines (85 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>apache.org</groupId>
<artifactId>sign-and-deploy</artifactId>
<packaging>pom</packaging>
<name>Profiles to run gpg:sign-and-deploy</name>
<version>1</version>
<url>http://www.apache.org</url>
<description>
This pom works as a tool for pushing a release to the Apache Nexus repository.
Instead of using the 'bundle' mechanism, this signs and pushes each of the four pieces:
main jar, pom, -sources jar, and -javadoc jar. To use this you have to have a Maven
settings.xml to configure your credentials on the Apache Nexus instance, and
to communicate your GPG key and passphrase.
Drop this file into a directory with the pieces, and run mvn -f THIS_FILE -Ppublish -Dfile=BASE_FILE_NAME
Depending on how you manage your settings.xml, you might have to activate more profiles.
</description>
<properties>
<url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
</properties>
<profiles>
<profile>
<id>publish</id>
<build>
<defaultGoal>verify</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>base</id>
<phase>verify</phase>
<goals>
<goal>sign-and-deploy-file</goal>
</goals>
<configuration>
<file>${file}.jar</file>
<repositoryId>apache.releases.https</repositoryId>
<url>${url}</url>
<pomFile>pom.xml</pomFile>
<keyname>${gpg.keyname}</keyname>
<passphrase>${gpg.passphrase}</passphrase>
</configuration>
</execution>
<execution>
<id>javadoc</id>
<phase>verify</phase>
<goals>
<goal>sign-and-deploy-file</goal>
</goals>
<configuration>
<file>${file}-javadoc.jar</file>
<classifier>javadoc</classifier>
<repositoryId>apache.releases.https</repositoryId>
<url>${url}</url>
<pomFile>pom.xml</pomFile>
<keyname>${gpg.keyname}</keyname>
<passphrase>${gpg.passphrase}</passphrase>
</configuration>
</execution>
<execution>
<id>sources</id>
<phase>verify</phase>
<goals>
<goal>sign-and-deploy-file</goal>
</goals>
<configuration>
<file>${file}-sources.jar</file>
<classifier>sources</classifier>
<repositoryId>apache.releases.https</repositoryId>
<url>${url}</url>
<pomFile>pom.xml</pomFile>
<keyname>${gpg.keyname}</keyname>
<passphrase>${gpg.passphrase}</passphrase>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>