Repository: tomee
Updated Branches:
  refs/heads/master b2e78f1a6 -> a1b8f66ec


TOMEE-2291 - MicroProfile Fault Tolerance Example for @Retry

pom.xml
- Removed parent examples
- Added properties to hold the versions of which libraries in use.
- Added maven-war-plugin with failOnMissingWebXml to false.

Closes apache/tomee#260.


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/a1b8f66e
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/a1b8f66e
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/a1b8f66e

Branch: refs/heads/master
Commit: a1b8f66ec368ed86ced9fb02c188c049812f0472
Parents: b2e78f1
Author: josehenriqueventura <jose.vent...@protonmail.com>
Authored: Fri Dec 7 17:30:12 2018 +0000
Committer: Roberto Cortez <radcor...@yahoo.com>
Committed: Mon Dec 10 22:40:54 2018 +0000

----------------------------------------------------------------------
 examples/mp-faulttolerance-retry/pom.xml | 44 +++++++++++++++++++++------
 1 file changed, 34 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/a1b8f66e/examples/mp-faulttolerance-retry/pom.xml
----------------------------------------------------------------------
diff --git a/examples/mp-faulttolerance-retry/pom.xml 
b/examples/mp-faulttolerance-retry/pom.xml
index cf9d98f..dbb9837 100644
--- a/examples/mp-faulttolerance-retry/pom.xml
+++ b/examples/mp-faulttolerance-retry/pom.xml
@@ -2,30 +2,46 @@
 <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";>
-    <parent>
-        <artifactId>examples</artifactId>
-        <groupId>org.apache.tomee</groupId>
-        <version>8.0.0-SNAPSHOT</version>
-    </parent>
     <modelVersion>4.0.0</modelVersion>
-    <name>OpenEJB :: Examples :: MicroProfile Fault Tolerance Retry</name>
+
+    <groupId>org.superbiz</groupId>
     <artifactId>mp-faulttolerance-retry</artifactId>
+    <version>8.0.0-SNAPSHOT</version>
     <packaging>war</packaging>
+    <name>OpenEJB :: Examples :: Microprofile Fault Tolerance :: Retry</name>
+
+    <properties>
+        
<microprofile-fault-tolerance-api.version>1.0</microprofile-fault-tolerance-api.version>
+        
<arquillian-junit-container.version>1.4.0.Final</arquillian-junit-container.version>
+        <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
+        <maven-war-plugin.version>3.1.0</maven-war-plugin.version>
+        <tomee.version>${project.version}</tomee.version>
+        <javaee-api.version>8.0</javaee-api.version>
+        <junit.version>4.12</junit.version>
+        <maven.compiler.source>1.8</maven.compiler.source>
+        <maven.compiler.target>1.8</maven.compiler.target>
+    </properties>
 
     <dependencies>
         <dependency>
             <groupId>org.apache.tomee</groupId>
             <artifactId>javaee-api</artifactId>
-            <version>8.0</version>
+            <version>${javaee-api.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.eclipse.microprofile.fault-tolerance</groupId>
             <artifactId>microprofile-fault-tolerance-api</artifactId>
-            <version>1.0</version>
+            <version>${microprofile-fault-tolerance-api.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>${junit.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
             <groupId>org.apache.tomee</groupId>
             <artifactId>openejb-cxf-rs</artifactId>
             <version>${tomee.version}</version>
@@ -34,7 +50,7 @@
         <dependency>
             <groupId>org.jboss.arquillian.junit</groupId>
             <artifactId>arquillian-junit-container</artifactId>
-            <version>1.0.3.Final</version>
+            <version>${arquillian-junit-container.version}</version>
             <scope>test</scope>
         </dependency>
         <dependency>
@@ -58,12 +74,20 @@
             <plugin>
                 <groupId>org.apache.tomee.maven</groupId>
                 <artifactId>tomee-maven-plugin</artifactId>
-                <version>8.0.0-SNAPSHOT</version>
+                <version>${project.version}</version>
                 <configuration>
                     <tomeeClassifier>microprofile</tomeeClassifier>
                     <context>${artifactId}</context>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>${maven-war-plugin.version}</version>
+                <configuration>
+                    <failOnMissingWebXml>false</failOnMissingWebXml>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 </project>

Reply via email to