pom.xml
Download pom.xml
1: <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/maven-v4_0_0.xsd">
3: <modelVersion>4.0.0</modelVersion>
4:
5: <groupId>com.wpollock.hello</groupId>
6: <artifactId>hello</artifactId>
7: <packaging>jar</packaging>
8: <version>1.0.0-SNAPSHOT</version>
9:
10: <properties>
11: <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12: <maven.compiler.release>11</maven.compiler.release>
13: <main.class>com.wpollock.hello.App</main.class>
14:
15: <maven.jar.plugin.version>3.1.1</maven.jar.plugin.version>
16: <maven.jxr.plugin.version>3.0.0</maven.jxr.plugin.version>
17: <maven.javadoc.plugin.version>3.1.0</maven.javadoc.plugin.version>
18: <maven.project.info.reports.plugin.version>3.0.0</maven.project.info.reports.plugin.version>
19: <maven.site.plugin.version>3.7.1</maven.site.plugin.version>
20: <maven.surefire.report.plugin.version>2.22.1</maven.surefire.report.plugin.version>
21:
22: <junit.jupiter.version>5.4.1</junit.jupiter.version>
23: <exec.maven.version>1.6.0</exec.maven.version>
24: <versions.maven.version>2.7</versions.maven.version>
25: </properties>
26:
27: <name>hello</name>
28: <url>https://wpollock.com</url>
29:
30: <description>
31: Demo project showing executable Jar for "Hello, World" non-GUI app.
32: This is the generated archetype POM with an extra description,
33: updated JUnit from version 3 to 5, uses Java 11, uses UTF-8 for text files,
34: added plugin to allow goal of "mvn exec:java", updated the site plugin to
35: include the unit test report, added source code cross-reference
36: plugin to the reports, and added versions plugin to view and manage
37: versions of plugins. See https://maven.apache.org/pom.html for
38: details on POM.xml settings.
39: </description>
40: <inceptionYear>2019</inceptionYear>
41:
42: <licenses>
43: <license>
44: <name>Apache 2</name>
45: <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
46: <distribution>repo</distribution>
47: <comments>A business-friendly FOSS license</comments>
48: </license>
49: </licenses>
50:
51: <organization>
52: <name>WP Software Construction Co.</name>
53: <url>https://wpollock.com/</url>
54: </organization>
55:
56: <developers>
57: <developer>
58: <id>wpollock</id>
59: <name>Wayne Pollock</name>
60: <email>pollock@acm.org</email>
61: <url>https://wpollock.com/</url>
62: <organization>HCC</organization>
63: <organizationUrl>https://www.hccfl.edu/</organizationUrl>
64: <roles>
65: <role>developer</role>
66: </roles>
67: <timezone>-5</timezone>
68: <properties>
69: <picUrl>https://wpollock.com/images/Wayne.jpg</picUrl>
70: </properties>
71: </developer>
72: </developers>
73:
74: <dependencies>
75: <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter -->
76: <dependency>
77: <groupId>org.junit.jupiter</groupId>
78: <artifactId>junit-jupiter</artifactId>
79: <version>${junit.jupiter.version}</version>
80: <scope>test</scope>
81: </dependency>
82: <dependency>
83: <groupId>org.apache.maven.plugins</groupId>
84: <artifactId>maven-project-info-reports-plugin</artifactId>
85: <version>${maven.project.info.reports.plugin.version}</version>
86: </dependency>
87:
88: <!-- https://mvnrepository.com/artifact/org.codehaus.mojo/versions-maven-plugin -->
89: <dependency>
90: <groupId>org.codehaus.mojo</groupId>
91: <artifactId>versions-maven-plugin</artifactId>
92: <version>${versions.maven.version}</version>
93: </dependency>
94: </dependencies>
95:
96: <build>
97: <plugins>
98: <plugin>
99: <groupId>org.apache.maven.plugins</groupId>
100: <artifactId>maven-jar-plugin</artifactId>
101: <version>${maven.jar.plugin.version}</version>
102: <configuration>
103: <archive>
104: <manifest>
105: <mainClass>${main.class}</mainClass>
106: </manifest>
107: </archive>
108: </configuration>
109: </plugin>
110:
111: <plugin>
112: <groupId>org.apache.maven.plugins</groupId>
113: <artifactId>maven-site-plugin</artifactId>
114: <version>${maven.site.plugin.version}</version>
115: </plugin>
116:
117: <!-- http://www.mojohaus.org/exec-maven-plugin -->
118: <plugin>
119: <groupId>org.codehaus.mojo</groupId>
120: <artifactId>exec-maven-plugin</artifactId>
121: <version>${exec.maven.version}</version>
122: <executions>
123: <execution>
124: <goals>
125: <goal>java</goal>
126: </goals>
127: </execution>
128: </executions>
129: <configuration>
130: <mainClass>${main.class}</mainClass>
131: <!--
132: <arguments>
133: <argument>foo</argument>
134: </arguments>
135: -->
136: </configuration>
137: </plugin>
138: </plugins>
139: </build>
140:
141: <reporting>
142: <plugins>
143: <plugin>
144: <groupId>org.apache.maven.plugins</groupId>
145: <artifactId>maven-surefire-report-plugin</artifactId>
146: <version>${maven.surefire.report.plugin.version}</version>
147: </plugin>
148: <plugin>
149: <groupId>org.apache.maven.plugins</groupId>
150: <artifactId>maven-jxr-plugin</artifactId>
151: <version>${maven.jxr.plugin.version}</version>
152: </plugin>
153: <plugin>
154: <groupId>org.apache.maven.plugins</groupId>
155: <artifactId>maven-javadoc-plugin</artifactId>
156: <version>${maven.javadoc.plugin.version}</version>
157: <!--
158: <configuration> ... </configuration>
159: -->
160: </plugin>
161: </plugins>
162: </reporting>
163:
164: </project>