]> source.dussan.org Git - poi.git/commitdiff
Update to latest versions of Maven plugins for Sonar-build and use properties for...
authorDominik Stadler <centic@apache.org>
Sat, 11 Jun 2016 08:45:28 +0000 (08:45 +0000)
committerDominik Stadler <centic@apache.org>
Sat, 11 Jun 2016 08:45:28 +0000 (08:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1747861 13f79535-47bb-0310-9956-ffa450edef68

sonar/examples/pom.xml
sonar/excelant/pom.xml
sonar/main/pom.xml
sonar/ooxml-schema-encryption/pom.xml
sonar/ooxml-schema-security/pom.xml
sonar/ooxml-schema/pom.xml
sonar/ooxml/pom.xml
sonar/pom.xml
sonar/scratchpad/pom.xml

index b54b008945b76a3416af6d92d81572c748c056c5..a6df70a86153313cec930e092cd2915544e39015 100644 (file)
@@ -18,7 +18,7 @@
                        <!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
-                               <version>2.6</version>
+                               <version>${maven.plugin.resources.version}</version>
                                <executions>
                                        <execution>
                                                <id>copy-sources</id>
@@ -41,7 +41,7 @@
                        <!-- clean copied sources afterwards -->
                        <plugin>
                 <artifactId>maven-clean-plugin</artifactId>
-                <version>2.5</version>
+                <version>${maven.plugin.clean.version}</version>
                 <configuration>
                     <filesets>
                         <fileset>
@@ -70,7 +70,7 @@
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>4.12</version>
+            <version>${junit.version}</version>
         </dependency>
     </dependencies>
 </project>
index 2f8bf7e2f134b4a3d0c448c37daff109b2ac5e08..288e877071b1f3ea490244e90c57e7f2724ec890 100644 (file)
@@ -18,7 +18,7 @@
                        <!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
-                               <version>2.6</version>
+                               <version>${maven.plugin.resources.version}</version>
                                <executions>
                                        <execution>
                                                <id>copy-sources</id>
@@ -73,7 +73,7 @@
                        <!-- clean copied sources afterwards -->
                        <plugin>
                 <artifactId>maven-clean-plugin</artifactId>
-                <version>2.5</version>
+                <version>${maven.plugin.clean.version}</version>
                 <configuration>
                     <filesets>
                         <fileset>
index 94183174b3617f1231f080e2a8afa6dcf12b27a4..35180aa55c0e868c054f3d048cb84954c853fe51 100644 (file)
@@ -18,7 +18,7 @@
                        <!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
-                               <version>2.6</version>
+                               <version>${maven.plugin.resources.version}</version>
                                <executions>
                                        <execution>
                                                <id>copy-sources</id>
@@ -72,7 +72,7 @@
                        <!-- clean copied sources afterwards -->
                        <plugin>
                 <artifactId>maven-clean-plugin</artifactId>
-                <version>2.5</version>
+                <version>${maven.plugin.clean.version}</version>
                 <configuration>
                     <filesets>
                         <fileset>
@@ -87,7 +87,7 @@
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
-                               <version>2.4</version>
+                               <version>${maven.plugin.jar.version}</version>
                                <executions>
                                        <execution>
                                                <goals>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
-                <version>2.19.1</version>
+                <version>${maven.plugin.surefire.version}</version>
                 <configuration>
                     <argLine>-Xmx1024m -XX:MaxPermSize=256m -XX:-OmitStackTraceInFastThrow</argLine>
                 </configuration>
index 8d95d7cba900d72d33bae0899c9092b71d570959..bbeba00aaedeed6b9ec8d31a866599fc9ebacca0 100644 (file)
@@ -24,7 +24,7 @@
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-antrun-plugin</artifactId>
-                               <version>1.8</version>
+                               <version>${maven.plugin.antrun.version}</version>
                                <executions>
                                        <execution>
                                                <id>unzip-schema</id>
@@ -49,7 +49,7 @@
                <dependency>
                        <groupId>org.apache.xmlbeans</groupId>
                        <artifactId>xmlbeans</artifactId>
-                       <version>2.6.0</version>
+                       <version>${xmlbeans.version}</version>
                </dependency>
     </dependencies>
 </project>
index 14a8ac759eba1d10d14950b5f450a82b3a719cc5..cade8c30fe3812899759df182978ff9360160a2d 100644 (file)
@@ -28,7 +28,7 @@
                        <plugin>
                                <groupId>com.googlecode.maven-download-plugin</groupId>
                                <artifactId>maven-download-plugin</artifactId>
-                               <version>1.1.0</version>
+                               <version>${maven.plugin.download.version}</version>
                                <executions>
                                        <execution>
                                                <id>install-xsds-part-1</id>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-antrun-plugin</artifactId>
-                               <version>1.8</version>
+                               <version>${maven.plugin.antrun.version}</version>
                                <executions>
                                        <execution>
                                                <id>unzip-schema</id>
                <dependency>
                        <groupId>org.apache.xmlbeans</groupId>
                        <artifactId>xmlbeans</artifactId>
-                       <version>2.6.0</version>
+                       <version>${xmlbeans.version}</version>
                </dependency>           
         <dependency>
             <groupId>${project.groupId}</groupId>
index 57f072ead8d0a4ff802cef462f0677b2aaca469c..cad8912c3a6c98d719d70f377c86fa92c400ac6a 100644 (file)
@@ -27,7 +27,7 @@
                        <plugin>
                                <groupId>com.googlecode.maven-download-plugin</groupId>
                                <artifactId>maven-download-plugin</artifactId>
-                               <version>1.1.0</version>
+                               <version>${maven.plugin.download.version}</version>
                                <executions>
                                        <execution>
                                                <id>download-xsds</id>
@@ -47,7 +47,7 @@
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-antrun-plugin</artifactId>
-                               <version>1.8</version>
+                               <version>${maven.plugin.antrun.version}</version>
                                <executions>
                                        <execution>
                                                <id>unzip-schema</id>
@@ -83,7 +83,7 @@
         <dependency>
           <groupId>org.apache.xmlbeans</groupId>
           <artifactId>xmlbeans</artifactId>
-          <version>2.6.0</version>
+          <version>${xmlbeans.version}</version>
         </dependency>
     </dependencies>
 </project>
index 269d1dd4672076448a2bf96ade6a7ab7c90ccab8..9d1e40ce6a8496fd5218d45e9e91b07e2979dc5e 100644 (file)
@@ -18,7 +18,7 @@
                        <!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
-                               <version>2.6</version>
+                               <version>${maven.plugin.resources.version}</version>
                                <executions>
                                        <execution>
                                                <id>copy-sources</id>
@@ -71,7 +71,7 @@
                        <!-- clean copied sources afterwards -->
                        <plugin>
                 <artifactId>maven-clean-plugin</artifactId>
-                <version>2.5</version>
+                <version>${maven.plugin.clean.version}</version>
                 <configuration>
                     <filesets>
                         <fileset>
@@ -91,7 +91,7 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
-                <version>2.19.1</version>
+                <version>${maven.plugin.surefire.version}</version>
                 <configuration>
                     <argLine>-Xmx1024m -XX:MaxPermSize=256m -XX:-OmitStackTraceInFastThrow</argLine>
                 </configuration>
                <dependency>
                  <groupId>org.apache.xmlbeans</groupId>
                  <artifactId>xmlbeans</artifactId>
-                 <version>2.6.0</version>
+                 <version>${xmlbeans.version}</version>
                </dependency>
                
                <dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>4.12</version>
+            <version>${junit.version}</version>
         </dependency>
     </dependencies>
 </project>
index 0ad1edd20cdb9246f03cc0a30823c9468446e41b..0eeae42abd53afaea541baa9b719e7348dd7cbe3 100644 (file)
                <project.build.sourceEncoding>ASCII</project.build.sourceEncoding>
                <!-- Try to disable running SVN blame as it causes errors here because the source is copied from the actual SVN location here! -->
                <sonar.scm.disabled>true</sonar.scm.disabled>
+
+               <!-- define some of the third-party or plugin-versions globally to use the same in all modules -->
+               <xmlbeans.version>2.6.0</xmlbeans.version>
+               <junit.version>4.12</junit.version>
+               <maven.plugin.resources.version>3.0.1</maven.plugin.resources.version>
+               <maven.plugin.jar.version>3.0.1</maven.plugin.jar.version>
+               <maven.plugin.clean.version>3.0.0</maven.plugin.clean.version>
+               <maven.plugin.download.version>1.3.0</maven.plugin.download.version>
+               <maven.plugin.antrun.version>1.8</maven.plugin.antrun.version>
+               <maven.plugin.surefire.version>2.19.1</maven.plugin.surefire.version>
        </properties>
        
        <build>
@@ -69,7 +79,7 @@
                                <plugin>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-compiler-plugin</artifactId>
-                                       <version>3.3</version>
+                                       <version>3.5.1</version>
                                        <configuration>
                                                <source>1.6</source>
                                                <target>1.6</target>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-surefire-plugin</artifactId>
-                               <version>2.19</version>
+                               <version>${maven.plugin.surefire.version}</version>
                                <dependencies>
                                        <dependency>
                                                <groupId>org.apache.maven.surefire</groupId>
                                                <artifactId>surefire-junit47</artifactId>
-                                               <version>2.19</version>
+                                               <version>${maven.plugin.surefire.version}</version>
                                        </dependency>
                                </dependencies>
                                <configuration>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
-                       <version>4.12</version>
+                       <version>${junit.version}</version>
                        <scope>test</scope>
                </dependency>
        </dependencies>
 
           <plugin>
             <artifactId>maven-antrun-plugin</artifactId>
-            <version>1.8</version>
+            <version>${maven.plugin.antrun.version}</version>
             <executions>
               <execution>
                 <id>copy-xmltype-and-xsdconfig</id>
         <dependency>
           <groupId>org.apache.xmlbeans</groupId>
           <artifactId>xmlbeans</artifactId>
-          <version>2.6.0</version>
+          <version>${xmlbeans.version}</version>
         </dependency>
       </dependencies>
                </profile>
index 104a8f3d8e2dfc2e9aebb7e646cc84040b5bda8c..f476313bd0e9619bd9f7d0690f28810d1225df1c 100644 (file)
@@ -24,7 +24,7 @@
                        <!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
-                               <version>2.6</version>
+                               <version>${maven.plugin.resources.version}</version>
                                <executions>
                                        <execution>
                                                <id>copy-sources</id>
@@ -79,7 +79,7 @@
                        <!-- clean copied sources afterwards -->
                        <plugin>
                 <artifactId>maven-clean-plugin</artifactId>
-                <version>2.5</version>
+                <version>${maven.plugin.clean.version}</version>
                 <configuration>
                     <filesets>
                         <fileset>