source: josm/trunk/nodist/pom.xml@ 19203

Last change on this file since 19203 was 19203, checked in by taylor.smock, 2 months ago

Add properties to pom.xml to make it easier to synchronize versions with plugins

Also use /public for the repository instead of having one for /central, one
for /releases, and one for /snapshots.

File size: 15.9 KB
Line 
1<?xml version="1.0"?>
2<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0">
4 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.openstreetmap.josm</groupId>
6 <artifactId>josm-parent</artifactId>
7 <version>1.0-SNAPSHOT</version>
8 <packaging>pom</packaging>
9 <properties>
10 <project.build.sourceEncoding>US-ASCII</project.build.sourceEncoding>
11 <project.reporting.outputEncoding>US-ASCII</project.reporting.outputEncoding>
12 <java.lang.version>11</java.lang.version>
13 <maven.compiler.release>${java.lang.version}</maven.compiler.release>
14 <maven.compiler.source>${maven.compiler.release}</maven.compiler.source>
15 <maven.compiler.target>${maven.compiler.release}</maven.compiler.target>
16 <test.headless>true</test.headless>
17 <sonar.host.url>https://josm.openstreetmap.de/sonar/</sonar.host.url>
18 <sonar.projectKey>JOSM</sonar.projectKey>
19 <jmockit.version>1.49.a</jmockit.version>
20 <pmd.version>7.4.0</pmd.version>
21 <jacoco.version>0.8.12</jacoco.version>
22 <checkstyle.version>10.17.0</checkstyle.version>
23 <spotbugs.version>4.8.6</spotbugs.version>
24 </properties>
25 <modules>
26 <module>..</module>
27 <!-- The test pom is mostly for plugins; JOSM core dev doesn't need it -->
28 <module>../test/pom.xml</module>
29 </modules>
30 <repositories>
31 <repository>
32 <id>JOSM</id>
33 <url>https://josm.openstreetmap.de/nexus/content/repositories/public/</url>
34 </repository>
35 </repositories>
36 <pluginRepositories>
37 <pluginRepository>
38 <id>JOSM</id>
39 <url>https://josm.openstreetmap.de/nexus/content/repositories/public/</url>
40 </pluginRepository>
41 </pluginRepositories>
42 <build>
43 <pluginManagement>
44 <plugins>
45 <plugin>
46 <groupId>org.codehaus.mojo</groupId>
47 <artifactId>javacc-maven-plugin</artifactId>
48 <version>3.1.0</version>
49 </plugin>
50 <plugin>
51 <groupId>org.apache.maven.plugins</groupId>
52 <artifactId>maven-clean-plugin</artifactId>
53 <version>3.3.2</version>
54 </plugin>
55 <plugin>
56 <groupId>org.codehaus.mojo</groupId>
57 <artifactId>exec-maven-plugin</artifactId>
58 <version>3.2.0</version>
59 </plugin>
60 <plugin>
61 <groupId>org.apache.maven.plugins</groupId>
62 <artifactId>maven-resources-plugin</artifactId>
63 <version>3.3.1</version>
64 </plugin>
65 <plugin>
66 <groupId>org.apache.maven.plugins</groupId>
67 <artifactId>maven-pmd-plugin</artifactId>
68 <version>3.23.0</version>
69 <dependencies>
70 <dependency>
71 <groupId>net.sourceforge.pmd</groupId>
72 <artifactId>pmd-core</artifactId>
73 <version>${pmd.version}</version>
74 </dependency>
75 <dependency>
76 <groupId>net.sourceforge.pmd</groupId>
77 <artifactId>pmd-java</artifactId>
78 <version>${pmd.version}</version>
79 </dependency>
80 <dependency>
81 <groupId>net.sourceforge.pmd</groupId>
82 <artifactId>pmd-javascript</artifactId>
83 <version>${pmd.version}</version>
84 </dependency>
85 <dependency>
86 <groupId>net.sourceforge.pmd</groupId>
87 <artifactId>pmd-jsp</artifactId>
88 <version>${pmd.version}</version>
89 </dependency>
90 </dependencies>
91 <configuration>
92 <targetJdk>${java.lang.version}</targetJdk>
93 </configuration>
94 </plugin>
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-surefire-plugin</artifactId>
98 <version>3.2.5</version>
99 </plugin>
100 <plugin>
101 <groupId>com.github.spotbugs</groupId>
102 <artifactId>spotbugs-maven-plugin</artifactId>
103 <version>4.8.5.0</version>
104 </plugin>
105 <plugin>
106 <groupId>org.apache.maven.plugins</groupId>
107 <artifactId>maven-checkstyle-plugin</artifactId>
108 <version>3.3.1</version>
109 <dependencies>
110 <dependency>
111 <groupId>com.puppycrawl.tools</groupId>
112 <artifactId>checkstyle</artifactId>
113 <version>${checkstyle.version}</version>
114 </dependency>
115 </dependencies>
116 </plugin>
117 <!-- Used to merge compile dependencies into jars -->
118 <plugin>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-shade-plugin</artifactId>
121 <version>3.5.3</version>
122 <executions>
123 <execution>
124 <phase>package</phase>
125 <goals>
126 <goal>shade</goal>
127 </goals>
128 <configuration>
129 <filters>
130 <filter>
131 <artifact>*:*</artifact>
132 <excludes>
133 <!--<exclude>META-INF/*</exclude>-->
134 <!--<exclude>*</exclude>-->
135 <exclude>META-INF/versions/*</exclude>
136 <exclude>META-INF/maven/**</exclude>
137 <exclude>META-INF/*.SF</exclude>
138 <exclude>META-INF/*.DSA</exclude>
139 <exclude>META-INF/*.RSA</exclude>
140 </excludes>
141 </filter>
142 </filters>
143 </configuration>
144 </execution>
145 </executions>
146 </plugin>
147 <plugin>
148 <groupId>org.apache.maven.plugins</groupId>
149 <artifactId>maven-jar-plugin</artifactId>
150 <version>3.4.1</version>
151 <configuration>
152 <archive>
153 <addMavenDescriptor>false</addMavenDescriptor>
154 </archive>
155 </configuration>
156 </plugin>
157 <plugin>
158 <groupId>org.sonarsource.scanner.maven</groupId>
159 <artifactId>sonar-maven-plugin</artifactId>
160 <version>3.7.0.1746</version>
161 </plugin>
162 <!-- Used to set version information -->
163 <plugin>
164 <groupId>org.codehaus.mojo</groupId>
165 <artifactId>buildnumber-maven-plugin</artifactId>
166 <version>3.2.0</version>
167 </plugin>
168 </plugins>
169 </pluginManagement>
170 <plugins>
171 <plugin>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-enforcer-plugin</artifactId>
174 <version>3.4.1</version>
175 <executions>
176 <execution>
177 <id>enforce-versions</id>
178 <goals>
179 <goal>enforce</goal>
180 </goals>
181 <configuration>
182 <rules>
183 <requireMavenVersion>
184 <version>3.6.3</version>
185 </requireMavenVersion>
186 <requireJavaVersion>
187 <version>8</version>
188 </requireJavaVersion>
189 </rules>
190 </configuration>
191 </execution>
192 </executions>
193 </plugin>
194 <plugin>
195 <groupId>org.apache.maven.plugins</groupId>
196 <artifactId>maven-resources-plugin</artifactId>
197 <version>3.3.1</version>
198 <executions>
199 <execution>
200 <id>copy-root-resources</id>
201 <phase>generate-resources</phase>
202 <goals>
203 <goal>copy-resources</goal>
204 </goals>
205 <configuration>
206 <outputDirectory>${project.basedir}/target/classes</outputDirectory>
207 <resources>
208 <resource>
209 <directory>${project.basedir}</directory>
210 <includes>
211 <include>GPL-v2.0.txt</include>
212 <include>GPL-v3.0.txt</include>
213 <include>LICENSE</include>
214 <include>LICENSE.md</include>
215 <include>README</include>
216 <include>README.md</include>
217 </includes>
218 </resource>
219 </resources>
220 </configuration>
221 </execution>
222 </executions>
223 </plugin>
224 </plugins>
225 </build>
226 <dependencyManagement>
227 <dependencies>
228 <dependency>
229 <groupId>org.jmockit</groupId>
230 <artifactId>jmockit</artifactId>
231 <version>${jmockit.version}</version>
232 <scope>test</scope>
233 </dependency>
234 <dependency>
235 <groupId>org.junit</groupId>
236 <artifactId>junit-bom</artifactId>
237 <version>5.10.3</version>
238 <type>pom</type>
239 <scope>import</scope>
240 </dependency>
241 <dependency>
242 <groupId>org.openstreetmap.jmapviewer</groupId>
243 <artifactId>jmapviewer</artifactId>
244 <version>2.21</version>
245 <scope>provided</scope>
246 </dependency>
247 <dependency>
248 <groupId>jakarta.json</groupId>
249 <artifactId>jakarta.json-api</artifactId>
250 <version>2.1.3</version>
251 <scope>provided</scope>
252 </dependency>
253 <dependency>
254 <groupId>org.eclipse.parsson</groupId>
255 <artifactId>parsson</artifactId>
256 <version>1.1.7</version>
257 <scope>provided</scope>
258 </dependency>
259 <dependency>
260 <groupId>org.apache.commons</groupId>
261 <artifactId>commons-jcs3-core</artifactId>
262 <version>3.2.1</version>
263 <scope>provided</scope>
264 </dependency>
265 <dependency>
266 <groupId>org.apache.commons</groupId>
267 <artifactId>commons-compress</artifactId>
268 <version>1.27.0</version>
269 <scope>provided</scope>
270 </dependency>
271 <dependency>
272 <groupId>jakarta.annotation</groupId>
273 <artifactId>jakarta.annotation-api</artifactId>
274 <version>2.1.1</version>
275 <scope>provided</scope>
276 </dependency>
277 <dependency>
278 <groupId>org.tukaani</groupId>
279 <artifactId>xz</artifactId>
280 <version>1.10</version>
281 <scope>provided</scope>
282 </dependency>
283 <dependency>
284 <groupId>com.adobe.xmp</groupId>
285 <artifactId>xmpcore</artifactId>
286 <version>6.1.11</version>
287 <scope>provided</scope>
288 </dependency>
289 <dependency>
290 <groupId>com.drewnoakes</groupId>
291 <artifactId>metadata-extractor</artifactId>
292 <version>2.19.0</version>
293 <scope>provided</scope>
294 </dependency>
295 <dependency>
296 <groupId>com.formdev</groupId>
297 <artifactId>svgSalamander</artifactId>
298 <version>1.1.4</version>
299 <scope>provided</scope>
300 </dependency>
301 <dependency>
302 <groupId>ch.poole</groupId>
303 <artifactId>OpeningHoursParser</artifactId>
304 <version>0.28.2</version>
305 <scope>provided</scope>
306 </dependency>
307 <!-- Don't forget to update org.openstreetmap.josm.tools.Tag2Link#PREF_SOURCE -->
308 <dependency>
309 <groupId>org.webjars.npm</groupId>
310 <artifactId>tag2link</artifactId>
311 <version>2024.8.12</version>
312 <scope>provided</scope>
313 </dependency>
314 <dependency>
315 <groupId>org.jacoco</groupId>
316 <artifactId>org.jacoco.ant</artifactId>
317 <version>${jacoco.version}</version>
318 <scope>test</scope>
319 </dependency>
320 <dependency>
321 <groupId>com.github.spotbugs</groupId>
322 <artifactId>spotbugs-annotations</artifactId>
323 <version>${spotbugs.version}</version>
324 <scope>test</scope>
325 </dependency>
326 <dependency>
327 <groupId>com.ginsberg</groupId>
328 <artifactId>junit5-system-exit</artifactId>
329 <version>1.1.2</version>
330 <scope>test</scope>
331 </dependency>
332 <dependency>
333 <groupId>org.wiremock</groupId>
334 <artifactId>wiremock</artifactId>
335 <version>3.9.1</version>
336 <scope>test</scope>
337 </dependency>
338 <dependency>
339 <groupId>io.github.classgraph</groupId>
340 <artifactId>classgraph</artifactId>
341 <version>4.8.174</version>
342 <scope>test</scope>
343 </dependency>
344 <dependency>
345 <groupId>net.trajano.commons</groupId>
346 <artifactId>commons-testing</artifactId>
347 <version>2.1.0</version>
348 <scope>test</scope>
349 </dependency>
350 <dependency>
351 <groupId>nl.jqno.equalsverifier</groupId>
352 <artifactId>equalsverifier</artifactId>
353 <version>3.16.1</version>
354 <scope>test</scope>
355 </dependency>
356 <dependency>
357 <groupId>org.apache.commons</groupId>
358 <artifactId>commons-lang3</artifactId>
359 <version>3.16.0</version>
360 <scope>test</scope>
361 </dependency>
362 <dependency>
363 <groupId>org.awaitility</groupId>
364 <artifactId>awaitility</artifactId>
365 <version>4.2.2</version>
366 <scope>test</scope>
367 </dependency>
368 </dependencies>
369 </dependencyManagement>
370</project>
Note: See TracBrowser for help on using the repository browser.