forked from sonatype-nexus-community/nexus-repository-cpan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
145 lines (134 loc) · 4.78 KB
/
pom.xml
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?xml version="1.0" encoding="UTF-8"?>
<!--
Sonatype Nexus (TM) Open Source Version
Copyright (c) 2019-present Sonatype, Inc.
All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.
Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
Eclipse Foundation. All other trademarks are the property of their respective owners.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-plugins</artifactId>
<version>3.38.0-01</version>
</parent>
<artifactId>cpan-parent</artifactId>
<version>0.0.11-SNAPSHOT</version>
<packaging>pom</packaging>
<inceptionYear>2019</inceptionYear>
<modules>
<module>nexus-repository-cpan</module>
<module>nexus-repository-cpan-it</module>
</modules>
<scm>
<developerConnection>scm:git:[email protected]:sonatype-nexus-community/nexus-repository-cpan.git</developerConnection>
<tag>HEAD</tag>
</scm>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<properties>
<nxrm-version>3.38.0-01</nxrm-version>
</properties>
<repositories>
<!-- ensure we can find the parent pom when starting from an empty local .m2 repository -->
<repository>
<id>rso-public-grid</id>
<url>https://repository.sonatype.org/content/groups/sonatype-public-grid/</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<!--
Ensure use of Java 8, as required by NXRM
-->
<requireJavaVersion>
<version>[1.8,1.9)</version>
</requireJavaVersion>
<!--
Require Maven 3.3.3+
-->
<requireMavenVersion>
<version>[3.3.3,)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>rso</serverId>
<nexusUrl>https://repository.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<!-- Something in the pom hierarchy overrides the default 'pushChanges == true', so we reset that here. -->
<pushChanges>true</pushChanges>
<releaseProfiles>gpg-sign</releaseProfiles>
<!-- Tests will have been run by CI prior to release. -->
<arguments>-DskipTests</arguments>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>gpg-sign</id>
<!--
only sign during deploy phase
-->
<build>
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>
</profiles>
</project>