1 <?xml version="1.0" encoding="UTF-8"?>
  2 <!--   
  3    Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
  4    
  5    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  6    
  7    The contents of this file are subject to the terms of either the Universal Permissive License 
  8    v 1.0 as shown at http://oss.oracle.com/licenses/upl
  9    
 10    or the following license:
 11    
 12    Redistribution and use in source and binary forms, with or without modification, are permitted
 13    provided that the following conditions are met:
 14    
 15    1. Redistributions of source code must retain the above copyright notice, this list of conditions
 16    and the following disclaimer.
 17    
 18    2. Redistributions in binary form must reproduce the above copyright notice, this list of
 19    conditions and the following disclaimer in the documentation and/or other materials provided with
 20    the distribution.
 21    
 22    3. Neither the name of the copyright holder nor the names of its contributors may be used to
 23    endorse or promote products derived from this software without specific prior written permission.
 24    
 25    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
 26    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 27    FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 28    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 29    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 30    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 31    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
 32    WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 33 -->
 34 <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">
 35 	<modelVersion>4.0.0</modelVersion>
 36 	<groupId>org.openjdk.jmc</groupId>
 37 	<artifactId>missioncontrol</artifactId>
 38 	<version>8.0.0-SNAPSHOT</version>
 39 	<packaging>pom</packaging>
 40 	<name>JDK Mission Control</name>
 41 	<description>JDK Mission Control is an advanced set of tools that enables 
 42 		efficient and detailed analysis of the extensive of data collected by 
 43 		JDK Flight Recorder. The tool chain enables developers and 
 44 		administrators to collect and analyze data from Java applications 
 45 		running locally or deployed in production environments.
 46 	</description>
 47 	<url>http://jdk.java.net/jmc</url>
 48 	<licenses>
 49 		<license>
 50 			<name>Universal Permissive License Version 1.0</name>
 51 			<url>http://oss.oracle.com/licenses/upl</url>
 52 			<distribution>repo</distribution>
 53 		</license>
 54 	</licenses>
 55 	<organization>
 56 		<name>Oracle</name>
 57 		<url>https://www.oracle.com</url>
 58 	</organization>
 59 	<issueManagement>
 60 		<system>JIRA</system>
 61 		<url>https://bugs.openjdk.java.net/projects/JMC/issues</url>
 62 	</issueManagement>
 63 	<mailingLists>
 64 		<mailingList>
 65 			<name>jmc dev</name>
 66 			<subscribe>http://mail.openjdk.java.net/mailman/listinfo/jmc-dev</subscribe>
 67 			<unsubscribe>http://mail.openjdk.java.net/mailman/listinfo/jmc-dev</unsubscribe>
 68 			<archive>http://mail.openjdk.java.net/pipermail/jmc-dev/</archive>
 69 		</mailingList>
 70 	</mailingLists>
 71 	<modules>
 72 		<module>application</module>
 73 		<module>releng</module>
 74 	</modules>
 75 	<properties>
 76 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 77 		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
 78 		<tycho.version>1.4.0</tycho.version>
 79 		<maven.buildnumber.version>1.4</maven.buildnumber.version>
 80 		<maven.deploy.version>2.8.2</maven.deploy.version>
 81 		<maven.directory.version>0.2</maven.directory.version>
 82 		<maven.enforcer.version>3.0.0-M1</maven.enforcer.version>
 83 		<maven.resources.version>3.0.2</maven.resources.version>
 84 		<spotless.version>1.26.0</spotless.version>
 85 		<spotless.config.path>${basedir}/configuration/ide/eclipse/formatting/formatting.xml</spotless.config.path>
 86 		<spotbugs.version>3.1.10</spotbugs.version>
 87 		<buildId>${user.name}</buildId>
 88 		<!-- The version of the JDK embedded. When not embedding a JDK (this is 
 89 			usually the case), leave this empty. If embedding a JDK, include a comma 
 90 			and space, e.g. <jdkVersion>, JDK 12.0.2</jdkVersion> -->
 91 		<jdkVersion></jdkVersion>
 92 		<!-- Critical Patch Update Id. Used in a release where _only_ the embedded
 93 			JDK has changed. Set to .[cpu sequence number], e.g. .1 -->
 94 		<patchId></patchId>
 95 		<scmConnection>scm:git:git://github.com/openjdk/jmc.git</scmConnection>
 96 	</properties>
 97 	<scm>
 98 		<connection>${scmConnection}</connection>
 99 	</scm>
