WIP(ch9lab) update POM dependencies
This commit is contained in:
parent
81fbcfc240
commit
c1c73e3237
1 changed files with 50 additions and 31 deletions
|
|
@ -1,42 +1,73 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>com.redhat.training.example</groupId>
|
<groupId>com.redhat.training.example</groupId>
|
||||||
<artifactId>todo-api</artifactId>
|
<artifactId>todo-api</artifactId>
|
||||||
<name>WildFly Swarm Example</name>
|
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
<name>ToDo API Thorntail Example</name>
|
||||||
|
<description>ToDo API microservice using Thorntail</description>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<version.wildfly.swarm>2017.12.1</version.wildfly.swarm>
|
<!-- Explicitly declaring the source encoding eliminates the following
|
||||||
<version.mysql>6.0.6</version.mysql>
|
message: -->
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
resources, i.e. build is platform dependent! -->
|
||||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<fabric8.maven.plugin.version>3.1.80.redhat-000019</fabric8.maven.plugin.version>
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||||
<fabric8.version>2.3.6</fabric8.version>
|
|
||||||
|
<!-- Thorntail dependency versions -->
|
||||||
|
<version.thorntail>2.4.0.Final</version.thorntail>
|
||||||
|
|
||||||
|
<!-- other plugin versions -->
|
||||||
|
<version.compiler.plugin>3.1</version.compiler.plugin>
|
||||||
|
<version.surefire.plugin>2.16</version.surefire.plugin>
|
||||||
|
<version.war.plugin>2.5</version.war.plugin>
|
||||||
|
<version.fabric8.plugin>4.1.0</version.fabric8.plugin>
|
||||||
|
|
||||||
|
<!-- maven-compiler-plugin -->
|
||||||
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>bom-all</artifactId>
|
<artifactId>bom-all</artifactId>
|
||||||
<version>${version.wildfly.swarm}</version>
|
<version>${version.thorntail}</version>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.thorntail</groupId>
|
||||||
|
<artifactId>cdi</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.thorntail</groupId>
|
||||||
|
<artifactId>jaxrs</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>demo</finalName>
|
<!-- Maven will append the version to the finalName (which is the name
|
||||||
|
given to the generated war, and hence the context root) -->
|
||||||
|
<finalName>hello</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<!-- The Thorntail Maven plugin creates an uber jar -->
|
||||||
|
<!-- To use, run: mvn thorntail:run -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>wildfly-swarm-plugin</artifactId>
|
<artifactId>thorntail-maven-plugin</artifactId>
|
||||||
<version>${version.wildfly.swarm}</version>
|
<version>${version.thorntail}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
|
@ -48,30 +79,16 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>fabric8-maven-plugin</artifactId>
|
<artifactId>fabric8-maven-plugin</artifactId>
|
||||||
|
<version>${version.fabric8.plugin}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
<id>fmp</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>resource</goal>
|
<goal>resource</goal>
|
||||||
<goal>build</goal>
|
<goal>build</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
|
||||||
<generator>
|
|
||||||
<includes>
|
|
||||||
<include>wildfly-swarm</include>
|
|
||||||
</includes>
|
|
||||||
<excludes>
|
|
||||||
<exclude>webapp</exclude>
|
|
||||||
</excludes>
|
|
||||||
<config>
|
|
||||||
<wildfly-swarm>
|
|
||||||
<fromMode>isTag</fromMode>
|
|
||||||
<from>redhat-openjdk18-openshift</from>
|
|
||||||
</wildfly-swarm>
|
|
||||||
</config>
|
|
||||||
</generator>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
@ -108,4 +125,6 @@
|
||||||
<version>${version.mysql}</version>
|
<version>${version.mysql}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue