dependabot[bot]
2020-04-04 d76796e2c1baa698ef40f9ccd764b9878ff3d9e0
commit | author | age
81fbcf 1 <?xml version="1.0" encoding="UTF-8"?>
c1c73e 2
DK 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">
81fbcf 5   <modelVersion>4.0.0</modelVersion>
c1c73e 6
81fbcf 7   <groupId>com.redhat.training.example</groupId>
DK 8   <artifactId>todo-api</artifactId>
9   <version>1.0.0-SNAPSHOT</version>
10   <packaging>war</packaging>
c1c73e 11   <name>ToDo API Thorntail Example</name>
DK 12   <description>ToDo API microservice using Thorntail</description>
81fbcf 13
DK 14   <properties>
c1c73e 15     <!-- Explicitly declaring the source encoding eliminates the following
DK 16       message: -->
17     <!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
18       resources, i.e. build is platform dependent! -->
81fbcf 19     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
c1c73e 20     <failOnMissingWebXml>false</failOnMissingWebXml>
DK 21
22     <!-- Thorntail dependency versions -->
23     <version.thorntail>2.4.0.Final</version.thorntail>
24
137aec 25     <!-- MySQL JDBC Connector -->
DK 26     <version.mysql>8.0.16</version.mysql>
27
c1c73e 28     <!-- other plugin versions -->
DK 29     <version.compiler.plugin>3.1</version.compiler.plugin>
30     <version.surefire.plugin>2.16</version.surefire.plugin>
31     <version.war.plugin>2.5</version.war.plugin>
32     <version.fabric8.plugin>4.1.0</version.fabric8.plugin>
33
34     <!-- maven-compiler-plugin -->
35     <maven.compiler.target>1.8</maven.compiler.target>
36     <maven.compiler.source>1.8</maven.compiler.source>
81fbcf 37   </properties>
c1c73e 38
81fbcf 39
DK 40   <dependencyManagement>
41     <dependencies>
42       <dependency>
c1c73e 43         <groupId>io.thorntail</groupId>
81fbcf 44         <artifactId>bom-all</artifactId>
c1c73e 45         <version>${version.thorntail}</version>
81fbcf 46         <scope>import</scope>
DK 47         <type>pom</type>
48       </dependency>
49     </dependencies>
50   </dependencyManagement>
51
c1c73e 52   <dependencies>
DK 53     <dependency>
16a11f 54       <groupId>javax</groupId>
DK 55       <artifactId>javaee-api</artifactId>
56       <version>7.0</version>
57       <scope>provided</scope>
58     </dependency>
59     <dependency>
60       <groupId>io.thorntail</groupId>
61       <artifactId>jaxrs-jsonp</artifactId>
62     </dependency>
63     <dependency>
64       <groupId>io.thorntail</groupId>
65       <artifactId>jpa</artifactId>
66     </dependency>
67     <dependency>
68       <groupId>io.thorntail</groupId>
69       <artifactId>ejb</artifactId>
70     </dependency>
71     <dependency>
72       <groupId>io.thorntail</groupId>
73       <artifactId>datasources</artifactId>
74     </dependency>
75     <dependency>
c1c73e 76       <groupId>io.thorntail</groupId>
DK 77       <artifactId>cdi</artifactId>
78     </dependency>
79     <dependency>
80       <groupId>io.thorntail</groupId>
81       <artifactId>jaxrs</artifactId>
16a11f 82     </dependency>
DK 83     <dependency>
84       <groupId>mysql</groupId>
85       <artifactId>mysql-connector-java</artifactId>
86       <version>${version.mysql}</version>
c1c73e 87     </dependency>
DK 88   </dependencies>
89
81fbcf 90   <build>
c1c73e 91     <!-- Maven will append the version to the finalName (which is the name
DK 92          given to the generated war, and hence the context root) -->
93     <finalName>hello</finalName>
81fbcf 94     <plugins>
c1c73e 95       <!-- The Thorntail Maven plugin creates an uber jar -->
DK 96       <!-- To use, run: mvn thorntail:run -->
81fbcf 97       <plugin>
c1c73e 98         <groupId>io.thorntail</groupId>
DK 99         <artifactId>thorntail-maven-plugin</artifactId>
100         <version>${version.thorntail}</version>
81fbcf 101         <executions>
DK 102           <execution>
103             <goals>
104               <goal>package</goal>
105             </goals>
106           </execution>
107         </executions>
108       </plugin>
109       <plugin>
110         <groupId>io.fabric8</groupId>
111         <artifactId>fabric8-maven-plugin</artifactId>
c1c73e 112         <version>${version.fabric8.plugin}</version>
81fbcf 113         <executions>
DK 114           <execution>
c1c73e 115             <id>fmp</id>
81fbcf 116             <goals>
DK 117               <goal>resource</goal>
118               <goal>build</goal>
119             </goals>
120           </execution>
121         </executions>
122       </plugin>
123     </plugins>
124   </build>
c1c73e 125
81fbcf 126 </project>