Ticket #23107: pom.xml

File pom.xml, 10.2 KB (added by taylor.smock, 3 years ago)

Fairly minimal pom.xml for generating a signed jar. Currently does not work for jarsigning, see comment:31.

Line 
1<?xml version="1.0"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0">
3 <modelVersion>4.0.0</modelVersion>
4 <groupId>org.openstreetmap.josm</groupId>
5 <artifactId>josm</artifactId>
6 <version>SNAPSHOT</version>
7 <properties>
8 <src.dir>${project.basedir}/src</src.dir>
9 <test.dir>${project.basedir}/test</test.dir>
10 <mapcss.dir>${src.dir}/org/openstreetmap/josm/gui/mappaint/mapcss</mapcss.dir>
11 <java.lang.version>8</java.lang.version>
12 <build.dir>${project.basedir}/build</build.dir>
13 <dist.dir>${project.basedir}/dist</dist.dir>
14 <resources.dir>${project.basedir}/resources</resources.dir>
15 <modules.dir>${dist.dir}/modules</modules.dir>
16 <tools.dir>${project.basedir}/tools</tools.dir>
17 <pmd.dir>${tools.dir}/pmd</pmd.dir>
18 <checkstyle.dir>${tools.dir}/checkstyle</checkstyle.dir>
19 <spotbugs.dir>${tools.dir}/spotbugs</spotbugs.dir>
20 <javacc.home>${tools.dir}</javacc.home>
21 <mapcss.dir>org/openstreetmap/josm/gui/mappaint/mapcss</mapcss.dir>
22 <proj-build.dir>${project.basedir}/build2</proj-build.dir>
23 <script-build.dir>${project.basedir}/build2</script-build.dir>
24 <checkstyle-build.dir>${project.basedir}/build2</checkstyle-build.dir>
25 <epsg.output>${resources.dir}/data/projection/custom-epsg</epsg.output>
26 <commons-lang3.jar>${tools.dir}/commons-lang3.jar</commons-lang3.jar>
27 <dist.jar>${dist.dir}/josm-custom.jar</dist.jar>
28 <dist-optimized.jar>${dist.dir}/josm-custom-optimized.jar</dist-optimized.jar>
29 <dist-sources.jar>${dist.dir}/josm-custom-sources.jar</dist-sources.jar>
30 <java.lang.version>8</java.lang.version>
31 <maven.compiler.release>${java.lang.version}</maven.compiler.release>
32 <test.headless>true</test.headless>
33 <jacoco.includes>org.openstreetmap.josm.*</jacoco.includes>
34 <jacoco.inclbootstrapclasses>false</jacoco.inclbootstrapclasses>
35 <jacoco.inclnolocationclasses>false</jacoco.inclnolocationclasses>
36 <junit.printsummary>on</junit.printsummary>
37 <default-junit-includes>**/*Test.class</default-junit-includes>
38 <default-junitIT-includes>**/*TestIT.class</default-junitIT-includes>
39 <jmockit.version>1.49.a</jmockit.version>
40 </properties>
41 <repositories>
42 <repository>
43 <id>JOSM-releases</id>
44 <url>https://josm.openstreetmap.de/nexus/content/repositories/releases/</url>
45 </repository>
46 <repository>
47 <id>JOSM-snapshots</id>
48 <url>https://josm.openstreetmap.de/nexus/content/repositories/snapshots/</url>
49 </repository>
50 </repositories>
51 <dependencies>
52 <dependency>
53 <groupId>org.openstreetmap.jmapviewer</groupId>
54 <artifactId>jmapviewer</artifactId>
55 <version>2.16</version>
56 <scope>compile</scope>
57 </dependency>
58 <dependency>
59 <groupId>jakarta.json</groupId>
60 <artifactId>jakarta.json-api</artifactId>
61 <version>2.1.2</version>
62 <scope>compile</scope>
63 </dependency>
64 <dependency>
65 <groupId>org.eclipse.parsson</groupId>
66 <artifactId>parsson</artifactId>
67 <version>1.1.4</version>
68 <scope>runtime</scope>
69 </dependency>
70 <dependency>
71 <groupId>org.apache.commons</groupId>
72 <artifactId>commons-jcs3-core</artifactId>
73 <version>3.1</version>
74 <scope>compile</scope>
75 </dependency>
76 <dependency>
77 <groupId>org.apache.commons</groupId>
78 <artifactId>commons-compress</artifactId>
79 <version>1.23.0</version>
80 <scope>compile</scope>
81 </dependency>
82 <dependency>
83 <groupId>jakarta.annotation</groupId>
84 <artifactId>jakarta.annotation-api</artifactId>
85 <version>2.1.1</version>
86 <scope>compile</scope>
87 </dependency>
88 <dependency>
89 <groupId>org.tukaani</groupId>
90 <artifactId>xz</artifactId>
91 <version>1.9</version>
92 </dependency>
93 <dependency>
94 <groupId>com.adobe.xmp</groupId>
95 <artifactId>xmpcore</artifactId>
96 <version>6.1.11</version>
97 </dependency>
98 <dependency>
99 <groupId>com.drewnoakes</groupId>
100 <artifactId>metadata-extractor</artifactId>
101 <version>2.18.0</version>
102 <scope>compile</scope>
103 </dependency>
104 <dependency>
105 <groupId>com.formdev</groupId>
106 <artifactId>svgSalamander</artifactId>
107 <version>1.1.4</version>
108 </dependency>
109 <dependency>
110 <groupId>ch.poole</groupId>
111 <artifactId>OpeningHoursParser</artifactId>
112 <version>0.27.0</version>
113 </dependency>
114 <dependency>
115 <groupId>oauth.signpost</groupId>
116 <artifactId>signpost-core</artifactId>
117 <version>2.1.1</version>
118 </dependency>
119 <!-- Don't forget to update org.openstreetmap.josm.tools.Tag2Link#PREF_SOURCE -->
120 <dependency>
121 <groupId>org.webjars.npm</groupId>
122 <artifactId>tag2link</artifactId>
123 <version>2022.11.28</version>
124 </dependency>
125 <dependency>
126 <groupId>org.jacoco</groupId>
127 <artifactId>org.jacoco.ant</artifactId>
128 <version>0.8.10</version>
129 <scope>test</scope>
130 </dependency>
131 <dependency>
132 <groupId>org.jmockit</groupId>
133 <artifactId>jmockit</artifactId>
134 <version>${jmockit.version}</version>
135 <scope>test</scope>
136 </dependency>
137 <dependency>
138 <groupId>com.github.spotbugs</groupId>
139 <artifactId>spotbugs-annotations</artifactId>
140 <version>4.7.3</version>
141 <scope>test</scope>
142 </dependency>
143 <dependency>
144 <groupId>com.ginsberg</groupId>
145 <artifactId>junit5-system-exit</artifactId>
146 <version>1.1.2</version>
147 <scope>test</scope>
148 </dependency>
149 <dependency>
150 <groupId>com.github.tomakehurst</groupId>
151 <artifactId>wiremock-jre8</artifactId>
152 <version>2.35.0</version>
153 <scope>test</scope>
154 </dependency>
155 <dependency>
156 <groupId>io.github.classgraph</groupId>
157 <artifactId>classgraph</artifactId>
158 <version>4.8.162</version>
159 <scope>test</scope>
160 </dependency>
161 <dependency>
162 <groupId>org.junit.platform</groupId>
163 <artifactId>junit-platform-launcher</artifactId>
164 <version>1.10.0</version>
165 <scope>test</scope>
166 </dependency>
167 <dependency>
168 <groupId>org.junit.platform</groupId>
169 <artifactId>junit-platform-suite</artifactId>
170 <version>1.10.0</version>
171 <scope>test</scope>
172 </dependency>
173 <dependency>
174 <groupId>org.junit.vintage</groupId>
175 <artifactId>junit-vintage-engine</artifactId>
176 <version>5.10.0</version>
177 <scope>test</scope>
178 </dependency>
179 <dependency>
180 <groupId>org.junit.jupiter</groupId>
181 <artifactId>junit-jupiter-params</artifactId>
182 <version>5.10.0</version>
183 <scope>test</scope>
184 </dependency>
185 <dependency>
186 <groupId>org.junit.jupiter</groupId>
187 <artifactId>junit-jupiter-api</artifactId>
188 <version>5.10.0</version>
189 <scope>test</scope>
190 </dependency>
191 <dependency>
192 <groupId>org.junit.jupiter</groupId>
193 <artifactId>junit-jupiter-engine</artifactId>
194 <version>5.10.0</version>
195 <scope>test</scope>
196 </dependency>
197 <dependency>
198 <groupId>org.junit.jupiter</groupId>
199 <artifactId>junit-jupiter-migrationsupport</artifactId>
200 <version>5.10.0</version>
201 <scope>test</scope>
202 </dependency>
203 <dependency>
204 <groupId>net.trajano.commons</groupId>
205 <artifactId>commons-testing</artifactId>
206 <version>2.1.0</version>
207 <scope>test</scope>
208 </dependency>
209 <dependency>
210 <groupId>nl.jqno.equalsverifier</groupId>
211 <artifactId>equalsverifier</artifactId>
212 <version>3.15.1</version>
213 <scope>test</scope>
214 </dependency>
215 <dependency>
216 <groupId>org.apache.commons</groupId>
217 <artifactId>commons-lang3</artifactId>
218 <version>3.13.0</version>
219 <scope>test</scope>
220 </dependency>
221 <dependency>
222 <groupId>org.awaitility</groupId>
223 <artifactId>awaitility</artifactId>
224 <version>4.2.0</version>
225 <scope>test</scope>
226 </dependency>
227 </dependencies>
228 <build>
229 <sourceDirectory>${src.dir}</sourceDirectory>
230 <testSourceDirectory>${test.dir}/unit</testSourceDirectory>
231 <resources>
232 <resource>
233 <directory>${resources.dir}</directory>
234 </resource>
235 </resources>
236 <testResources>
237 <testResource>
238 <directory>${test.dir}/data</directory>
239 </testResource>
240 </testResources>
241 <plugins>
242 <plugin>
243 <artifactId>maven-antrun-plugin</artifactId>
244 <version>1.7</version>
245 <executions>
246 <execution>
247 <phase>package</phase>
248 <configuration>
249 <target name="dist"/>
250 </configuration>
251 <goals>
252 <goal>run</goal>
253 </goals>
254 </execution>
255 </executions>
256 </plugin>
257 <plugin>
258 <groupId>dev.sigstore</groupId>
259 <artifactId>sigstore-maven-plugin</artifactId>
260 <version>0.4.0</version>
261 <executions>
262 <execution>
263 <id>sign</id>
264 <goals>
265 <goal>sign</goal>
266 </goals>
267 </execution>
268 <execution>
269 <id>sigstore-jarsign</id>
270 <goals>
271 <goal>jarsign</goal>
272 </goals>
273 </execution>
274 </executions>
275 </plugin>
276 <plugin>
277 <groupId>org.codehaus.mojo</groupId>
278 <artifactId>javacc-maven-plugin</artifactId>
279 <version>3.0.2-SNAPSHOT</version>
280 <executions>
281 <execution>
282 <id>javacc</id>
283 <goals>
284 <goal>javacc</goal>
285 </goals>
286 <configuration>
287 <debugParser>false</debugParser>
288 <debugTokenManager>false</debugTokenManager>
289 <jdkVersion>${java.lang.version}</jdkVersion>
290 <grammarEncoding>UTF-8</grammarEncoding>
291 <unicodeInput>true</unicodeInput>
292 <sourceDirectory>${src.dir}</sourceDirectory>
293 <includes>
294 <include>${mapcss.dir}/MapCSSParser.jj</include>
295 </includes>
296 </configuration>
297 </execution>
298 </executions>
299 </plugin>
300 <plugin>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-surefire-plugin</artifactId>
303 <configuration>
304 <argLine>-javaagent:"${settings.localRepository}"/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar</argLine>
305 </configuration>
306 </plugin>
307 </plugins>
308 </build>
309</project>