Skip to content

Commit 9b6dd78

Browse files
committed
Fix #4 Maven POM enhancements
1 parent af89eeb commit 9b6dd78

1 file changed

Lines changed: 335 additions & 49 deletions

File tree

pom.xml

Lines changed: 335 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,337 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
5-
<groupId>net.java.adoptopenjdk</groupId>
6-
<artifactId>lambda-tutorial</artifactId>
7-
<version>1.0-SNAPSHOT</version>
8-
<packaging>jar</packaging>
9-
10-
<name>lambda-tutorial</name>
11-
<url>http://maven.apache.org</url>
12-
13-
<properties>
14-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15-
</properties>
16-
17-
<build>
18-
<plugins>
19-
<plugin>
20-
<groupId>org.apache.maven.plugins</groupId>
21-
<artifactId>maven-compiler-plugin</artifactId>
22-
<version>3.0</version>
23-
<configuration>
24-
<source>1.8</source>
25-
<target>1.8</target>
26-
</configuration>
27-
</plugin>
28-
</plugins>
29-
</build>
30-
31-
<dependencies>
32-
<dependency>
33-
<groupId>junit</groupId>
34-
<artifactId>junit</artifactId>
35-
<version>4.11</version>
36-
<scope>test</scope>
37-
</dependency>
38-
<dependency>
39-
<groupId>org.hamcrest</groupId>
40-
<artifactId>hamcrest-core</artifactId>
41-
<version>1.3</version>
42-
<scope>test</scope>
43-
</dependency>
44-
<dependency>
45-
<groupId>org.hamcrest</groupId>
46-
<artifactId>hamcrest-library</artifactId>
47-
<version>1.3</version>
48-
<scope>test</scope>
49-
</dependency>
50-
</dependencies>
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>net.java.adoptopenjdk</groupId>
6+
<artifactId>lambda-tutorial</artifactId>
7+
<version>1.0-SNAPSHOT</version>
8+
<packaging>jar</packaging>
9+
10+
<name>lambda-tutorial</name>
11+
<description>Adopt OpenJDK Tutorial to teach people about Lambdas!</description>
12+
<url>http://www.github.com/adoptopenjdk/lambdas-tutorial</url>
13+
<inceptionYear>2013</inceptionYear>
14+
15+
<prerequisites>
16+
<maven>3.0.5</maven>
17+
</prerequisites>
18+
19+
<licenses>
20+
<license>
21+
<name>GNU General Public License (GPL) v2</name>
22+
<url>http://www.gnu.org/licenses/gpl2.txt</url>
23+
<distribution>repo</distribution>
24+
<comments>As per OpenJDK itself</comments>
25+
</license>
26+
</licenses>
27+
28+
<organization>
29+
<name>Adopt OpenJDK</name>
30+
<url>http://adoptopenjdk.java.net/</url>
31+
</organization>
32+
33+
<developers>
34+
<developer>
35+
<name>Graham Allan</name>
36+
<timezone>GMT</timezone>
37+
</developer>
38+
</developers>
39+
40+
<contributors>
41+
<contributor>
42+
<name>Martijn Verburg</name>
43+
<timezone>GMT</timezone>
44+
</contributor>
45+
</contributors>
46+
47+
<issueManagement>
48+
<system>GitHub</system>
49+
<url>https://github.com/AdoptOpenJDK/lambda-tutorial/issues</url>
50+
</issueManagement>
51+
52+
<ciManagement>
53+
<system>TBA</system>
54+
<url>TBA</url>
55+
</ciManagement>
56+
57+
<mailingLists>
58+
<mailingList>
59+
<name>Adopt OpenJDK Group/Mailing List</name>
60+
<post>[email protected]</post>
61+
<unsubscribe>[email protected]</unsubscribe>
62+
</mailingList>
63+
</mailingLists>
64+
65+
<properties>
66+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
67+
<jdk.version>1.8</jdk.version>
68+
</properties>
69+
70+
<dependencyManagement>
71+
<dependencies>
72+
<dependency>
73+
<groupId>junit</groupId>
74+
<artifactId>junit</artifactId>
75+
<version>4.11</version>
76+
<scope>test</scope>
77+
</dependency>
78+
<dependency>
79+
<groupId>org.hamcrest</groupId>
80+
<artifactId>hamcrest-core</artifactId>
81+
<version>1.3</version>
82+
<scope>test</scope>
83+
</dependency>
84+
<dependency>
85+
<groupId>org.hamcrest</groupId>
86+
<artifactId>hamcrest-library</artifactId>
87+
<version>1.3</version>
88+
<scope>test</scope>
89+
</dependency>
90+
</dependencies>
91+
</dependencyManagement>
92+
93+
<dependencies>
94+
<dependency>
95+
<groupId>junit</groupId>
96+
<artifactId>junit</artifactId>
97+
</dependency>
98+
<dependency>
99+
<groupId>org.hamcrest</groupId>
100+
<artifactId>hamcrest-core</artifactId>
101+
</dependency>
102+
<dependency>
103+
<groupId>org.hamcrest</groupId>
104+
<artifactId>hamcrest-library</artifactId>
105+
</dependency>
106+
</dependencies>
107+
108+
<build>
109+
<testResources>
110+
<testResource>
111+
<directory>src/test/resources</directory>
112+
</testResource>
113+
</testResources>
114+
<pluginManagement>
115+
<plugins>
116+
<plugin>
117+
<groupId>org.apache.maven.plugins</groupId>
118+
<artifactId>maven-antrun-plugin</artifactId>
119+
<version>1.7</version>
120+
</plugin>
121+
<plugin>
122+
<groupId>org.apache.maven.plugins</groupId>
123+
<artifactId>maven-assembly-plugin</artifactId>
124+
<version>2.4</version>
125+
</plugin>
126+
<plugin>
127+
<groupId>org.apache.maven.plugins</groupId>
128+
<artifactId>maven-clean-plugin</artifactId>
129+
<version>2.5</version>
130+
</plugin>
131+
<plugin>
132+
<groupId>org.apache.maven.plugins</groupId>
133+
<artifactId>maven-compiler-plugin</artifactId>
134+
<version>3.1</version>
135+
<configuration>
136+
<source>${jdk.version}</source>
137+
<target>${jdk.version}</target>
138+
<compilerArgument>-Xlint:unchecked</compilerArgument>
139+
</configuration>
140+
</plugin>
141+
<plugin>
142+
<groupId>org.apache.maven.plugins</groupId>
143+
<artifactId>maven-dependency-plugin</artifactId>
144+
<version>2.7</version>
145+
</plugin>
146+
<plugin>
147+
<groupId>org.apache.maven.plugins</groupId>
148+
<artifactId>maven-deploy-plugin</artifactId>
149+
<version>2.7</version>
150+
</plugin>
151+
<plugin>
152+
<groupId>org.apache.maven.plugins</groupId>
153+
<artifactId>maven-failsafe-plugin</artifactId>
154+
<version>2.14.1</version>
155+
</plugin>
156+
<plugin>
157+
<groupId>org.apache.maven.plugins</groupId>
158+
<artifactId>maven-install-plugin</artifactId>
159+
<version>2.4</version>
160+
</plugin>
161+
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
163+
<artifactId>maven-jar-plugin</artifactId>
164+
<version>2.4</version>
165+
</plugin>
166+
<plugin>
167+
<groupId>org.apache.maven.plugins</groupId>
168+
<artifactId>maven-release-plugin</artifactId>
169+
<version>2.4.1</version>
170+
</plugin>
171+
<plugin>
172+
<groupId>org.apache.maven.plugins</groupId>
173+
<artifactId>maven-resources-plugin</artifactId>
174+
<version>2.6</version>
175+
</plugin>
176+
<plugin>
177+
<groupId>org.apache.maven.plugins</groupId>
178+
<artifactId>maven-surefire-plugin</artifactId>
179+
<version>2.14.1</version>
180+
<configuration>
181+
<systemPropertyVariables>
182+
<java.util.logging.config.file>
183+
src/test/resources/logging.properties
184+
</java.util.logging.config.file>
185+
<derby.stream.error.file>
186+
${project.build.directory}/derby.log
187+
</derby.stream.error.file>
188+
</systemPropertyVariables>
189+
</configuration>
190+
</plugin>
191+
<plugin>
192+
<groupId>org.apache.maven.plugins</groupId>
193+
<artifactId>maven-site-plugin</artifactId>
194+
<version>3.2</version>
195+
<configuration>
196+
<reportPlugins>
197+
<plugin>
198+
<groupId>org.apache.maven.plugins</groupId>
199+
<artifactId>maven-dependency-plugin</artifactId>
200+
<version>2.6</version>
201+
</plugin>
202+
<plugin>
203+
<groupId>org.apache.maven.plugins</groupId>
204+
<artifactId>maven-jxr-plugin</artifactId>
205+
<version>2.3</version>
206+
</plugin>
207+
<!-- TODO When PMD supports 1.8 -->
208+
<!--
209+
<plugin>
210+
<groupId>org.apache.maven.plugins</groupId>
211+
<artifactId>maven-pmd-plugin</artifactId>
212+
<version>2.7.1</version>
213+
<configuration>
214+
<targetJdk>${jdk.version}</targetJdk>
215+
</configuration>
216+
</plugin>
217+
-->
218+
<plugin>
219+
<groupId>org.apache.maven.plugins</groupId>
220+
<artifactId>maven-project-info-reports-plugin</artifactId>
221+
<version>2.6</version>
222+
</plugin>
223+
<!-- TODO When Findbugs supports 1.8 -->
224+
<!--
225+
<plugin>
226+
<groupId>org.codehaus.mojo</groupId>
227+
<artifactId>findbugs-maven-plugin</artifactId>
228+
<version>2.5.2</version>
229+
</plugin>
230+
-->
231+
<plugin>
232+
<groupId>org.codehaus.mojo</groupId>
233+
<artifactId>jdepend-maven-plugin</artifactId>
234+
<version>2.0-beta-2</version>
235+
</plugin>
236+
<plugin>
237+
<groupId>org.codehaus.mojo</groupId>
238+
<artifactId>license-maven-plugin</artifactId>
239+
<version>1.4</version>
240+
</plugin>
241+
<plugin>
242+
<groupId>org.codehaus.mojo</groupId>
243+
<artifactId>versions-maven-plugin</artifactId>
244+
<version>2.0</version>
245+
<reportSets>
246+
<reportSet>
247+
<reports>
248+
<report>dependency-updates-report</report>
249+
<report>plugin-updates-report</report>
250+
<report>property-updates-report</report>
251+
</reports>
252+
</reportSet>
253+
</reportSets>
254+
</plugin>
255+
</reportPlugins>
256+
</configuration>
257+
</plugin>
258+
<plugin>
259+
<groupId>org.codehaus.mojo</groupId>
260+
<artifactId>license-maven-plugin</artifactId>
261+
<version>1.4</version>
262+
</plugin>
263+
<!--
264+
This plugin's configuration is used to store Eclipse m2e settings only.
265+
It has no influence on the Maven build itself.
266+
-->
267+
<plugin>
268+
<groupId>org.eclipse.m2e</groupId>
269+
<artifactId>lifecycle-mapping</artifactId>
270+
<version>1.0.0</version>
271+
<configuration>
272+
<lifecycleMappingMetadata>
273+
<pluginExecutions>
274+
<pluginExecution>
275+
<pluginExecutionFilter>
276+
<groupId>
277+
org.codehaus.mojo
278+
</groupId>
279+
<artifactId>
280+
license-maven-plugin
281+
</artifactId>
282+
<versionRange>
283+
[1.4,)
284+
</versionRange>
285+
<goals>
286+
<goal>
287+
check-file-header
288+
</goal>
289+
</goals>
290+
</pluginExecutionFilter>
291+
<action>
292+
<ignore></ignore>
293+
</action>
294+
</pluginExecution>
295+
</pluginExecutions>
296+
</lifecycleMappingMetadata>
297+
</configuration>
298+
</plugin>
299+
</plugins>
300+
</pluginManagement>
301+
302+
<plugins>
303+
<plugin>
304+
<groupId>org.codehaus.mojo</groupId>
305+
<artifactId>license-maven-plugin</artifactId>
306+
<configuration>
307+
<verbose>false</verbose>
308+
</configuration>
309+
<executions>
310+
<execution>
311+
<id>first</id>
312+
<goals>
313+
<goal>check-file-header</goal>
314+
</goals>
315+
<phase>process-sources</phase>
316+
<configuration>
317+
<licenseName>gpl_v2</licenseName>
318+
<!--
319+
<roots>
320+
<root>src/main/java</root>
321+
<root>src/test/java</root>
322+
</roots>
323+
-->
324+
</configuration>
325+
</execution>
326+
</executions>
327+
</plugin>
328+
</plugins>
329+
</build>
330+
331+
<scm>
332+
<developerConnection>scm:git:[email protected]:AdoptOpenJDK/lambda-tutorial.git</developerConnection>
333+
<url>https://github.com/AdoptOpenJDK/lambda-tutorial</url>
334+
<tag>HEAD</tag>
335+
</scm>
336+
51337
</project>

0 commit comments

Comments
 (0)