[MJLINK-21] - Upgrade test dependencies
[maven-jlink-plugin.git] / pom.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2
3 <!--
4 Licensed to the Apache Software Foundation (ASF) under one
5 or more contributor license agreements. See the NOTICE file
6 distributed with this work for additional information
7 regarding copyright ownership. The ASF licenses this file
8 to you under the Apache License, Version 2.0 (the
9 "License"); you may not use this file except in compliance
10 with the License. You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing,
15 software distributed under the License is distributed on an
16 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 KIND, either express or implied. See the License for the
18 specific language governing permissions and limitations
19 under the License.
20 -->
21
22 <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">
23 <modelVersion>4.0.0</modelVersion>
24
25 <parent>
26 <groupId>org.apache.maven.plugins</groupId>
27 <artifactId>maven-plugins</artifactId>
28 <version>31</version>
29 <relativePath>../maven-plugins/pom.xml</relativePath>
30 </parent>
31
32 <artifactId>maven-jlink-plugin</artifactId>
33 <version>3.0.0-alpha-2-SNAPSHOT</version>
34 <packaging>maven-plugin</packaging>
35
36 <name>Apache Maven JLink Plugin</name>
37 <description>The Maven JLink Plugin is intended to create Modular Run-Time Images.
38 http://openjdk.java.net/jeps/282, http://openjdk.java.net/jeps/220</description>
39 <inceptionYear>2016</inceptionYear>
40
41 <prerequisites>
42 <maven>${mavenVersion}</maven>
43 </prerequisites>
44
45 <scm>
46 <connection>scm:git:https://gitbox.apache.org/repos/asf/maven-jlink-plugin.git</connection>
47 <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-jlink-plugin.git</developerConnection>
48 <url>https://github.com/apache/maven-jlink-plugin/tree/${project.scm.tag}</url>
49 <tag>HEAD</tag>
50 </scm>
51
52 <issueManagement>
53 <system>jira</system>
54 <url>https://issues.apache.org/jira/browse/MJLINK</url>
55 </issueManagement>
56 <ciManagement>
57 <system>Jenkins</system>
58 <url>https://builds.apache.org/job/maven-box/job/maven-jlink-plugin/</url>
59 </ciManagement>
60 <distributionManagement>
61 <site>
62 <id>apache.website</id>
63 <url>scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path}</url>
64 </site>
65 </distributionManagement>
66
67 <properties>
68 <surefire.version>2.21.0</surefire.version>
69 <mavenVersion>3.0</mavenVersion>
70 <maven.compiler.source>1.7</maven.compiler.source>
71 <maven.compiler.target>1.7</maven.compiler.target>
72 <maven.plugin.tools.version>3.5.1</maven.plugin.tools.version>
73 </properties>
74
75 <dependencies>
76 <dependency>
77 <groupId>org.apache.maven.plugin-tools</groupId>
78 <artifactId>maven-plugin-annotations</artifactId>
79 <version>${maven.plugin.tools.version}</version>
80 <scope>provided</scope>
81 </dependency>
82 <!-- Maven -->
83 <dependency>
84 <groupId>org.apache.maven</groupId>
85 <artifactId>maven-plugin-api</artifactId>
86 <version>${mavenVersion}</version>
87 </dependency>
88 <dependency>
89 <groupId>org.apache.maven</groupId>
90 <artifactId>maven-core</artifactId>
91 <version>${mavenVersion}</version>
92 </dependency>
93 <dependency>
94 <groupId>org.apache.maven</groupId>
95 <artifactId>maven-archiver</artifactId>
96 <version>3.2.0</version>
97 </dependency>
98 <dependency>
99 <groupId>org.codehaus.plexus</groupId>
100 <artifactId>plexus-archiver</artifactId>
101 <version>3.6.0</version>
102 </dependency>
103 <dependency>
104 <groupId>org.codehaus.plexus</groupId>
105 <artifactId>plexus-java</artifactId>
106 <version>0.9.7</version>
107 </dependency>
108 <dependency>
109 <groupId>org.apache.commons</groupId>
110 <artifactId>commons-lang3</artifactId>
111 <version>3.6</version>
112 </dependency>
113 <dependency>
114 <groupId>junit</groupId>
115 <artifactId>junit</artifactId>
116 <version>4.12</version>
117 <scope>test</scope>
118 </dependency>
119
120 <dependency>
121 <groupId>org.mockito</groupId>
122 <artifactId>mockito-core</artifactId>
123 <version>2.19.0</version>
124 <scope>test</scope>
125 </dependency>
126 <dependency>
127 <groupId>org.assertj</groupId>
128 <artifactId>assertj-core</artifactId>
129 <version>2.9.1</version>
130 <scope>test</scope>
131 </dependency>
132 </dependencies>
133
134 <build>
135 <pluginManagement>
136 <plugins>
137 <plugin>
138 <artifactId>maven-enforcer-plugin</artifactId>
139 <version>3.0.0-M1</version>
140 <executions>
141 <execution>
142 <id>enforce-bytecode-version</id>
143 <configuration>
144 <rules>
145 <enforceBytecodeVersion>
146 <maxJdkVersion>1.7</maxJdkVersion>
147 <excludes>
148 <exclude>org.ow2.asm:asm</exclude>
149 </excludes>
150 </enforceBytecodeVersion>
151 <requireSameVersions />
152 </rules>
153 </configuration>
154 </execution>
155 </executions>
156 </plugin>
157 </plugins>
158 </pluginManagement>
159 <resources>
160 <resource>
161 <directory>src/main/filtered-resources</directory>
162 <filtering>true</filtering>
163 </resource>
164 </resources>
165 </build>
166
167 <reporting>
168 <plugins>
169 <plugin>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-plugin-plugin</artifactId>
172 <version>${maven.plugin.tools.version}</version>
173 </plugin>
174 <plugin>
175 <groupId>org.apache.maven.plugins</groupId>
176 <artifactId>maven-invoker-plugin</artifactId>
177 <version>3.0.1</version>
178 </plugin>
179 </plugins>
180 </reporting>
181 <profiles>
182 <profile>
183 <id>run-its</id>
184 <build>
185 <plugins>
186 <plugin>
187 <groupId>org.codehaus.mojo</groupId>
188 <artifactId>mrm-maven-plugin</artifactId>
189 <version>1.1.0</version>
190 <executions>
191 <execution>
192 <goals>
193 <goal>start</goal>
194 <goal>stop</goal>
195 </goals>
196 </execution>
197 </executions>
198 <configuration>
199 <propertyName>mrm.repository.url</propertyName>
200 <repositories>
201 <mockRepo>
202 <source>src/it/mrm/repository</source>
203 </mockRepo>
204 <proxyRepo />
205 </repositories>
206 </configuration>
207 </plugin>
208 <plugin>
209 <groupId>org.apache.maven.plugins</groupId>
210 <artifactId>maven-invoker-plugin</artifactId>
211 <configuration>
212 <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
213 <environmentVariables>
214 <!--
215 ! Prevent reading the .mavenrc or maven_pre.bat on Windows
216 ! in integration tests.
217 -->
218 <MAVEN_SKIP_RC>1</MAVEN_SKIP_RC>
219 </environmentVariables>
220 <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
221 <projectsDirectory>src/it/projects</projectsDirectory>
222 <pomIncludes>
223 <pomInclude>**/pom.xml</pomInclude>
224 <!--
225 <pomInclude>cli-options/**/pom.xml</pomInclude>
226 -->
227 </pomIncludes>
228 <pomExcludes>
229 <!--
230 ! Currently this Test does not work correctly either based
231 ! on wrong implementation or my limited knowledge of suggest-providers
232 ! and how the work.
233 -->
234 <pomExclude>cli-options/suggest-providers/pom.xml</pomExclude>
235 </pomExcludes>
236 <settingsFile>src/it/mrm/settings.xml</settingsFile>
237 <filterProperties>
238 <mrm.repository.url>${mrm.repository.url}</mrm.repository.url>
239 </filterProperties>
240 <goals>
241 <goal>clean</goal>
242 <goal>package</goal>
243 </goals>
244 </configuration>
245 <executions>
246 <execution>
247 <id>integration-test</id>
248 <goals>
249 <goal>install</goal>
250 <goal>integration-test</goal>
251 <goal>verify</goal>
252 </goals>
253 </execution>
254 </executions>
255 </plugin>
256 </plugins>
257 </build>
258 </profile>
259 </profiles>
260
261 </project>