commit | author | age
|
497620
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
RA |
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>hello-swarm</artifactId> |
|
9 |
<version>1.0</version> |
|
10 |
<packaging>war</packaging> |
|
11 |
<name>Red Hat Training ToT app</name> |
|
12 |
<description>Hello microservice using WildFly Swarm</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 |
|
|
21 |
<!-- JBoss dependency versions --> |
|
22 |
<version.wildfly.swarm>2017.10.0</version.wildfly.swarm> |
|
23 |
|
|
24 |
<!-- other plugin versions --> |
|
25 |
<version.compiler.plugin>3.1</version.compiler.plugin> |
|
26 |
<version.surefire.plugin>2.16</version.surefire.plugin> |
|
27 |
<version.war.plugin>2.5</version.war.plugin> |
|
28 |
|
|
29 |
<!-- maven-compiler-plugin --> |
|
30 |
<maven.compiler.target>1.8</maven.compiler.target> |
|
31 |
<maven.compiler.source>1.8</maven.compiler.source> |
|
32 |
|
|
33 |
</properties> |
|
34 |
|
|
35 |
|
|
36 |
<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> |
|
51 |
|
|
52 |
<dependencies> |
|
53 |
<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> |
|
60 |
</dependency> |
|
61 |
<dependency> |
|
62 |
<groupId>org.wildfly.swarm</groupId> |
|
63 |
<artifactId>cdi</artifactId> |
|
64 |
</dependency> |
|
65 |
|
|
66 |
</dependencies> |
|
67 |
|
|
68 |
<build> |
|
69 |
<!-- Maven will append the version to the finalName (which is the name |
|
70 |
given to the generated war, and hence the context root) --> |
|
71 |
<finalName>hello</finalName> |
|
72 |
<plugins> |
|
73 |
<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> |
|
98 |
</plugins> |
|
99 |
</build> |
|
100 |
|
|
101 |
|
|
102 |
</project> |