-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpom.xml
270 lines (257 loc) · 8.66 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>org.sonatype.nexus.archetypes</groupId>
<artifactId>nexus-format-archetype</artifactId>
<version>1.0.66-SNAPSHOT</version>
<name>Nexus Format Plugin Archetype</name>
<description>Archetype to create a nexus format plugin</description>
<url>https://github.com/sonatype-nexus-community/nexus-format-archetype</url>
<licenses>
<license>
<name>Eclipse Public License</name>
<url>http://www.eclipse.org/legal/epl-v10.html</url>
</license>
</licenses>
<developers>
<developer>
<id>doddi</id>
<name>Mark Dodgson</name>
</developer>
<developer>
<id>jlstephens89</id>
<name>Joseph Stephens</name>
</developer>
<developer>
<id>djsauble</id>
<name>Daniel Sauble</name>
</developer>
<developer>
<id>DarthHater</id>
<name>Jeffry Hesse</name>
</developer>
<developer>
<id>bhamail</id>
<name>Dan Rollo</name>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/sonatype-nexus-community/nexus-format-archetype.git</connection>
<url>https://github.com/sonatype-nexus-community/nexus-format-archetype</url>
<tag>HEAD</tag>
</scm>
<distributionManagement>
<site>
<id>project_homepage</id>
<url>https://github.com/sonatype-nexus-community/nexus-format-archetype</url>
</site>
<snapshotRepository>
<id>rso</id>
<url>https://repository.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>rso</id>
<url>https://repository.sonatype.org/content/repositories/releases/</url>
</repository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.outputTimestamp>1730836486</project.build.outputTimestamp>
<maven-archetype-version>3.3.0</maven-archetype-version>
<defaultNexusPluginsVersion>3.28.1-01</defaultNexusPluginsVersion>
<generatedByArchetypeVersion>${project.version}</generatedByArchetypeVersion>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId>
<version>2.4.1</version>
</dependency>
</dependencies>
<build>
<filters>
<!--
Filter ensures the generated pom groupId, artifactId, and version get intended values, instead of parent values.
-->
<filter>src/test/my-filter-values.properties</filter>
</filters>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<excludes>
<!-- Due to workaround to allow copy of hidden .gitignore file, avoid known Mac files from defaultExcludes. -->
<exclude>**/.DS_Store</exclude>
</excludes>
</testResource>
</testResources>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>${maven-archetype-version}</version>
<configuration>
<ignoreEOLStyle>true</ignoreEOLStyle>
</configuration>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<!--
Fix error during release due to use of old version of maven-site-plugin:
maven-site-plugin:3.3:site failed: A required class was missing while executing org.apache.maven.plugins:maven-site-plugin:3.3:site: org/apache/maven/doxia/siterenderer/DocumentContent
-->
<version>3.8.2</version>
<configuration>
<!--
Fix error during release:
org.apache.maven.plugins:maven-site-plugin:3.8.2:deploy (default-deploy) on project nexus-format-archetype: Wagon protocol 'https' doesn't support directory copying
-->
<skipDeploy>true</skipDeploy>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!--
Ensure use of Java 8, as required by NXRM
-->
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<!--
Require Java 8
-->
<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>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<escapeString>\</escapeString>
<!-- allow copy of hidden .gitignore file. see: https://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html#addDefaultExcludes -->
<addDefaultExcludes>false</addDefaultExcludes>
</configuration>
</plugin>
<plugin><!--
Only updates IT reference source files to the current year. Velocity macro does the real generated values.
-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>timestamp-year</id>
<goals>
<goal>timestamp-property</goal>
</goals>
<phase>validate</phase>
<configuration>
<name>ITReferenceYear</name>
<pattern>yyyy</pattern>
</configuration>
</execution>
<execution>
<id>timestamp-date</id>
<goals>
<goal>timestamp-property</goal>
</goals>
<phase>validate</phase>
<configuration>
<name>ITReferenceDate</name>
<pattern>MMM d, yyyy</pattern>
<!-- TODO: could see IT failures due to generated on date being non-GMT. -->
<!-- <timeZone>EST</timeZone>-->
<!--
<unit>day</unit>
<offset>-1</offset>
-->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>${maven-archetype-version}</version>
</extension>
</extensions>
</build>
<profiles>
<profile>
<id>gpg-sign</id>
<!--
only sign during deploy phase
-->
<build>
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>