100 	<distributionManagement>
101 		<repository>
102 			<id>jmc-publish</id>
103 			<url>${release.repo}</url>
104 		</repository>
105 		<snapshotRepository>
106 			<id>jmc-publish-snapshot</id>
107 			<url>${snapshot.repo}</url>
108 		</snapshotRepository>
109 	</distributionManagement>
110 	<profiles>
111 		<profile>
112 			<id>2019-09</id>
113 			<activation>
114 				<activeByDefault>true</activeByDefault>
115 			</activation>
116 			<build>
117 				<plugins>
118 					<plugin>
119 						<groupId>org.eclipse.tycho</groupId>
120 						<artifactId>target-platform-configuration</artifactId>
121 						<version>${tycho.version}</version>
122 						<configuration>
123 							<target>
124 								<artifact>
125 									<groupId>org.openjdk.jmc</groupId>
126 									<artifactId>platform-definition-2019-09</artifactId>
127 									<version>8.0.0-SNAPSHOT</version>
128 								</artifact>
129 							</target>
130 						</configuration>
131 					</plugin>
132 				</plugins>
133 			</build>
134 		</profile>
135 		<profile>
136 			<id>2019-06</id>
137 			<build>
138 				<plugins>
139 					<plugin>
140 						<groupId>org.eclipse.tycho</groupId>
141 						<artifactId>target-platform-configuration</artifactId>
142 						<version>${tycho.version}</version>
143 						<configuration>
144 							<target>
145 								<artifact>
146 									<groupId>org.openjdk.jmc</groupId>
147 									<artifactId>platform-definition-2019-06</artifactId>
148 									<version>8.0.0-SNAPSHOT</version>
149 								</artifact>
150 							</target>
151 						</configuration>
152 					</plugin>
153 				</plugins>
154 			</build>
155 		</profile>
156 		<profile>
157 			<id>2019-03</id>
158 			<build>
159 				<plugins>
160 					<plugin>
161 						<groupId>org.eclipse.tycho</groupId>
162 						<artifactId>target-platform-configuration</artifactId>
163 						<version>${tycho.version}</version>
164 						<configuration>
165 							<target>
166 								<artifact>
167 									<groupId>org.openjdk.jmc</groupId>
168 									<artifactId>platform-definition-2019-03</artifactId>
169 									<version>8.0.0-SNAPSHOT</version>
170 								</artifact>
171 							</target>
172 						</configuration>
173 					</plugin>
174 				</plugins>
175 			</build>
176 		</profile>
177 		<profile>
178 			<id>2018-12</id>
179 			<build>
180 				<plugins>
181 					<plugin>
182 						<groupId>org.eclipse.tycho</groupId>
183 						<artifactId>target-platform-configuration</artifactId>
184 						<version>${tycho.version}</version>
185 						<configuration>
186 							<target>
187 								<artifact>
188 									<groupId>org.openjdk.jmc</groupId>
189 									<artifactId>platform-definition-2018-12</artifactId>
190 									<version>8.0.0-SNAPSHOT</version>
191 								</artifact>
192 							</target>
193 						</configuration>
194 					</plugin>
195 				</plugins>
196 			</build>
197 		</profile>
198 		<profile>
199 			<id>2018-09</id>
200 			<build>
201 				<plugins>
202 					<plugin>
203 						<groupId>org.eclipse.tycho</groupId>
204 						<artifactId>target-platform-configuration</artifactId>
205 						<version>${tycho.version}</version>
206 						<configuration>
207 							<target>
208 								<artifact>
209 									<groupId>org.openjdk.jmc</groupId>
210 									<artifactId>platform-definition-2018-09</artifactId>
211 									<version>8.0.0-SNAPSHOT</version>
212 								</artifact>
213 							</target>
214 						</configuration>
215 					</plugin>
216 				</plugins>
217 			</build>
218 		</profile>
219 		<profile>
220 			<id>photon</id>
221 			<build>
222 				<plugins>
223 					<plugin>
224 						<groupId>org.eclipse.tycho</groupId>
225 						<artifactId>target-platform-configuration</artifactId>
226 						<version>${tycho.version}</version>
227 						<configuration>
228 							<target>
229 								<artifact>
230 									<groupId>org.openjdk.jmc</groupId>
231 									<artifactId>platform-definition-photon</artifactId>
232 									<version>8.0.0-SNAPSHOT</version>
233 								</artifact>
234 							</target>
235 						</configuration>
236 					</plugin>
237 				</plugins>
238 			</build>
239 		</profile>
240 	</profiles>
241 	<build>
242 		<plugins>
243 			<plugin>
244 				<groupId>org.apache.maven.plugins</groupId>
245 				<artifactId>maven-deploy-plugin</artifactId>
246 				<version>${maven.deploy.version}</version>
247 				<configuration>
248 					<skip>true</skip>
249 				</configuration>
250 			</plugin>
251 			<plugin>
252 				<groupId>org.eclipse.tycho</groupId>
253 				<artifactId>target-platform-configuration</artifactId>
254 				<version>${tycho.version}</version>
255 				<configuration>
256 					<environments>
257 						<environment>
258 							<os>win32</os>
259 							<ws>win32</ws>
260 							<arch>x86_64</arch>
261 						</environment>
262 						<environment>
263 							<os>linux</os>
264 							<ws>gtk</ws>
265 							<arch>x86_64</arch>
266 						</environment>
267 						<environment>
268 							<os>macosx</os>
269 							<ws>cocoa</ws>
270 							<arch>x86_64</arch>
271 						</environment>
272 					</environments>
273 				</configuration>
274 			</plugin>
275 			<plugin>
276 				<groupId>org.eclipse.tycho</groupId>
277 				<artifactId>tycho-maven-plugin</artifactId>
278 				<version>${tycho.version}</version>
279 				<extensions>true</extensions>
280 			</plugin>
281 			<plugin>
282 				<groupId>org.eclipse.tycho</groupId>
283 				<artifactId>tycho-compiler-plugin</artifactId>
284 				<version>${tycho.version}</version>
285 				<configuration>
286 					<useProjectSettings>false</useProjectSettings>
287 				</configuration>
288 			</plugin>
289 			<plugin>
290 				<groupId>org.eclipse.tycho</groupId>
291 				<artifactId>tycho-p2-repository-plugin</artifactId>
292 				<version>${tycho.version}</version>
293 				<configuration>
294 					<includeAllDependencies>true</includeAllDependencies>
295 				</configuration>
296 			</plugin>
297 			<plugin>
298 				<groupId>org.eclipse.tycho</groupId>
299 				<artifactId>tycho-packaging-plugin</artifactId>
300 				<version>${tycho.version}</version>
301 				<executions>
302 					<execution>
303 						<id>build-qualifier</id>
304 						<phase>validate</phase>
305 						<goals>
306 							<goal>build-qualifier</goal>
307 						</goals>
308 					</execution>
309 				</executions>
310 				<configuration>
311 					<archive>
312 						<manifestEntries>
313 							<Built-By />
314 						</manifestEntries>
315 					</archive>
316 				</configuration>
317 			</plugin>
318 			<plugin>
319 				<groupId>org.commonjava.maven.plugins</groupId>
320 				<artifactId>directory-maven-plugin</artifactId>
321 				<version>${maven.directory.version}</version>
322 				<executions>
323 					<execution>
324 						<id>directories</id>
325 						<goals>
326 							<goal>highest-basedir</goal>
327 						</goals>
328 						<phase>initialize</phase>
329 						<configuration>
330 							<property>rootDir</property>
331 						</configuration>
332 					</execution>
333 				</executions>
334 			</plugin>
335 			<plugin>
336 				<groupId>com.github.spotbugs</groupId>
337 				<artifactId>spotbugs-maven-plugin</artifactId>
338 				<version>${spotbugs.version}</version>
339 				<configuration>
340 					<effort>Max</effort>
341 					<threshold>Low</threshold>
342 					<excludeFilterFile>${rootDir}/configuration/spotbugs/spotbugs-exclude.xml</excludeFilterFile>
343 				</configuration>
344 				<executions>
345 					<execution>
346 						<goals>
347 							<goal>check</goal>
348 						</goals>
349 					</execution>
350 				</executions>
351 			</plugin>
352 			<plugin>
353 				<groupId>org.codehaus.mojo</groupId>
354 				<artifactId>buildnumber-maven-plugin</artifactId>
355 				<version>${maven.buildnumber.version}</version>
356 				<executions>
357 					<execution>
358 						<phase>initialize</phase>
359 						<goals>
360 							<goal>create</goal>
361 						</goals>
362 						<configuration>
363 							<doCheck>false</doCheck>
364 							<doUpdate>false</doUpdate>
365 							<getRevisionOnlyOnce>true</getRevisionOnlyOnce>
366 							<revisionOnScmFailure>no.scm.config.in.pom</revisionOnScmFailure>
367 						</configuration>
368 					</execution>
369 					<execution>
370 						<id>build.date</id>
371 						<phase>initialize</phase>
372 						<goals>
373 							<goal>create-timestamp</goal>
374 						</goals>
375 						<configuration>
376 							<timestampFormat>yyyy-MM-dd</timestampFormat>
377 							<timestampPropertyName>build.date</timestampPropertyName>
378 						</configuration>
379 					</execution>
380 					<!-- TODO: Maybe add the create-metadata goal after we've made the switch to Mercurial -->
381 				</executions>
382 			</plugin>
383 			<plugin>
384 				<groupId>org.apache.maven.plugins</groupId>
385 				<artifactId>maven-enforcer-plugin</artifactId>
386 				<version>${maven.enforcer.version}</version>
387 				<executions>
388 					<execution>
389 						<id>enforce-java</id>
390 						<goals>
391 							<goal>enforce</goal>
392 						</goals>
393 						<configuration>
394 							<rules>
395 								<requireJavaVersion>
396 									<version>[1.8.0-40,)</version>
397 									<message>Building JMC requires Java 8 version JDK 1.8.0_40 or later</message>
398 								</requireJavaVersion>
399 							</rules>
400 						</configuration>
401 					</execution>
402 					<execution>
403 						<id>enforce-maven</id>
404 						<goals>
405 							<goal>enforce</goal>
406 						</goals>
407 						<configuration>
408 							<rules>
409 								<requireMavenVersion>
410 									<version>3.3.1</version>
411 									<message>Building JMC requires at least Maven 3.3.1</message>
412 								</requireMavenVersion>
413 							</rules>
414 						</configuration>
415 					</execution>
416 				</executions>
417 			</plugin>
418 			<plugin>
419   			<groupId>com.diffplug.spotless</groupId>
420   			<artifactId>spotless-maven-plugin</artifactId>
421   			<version>${spotless.version}</version>
422   			<configuration>
423     			<java>
424       			<eclipse>
425       				<file>${spotless.config.path}</file>
426       				<version>4.8.0</version>
427       			</eclipse>
428     			</java>
429   			</configuration>
430 			</plugin>
431 		</plugins>
432 		<pluginManagement>
433 			<plugins>
434 				<plugin>
435 					<groupId>org.apache.maven.plugins</groupId>
436 					<artifactId>maven-resources-plugin</artifactId>
437 					<version>${maven.resources.version}</version>
438 					<executions>
439 						<execution>
440 							<id>copy-resources</id>
441 							<phase>process-resources</phase>
442 							<goals>
443 								<goal>copy-resources</goal>
444 							</goals>
445 							<configuration>
446 								<outputDirectory>${project.build.directory}/classes/license</outputDirectory>
447 								<resources>
448 									<resource>
449 										<directory>${rootDir}/license</directory>
450 										<includes>
451 											<include>LICENSE.txt</include>
452 										</includes>
453 									</resource>
454 								</resources>
455 							</configuration>
456 						</execution>
457 						<execution>
458 							<id>copy-resources-javadoc</id>
459 							<phase>prepare-package</phase>
460 							<goals>
461 								<goal>copy-resources</goal>
462 							</goals>
463 							<configuration>
464 								<outputDirectory>${project.build.directory}/apidocs/license</outputDirectory>
465 								<resources>
466 									<resource>
467 										<directory>${rootDir}/license</directory>
468 										<includes>
469 											<include>LICENSE.txt</include>
470 										</includes>
471 									</resource>
472 								</resources>
473 							</configuration>
474 						</execution>
475 						<execution>
476 							<id>copy-resources-to-linux</id>
477 							<phase>prepare-package</phase>
478 							<goals>
479 								<goal>copy-resources</goal>
480 							</goals>
481 							<configuration>
482 								<outputDirectory>${project.build.directory}/products/org.openjdk.jmc/linux/gtk/x86_64/legal
483 								</outputDirectory>
484 								<resources>
485 									<resource>
486 										<directory>${rootDir}/license</directory>
487 										<includes>
488 											<include>LICENSE.txt</include>
489 											<include>THIRDPARTYREADME.txt</include>
490 											<include>COPYRIGHT</include>
491 										</includes>
492 									</resource>
493 								</resources>
494 							</configuration>
495 						</execution>
496 						<execution>
497 							<id>copy-resources-to-windows</id>
498 							<phase>prepare-package</phase>
499 							<goals>
500 								<goal>copy-resources</goal>
501 							</goals>
502 							<configuration>
503 								<outputDirectory>${project.build.directory}/products/org.openjdk.jmc/win32/win32/x86_64/legal
504 								</outputDirectory>
505 								<resources>
506 									<resource>
507 										<directory>${rootDir}/license</directory>
508 										<includes>
509 											<include>LICENSE.txt</include>
510 											<include>THIRDPARTYREADME.txt</include>
511 											<include>COPYRIGHT</include>
512 										</includes>
513 									</resource>
514 								</resources>
515 							</configuration>
516 						</execution>
517 						<execution>
518 							<id>copy-resources-to-mac</id>
519 							<phase>prepare-package</phase>
520 							<goals>
521 								<goal>copy-resources</goal>
522 							</goals>
523 							<configuration>
524 								<outputDirectory>${project.build.directory}/products/org.openjdk.jmc/macosx/cocoa/x86_64/legal
525 								</outputDirectory>
526 								<resources>
527 									<resource>
528 										<directory>${rootDir}/license</directory>
529 										<includes>
530 											<include>LICENSE.txt</include>
531 											<include>THIRDPARTYREADME.txt</include>
532 											<include>COPYRIGHT</include>
533 										</includes>
534 									</resource>
535 								</resources>
536 							</configuration>
537 						</execution>
538 					</executions>
539 				</plugin>
540 			</plugins>
541 		</pluginManagement>
542 	</build>
543 </project>