|
5 | 5 | <modelVersion>4.0.0</modelVersion>
|
6 | 6 |
|
7 | 7 | <groupId>com.redhat.training.openshift</groupId>
|
8 |
| - <artifactId>hello-swarm</artifactId> |
| 8 | + <artifactId>hello-java</artifactId> |
9 | 9 | <version>1.0</version>
|
10 | 10 | <packaging>war</packaging>
|
11 |
| - <name>Red Hat Training ToT app</name> |
12 |
| - <description>Hello microservice using WildFly Swarm</description> |
| 11 | + <name>Red Hat Training Hello Java app</name> |
| 12 | + <description>Hello microservice using Thorntail</description> |
13 | 13 |
|
14 | 14 | <properties>
|
15 | 15 | <!-- Explicitly declaring the source encoding eliminates the following
|
16 | 16 | message: -->
|
17 | 17 | <!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
|
18 | 18 | resources, i.e. build is platform dependent! -->
|
19 | 19 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
| 20 | + <failOnMissingWebXml>false</failOnMissingWebXml> |
20 | 21 |
|
21 |
| - <!-- JBoss dependency versions --> |
22 |
| - <version.wildfly.swarm>2017.10.0</version.wildfly.swarm> |
| 22 | + <!-- Thorntail dependency versions --> |
| 23 | + <version.thorntail>2.4.0.Final</version.thorntail> |
23 | 24 |
|
24 | 25 | <!-- other plugin versions -->
|
25 | 26 | <version.compiler.plugin>3.1</version.compiler.plugin>
|
|
34 | 35 |
|
35 | 36 |
|
36 | 37 | <dependencyManagement>
|
37 |
| - <dependencies> |
38 |
| - <!-- JBoss distributes a complete set of Java EE 7 APIs including a Bill |
39 |
| - of Materials (BOM). A BOM specifies the versions of a "stack" (or a collection) |
40 |
| - of artifacts. We use this here so that we always get the correct versions |
41 |
| - of artifacts. --> |
42 |
| - <dependency> |
43 |
| - <groupId>org.wildfly.swarm</groupId> |
44 |
| - <artifactId>bom</artifactId> |
45 |
| - <version>${version.wildfly.swarm}</version> |
46 |
| - <type>pom</type> |
47 |
| - <scope>import</scope> |
48 |
| - </dependency> |
49 |
| - </dependencies> |
50 |
| - </dependencyManagement> |
| 38 | + <dependencies> |
| 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> |
51 | 48 |
|
52 | 49 | <dependencies>
|
53 | 50 | <dependency>
|
54 |
| - <groupId>org.wildfly.swarm</groupId> |
55 |
| - <artifactId>jaxrs-jsonp</artifactId> |
56 |
| - </dependency> |
57 |
| - <dependency> |
58 |
| - <groupId>org.wildfly.swarm</groupId> |
59 |
| - <artifactId>jaxrs-cdi</artifactId> |
| 51 | + <groupId>io.thorntail</groupId> |
| 52 | + <artifactId>cdi</artifactId> |
60 | 53 | </dependency>
|
61 | 54 | <dependency>
|
62 |
| - <groupId>org.wildfly.swarm</groupId> |
63 |
| - <artifactId>cdi</artifactId> |
| 55 | + <groupId>io.thorntail</groupId> |
| 56 | + <artifactId>jaxrs</artifactId> |
64 | 57 | </dependency>
|
65 | 58 |
|
66 | 59 | </dependencies>
|
|
70 | 63 | given to the generated war, and hence the context root) -->
|
71 | 64 | <finalName>hello</finalName>
|
72 | 65 | <plugins>
|
| 66 | + <!-- The Thorntail Maven plugin creates an uber jar --> |
| 67 | + <!-- To use, run: mvn thorntail:run --> |
73 | 68 | <plugin>
|
74 |
| - <artifactId>maven-war-plugin</artifactId> |
75 |
| - <version>${version.war.plugin}</version> |
76 |
| - <configuration> |
77 |
| - <!-- Java EE 7 doesn't require web.xml, Maven needs to catch up! --> |
78 |
| - <failOnMissingWebXml>false</failOnMissingWebXml> |
79 |
| - </configuration> |
80 |
| - </plugin> |
81 |
| - <!-- The WildFly Swarm plugin creates an uber jar --> |
82 |
| - <!-- To use, run: mvn wildfly-swarm:run --> |
83 |
| - <plugin> |
84 |
| - <groupId>org.wildfly.swarm</groupId> |
85 |
| - <artifactId>wildfly-swarm-plugin</artifactId> |
86 |
| - <version>${version.wildfly.swarm}</version> |
87 |
| - <configuration> |
88 |
| - <mainClass>com.redhat.training.openshift.hello.Main</mainClass> |
89 |
| - </configuration> |
90 |
| - <executions> |
91 |
| - <execution> |
92 |
| - <goals> |
93 |
| - <goal>package</goal> |
94 |
| - </goals> |
95 |
| - </execution> |
96 |
| - </executions> |
97 |
| - </plugin> |
| 69 | + <groupId>io.thorntail</groupId> |
| 70 | + <artifactId>thorntail-maven-plugin</artifactId> |
| 71 | + <version>${version.thorntail}</version> |
| 72 | + <executions> |
| 73 | + <execution> |
| 74 | + <goals> |
| 75 | + <goal>package</goal> |
| 76 | + </goals> |
| 77 | + </execution> |
| 78 | + </executions> |
| 79 | + </plugin> |
98 | 80 | </plugins>
|
99 | 81 | </build>
|
100 | 82 |
|
101 |
| - |
102 | 83 | </project>
|
0 commit comments