Dan K
2019-07-19 9963c0bd49817821ec545e3cb1d936f70552ee88
commit | author | age
6e5795 1 <?xml version="1.0" encoding="UTF-8"?>
DK 2
3 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9963c0 4   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
DK 5   <modelVersion>4.0.0</modelVersion>
6e5795 6
9963c0 7   <groupId>com.redhat.training.openshift</groupId>
DK 8   <artifactId>hello</artifactId>
9   <version>1.0</version>
10   <packaging>war</packaging>
11   <name>Red Hat Training Hello Java app</name>
12   <description>Hello microservice using Thorntail</description>
6e5795 13
9963c0 14   <properties>
DK 15     <!-- Explicitly declaring the source encoding eliminates the following
16       message: -->
17     <!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
18       resources, i.e. build is platform dependent! -->
19     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20     <failOnMissingWebXml>false</failOnMissingWebXml>
6e5795 21
9963c0 22     <!-- Thorntail dependency versions -->
DK 23     <version.thorntail>2.4.0.Final</version.thorntail>
6e5795 24
9963c0 25     <!-- other plugin versions -->
DK 26     <version.compiler.plugin>3.1</version.compiler.plugin>
27     <version.surefire.plugin>2.16</version.surefire.plugin>
28     <version.war.plugin>2.5</version.war.plugin>
29     <version.fabric8.plugin>4.1.0</version.fabric8.plugin>
6e5795 30
9963c0 31     <!-- maven-compiler-plugin -->
DK 32     <maven.compiler.target>1.8</maven.compiler.target>
33     <maven.compiler.source>1.8</maven.compiler.source>
34   </properties>
6e5795 35
DK 36
9963c0 37   <dependencyManagement>
6e5795 38     <dependencies>
DK 39       <dependency>
40         <groupId>io.thorntail</groupId>
41         <artifactId>bom-all</artifactId>
42         <version>${version.thorntail}</version>
43         <scope>import</scope>
44         <type>pom</type>
45       </dependency>
46     </dependencies>
47   </dependencyManagement>
48
9963c0 49   <dependencies>
DK 50     <dependency>
51       <groupId>io.thorntail</groupId>
52       <artifactId>cdi</artifactId>
53     </dependency>
54     <dependency>
55       <groupId>io.thorntail</groupId>
56       <artifactId>jaxrs</artifactId>
57     </dependency>
58   </dependencies>
6e5795 59
9963c0 60   <build>
DK 61     <!-- Maven will append the version to the finalName (which is the name
62          given to the generated war, and hence the context root) -->
63     <finalName>hello</finalName>
64     <plugins>
65       <!-- The Thorntail Maven plugin creates an uber jar -->
66       <!-- To use, run: mvn thorntail:run -->
67       <plugin>
6e5795 68         <groupId>io.thorntail</groupId>
DK 69         <artifactId>thorntail-maven-plugin</artifactId>
70         <version>${version.thorntail}</version>
71         <executions>
72           <execution>
73             <goals>
74               <goal>package</goal>
75             </goals>
76           </execution>
77         </executions>
78       </plugin>
79       <plugin>
80         <groupId>io.fabric8</groupId>
81         <artifactId>fabric8-maven-plugin</artifactId>
82         <version>${version.fabric8.plugin}</version>
83         <executions>
84           <execution>
85             <id>fmp</id>
86             <goals>
87               <goal>resource</goal>
88               <goal>build</goal>
89             </goals>
90           </execution>
91         </executions>
92       </plugin>
93     </plugins>
94   </build>
95
96 </project>