1 <?xml version="1.0" encoding="UTF-8"?>
  2 <!--
  3    Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
  4    Copyright (c) 2019, Datadog, Inc. All rights reserved.
  5 
  6    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  7 
  8    The contents of this file are subject to the terms of either the Universal Permissive License
  9    v 1.0 as shown at http://oss.oracle.com/licenses/upl
 10 
 11    or the following license:
 12 
 13    Redistribution and use in source and binary forms, with or without modification, are permitted
 14    provided that the following conditions are met:
 15 
 16    1. Redistributions of source code must retain the above copyright notice, this list of conditions
 17    and the following disclaimer.
 18 
 19    2. Redistributions in binary form must reproduce the above copyright notice, this list of
 20    conditions and the following disclaimer in the documentation and/or other materials provided with
 21    the distribution.
 22 
 23    3. Neither the name of the copyright holder nor the names of its contributors may be used to
 24    endorse or promote products derived from this software without specific prior written permission.
 25 
 26    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
 27    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 28    FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 29    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 30    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 31    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 32    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
 33    WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 34 -->
 35 <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">
 36 	<modelVersion>4.0.0</modelVersion>
 37 	<parent>
 38 		<groupId>org.openjdk.jmc</groupId>
 39 		<artifactId>missioncontrol.application</artifactId>
 40 		<version>8.0.0-SNAPSHOT</version>
 41 	</parent>
 42 	<artifactId>org.openjdk.jmc.flightrecorder.flameview</artifactId>
 43 	<packaging>eclipse-plugin</packaging>
 44 
 45 	<properties>
 46 		<download.maven.plugin.version>1.4.2</download.maven.plugin.version>
 47 		<download-maven-plugin.phase>process-resources</download-maven-plugin.phase>
 48 		<download-maven-plugin.output>${project.basedir}/src/main/resources/jslibs</download-maven-plugin.output>
 49 	</properties>
 50 
 51 	<build>
 52 		<plugins>
 53 			<plugin>
 54 				<groupId>com.googlecode.maven-download-plugin</groupId>
 55 				<artifactId>download-maven-plugin</artifactId>
 56 				<version>${download.maven.plugin.version}</version>
 57 				<executions>
 58 					<execution>
 59 						<id>d3-flamegraph-css</id>
 60 						<phase>${download-maven-plugin.phase}</phase>
 61 						<goals>
 62 							<goal>wget</goal>
 63 						</goals>
 64 						<configuration>
 65 							<url>https://cdn.jsdelivr.net/gh/spiermar/d3-flame-graph@2.0.3/dist/d3-flamegraph.css</url>
 66 							<unpack>false</unpack>
 67 							<outputDirectory>${download-maven-plugin.output}</outputDirectory>
 68 						</configuration>
 69 					</execution>
 70 					<execution>
 71 						<id>ie-html5shiv-js</id>
 72 						<phase>${download-maven-plugin.phase}</phase>
 73 						<goals>
 74 							<goal>wget</goal>
 75 						</goals>
 76 						<configuration>
 77 							<url>https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js</url>
 78 							<unpack>false</unpack>
 79 							<outputDirectory>${download-maven-plugin.output}</outputDirectory>
 80 						</configuration>
 81 					</execution>
 82 					<execution>
 83 						<id>ie-respond-js</id>
 84 						<phase>${download-maven-plugin.phase}</phase>
 85 						<goals>
 86 							<goal>wget</goal>
 87 						</goals>
 88 						<configuration>
 89 							<url>https://oss.maxcdn.com/respond/1.4.2/respond.min.js</url>
 90 							<unpack>false</unpack>
 91 							<outputDirectory>${download-maven-plugin.output}</outputDirectory>
 92 						</configuration>
 93 					</execution>
 94 					<execution>
 95 						<id>d3-v4-js</id>
 96 						<phase>${download-maven-plugin.phase}</phase>
 97 						<goals>
 98 							<goal>wget</goal>
 99 						</goals>
100 						<configuration>
101 							<url>https://d3js.org/d3.v4.min.js</url>
102 							<unpack>false</unpack>
103 							<outputDirectory>${download-maven-plugin.output}</outputDirectory>
104 						</configuration>
105 					</execution>
106 					<execution>
107 						<id>d3-tip-js</id>
108 						<phase>${download-maven-plugin.phase}</phase>
109 						<goals>
110 							<goal>wget</goal>
111 						</goals>
112 						<configuration>
113 							<url>https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.9.1/d3-tip.min.js</url>
114 							<unpack>false</unpack>
115 							<outputDirectory>${download-maven-plugin.output}</outputDirectory>
116 						</configuration>
117 					</execution>
118 					<execution>
119 						<id>d3-flamegraph-js</id>
120 						<phase>${download-maven-plugin.phase}</phase>
121 						<goals>
122 							<goal>wget</goal>
123 						</goals>
124 						<configuration>
125 							<url>https://cdn.jsdelivr.net/gh/spiermar/d3-flame-graph@2.0.3/dist/d3-flamegraph.min.js</url>
126 							<unpack>false</unpack>
127 							<outputDirectory>${download-maven-plugin.output}</outputDirectory>
128 						</configuration>
129 					</execution>
130 				</executions>
131 			</plugin>
132 		</plugins>
133 	</build>
134 </project>