Dan K
2019-07-16 698457ac05ca34aff02b1e7fc83c542540e3f9f2
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"
4     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5     <modelVersion>4.0.0</modelVersion>
6
7     <groupId>com.redhat.training.openshift</groupId>
8     <artifactId>micro-java</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>
13
14     <properties>
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>
21
22         <!-- Thorntail dependency versions -->
23         <version.thorntail>2.4.0.Final</version.thorntail>
24
25         <!-- other plugin versions -->
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                 <!--
30         <version.fabric8.plugin>3.1.80.redhat-000019</version.fabric8.plugin>
698457 31                 -->
DK 32                 <!--
6e5795 33         <version.fabric8.plugin>3.5.38</version.fabric8.plugin>
DK 34                 -->
35         <version.fabric8.plugin>4.1.0</version.fabric8.plugin>
36         <!-- maven-compiler-plugin -->
37         <maven.compiler.target>1.8</maven.compiler.target>
38         <maven.compiler.source>1.8</maven.compiler.source>
39
40     </properties>
41
42
43     <dependencyManagement>
44     <dependencies>
45       <dependency>
46         <groupId>io.thorntail</groupId>
47         <artifactId>bom-all</artifactId>
48         <version>${version.thorntail}</version>
49         <scope>import</scope>
50         <type>pom</type>
51       </dependency>
52     </dependencies>
53   </dependencyManagement>
54
55     <dependencies>
56         <dependency>
57             <groupId>io.thorntail</groupId>
58             <artifactId>cdi</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>io.thorntail</groupId>
62             <artifactId>jaxrs</artifactId>
63         </dependency>
64
65     </dependencies>
66
67     <build>
68         <!-- Maven will append the version to the finalName (which is the name
69             given to the generated war, and hence the context root) -->
70         <finalName>hello</finalName>
71         <plugins>
72             <!-- The Thorntail Maven plugin creates an uber jar -->
73             <!-- To use, run: mvn thorntail:run -->
74             <plugin>
75         <groupId>io.thorntail</groupId>
76         <artifactId>thorntail-maven-plugin</artifactId>
77         <version>${version.thorntail}</version>
78         <executions>
79           <execution>
80             <goals>
81               <goal>package</goal>
82             </goals>
83           </execution>
84         </executions>
85       </plugin>
86       <plugin>
87         <groupId>io.fabric8</groupId>
88         <artifactId>fabric8-maven-plugin</artifactId>
89         <version>${version.fabric8.plugin}</version>
90         <executions>
91           <execution>
92             <id>fmp</id>
93             <goals>
94               <goal>resource</goal>
95               <goal>build</goal>
96             </goals>
97           </execution>
98         </executions>
99       </plugin>
100     </plugins>
101   </build>
102
103 </project>