You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2014/09/11 19:21:00 UTC

svn commit: r1624340 - /tomee/tomee/branches/tomee-1.7.x/maven/tomee-webapp-archetype/src/main/resources/archetype-resources/pom.xml

Author: andygumbrecht
Date: Thu Sep 11 17:20:59 2014
New Revision: 1624340

URL: http://svn.apache.org/r1624340
Log:
TOMEE-1324 - Eclipse issue requires <pluginManagement> for enhancement

Modified:
    tomee/tomee/branches/tomee-1.7.x/maven/tomee-webapp-archetype/src/main/resources/archetype-resources/pom.xml

Modified: tomee/tomee/branches/tomee-1.7.x/maven/tomee-webapp-archetype/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/branches/tomee-1.7.x/maven/tomee-webapp-archetype/src/main/resources/archetype-resources/pom.xml?rev=1624340&r1=1624339&r2=1624340&view=diff
==============================================================================
--- tomee/tomee/branches/tomee-1.7.x/maven/tomee-webapp-archetype/src/main/resources/archetype-resources/pom.xml (original)
+++ tomee/tomee/branches/tomee-1.7.x/maven/tomee-webapp-archetype/src/main/resources/archetype-resources/pom.xml Thu Sep 11 17:20:59 2014
@@ -28,6 +28,8 @@
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+    <version.openjpa>2.3.0</version.openjpa>
   </properties>
 
   <dependencies>
@@ -82,21 +84,57 @@
   </dependencies>
 
   <build>
+
+    <!--
+    Defines plugin versions for this project
+    and any modules that may be added
+    -->
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-compiler-plugin</artifactId>
+          <version>3.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-surefire-plugin</artifactId>
+          <version>2.17</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-war-plugin</artifactId>
+          <version>2.4</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.openejb.maven</groupId>
+          <artifactId>tomee-maven-plugin</artifactId>
+          <version>[TOMEE]</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.openjpa</groupId>
+          <artifactId>openjpa-maven-plugin</artifactId>
+          <version>${version.openjpa}</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
-        <version>3.1</version>
+        <configuration>
+          <source>1.6</source>
+          <target>1.6</target>
+        </configuration>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
-        <version>2.17</version>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-war-plugin</artifactId>
-        <version>2.4</version>
         <configuration>
           <failOnMissingWebXml>false</failOnMissingWebXml>
         </configuration>
@@ -104,7 +142,6 @@
       <plugin>
         <groupId>org.apache.openejb.maven</groupId>
         <artifactId>tomee-maven-plugin</artifactId>
-        <version>[TOMEE]</version>
         <configuration>
           <context>ROOT</context>
         </configuration>
@@ -112,7 +149,6 @@
       <plugin>
         <groupId>org.apache.openjpa</groupId>
         <artifactId>openjpa-maven-plugin</artifactId>
-        <version>2.3.0</version>
         <configuration>
           <includes>**/entities/*.class</includes>
           <excludes>**/entities/XML*.class</excludes>
@@ -132,8 +168,8 @@
           <dependency>
             <groupId>org.apache.openjpa</groupId>
             <artifactId>openjpa</artifactId>
-            <!-- set the version to be the same as the level in your runtime -->
-            <version>2.3.0</version>
+            <!-- Set this version to be the same as the version used in your runtime -->
+            <version>${version.openjpa}</version>
           </dependency>
         </dependencies>
       </plugin>