Added rat exclusion, updated the rat plugin, added a PluginManagement section, fixed...
authorEmmanuel Lécharny <elecharny@symas.com>
Mon, 24 Oct 2016 09:49:37 +0000 (11:49 +0200)
committerEmmanuel Lécharny <elecharny@symas.com>
Mon, 24 Oct 2016 09:49:37 +0000 (11:49 +0200)
pom.xml

diff --git a/pom.xml b/pom.xml
index 7363e98..15635f4 100644 (file)
--- a/pom.xml
+++ b/pom.xml
   </contributors>
 
   <scm>
-    <connection>scm:svn:http://svn.apache.org/repos/asf/mina/ftpserver/trunk</connection>
-    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/mina/ftpserver/trunk</developerConnection>
-    <url>http://svn.apache.org/viewvc/mina/ftpserver/trunk</url>
+    <connection>scm:git:https://git-wip-us.apache.org/repos/as/mina-ftpserver.git</connection>
+    <url>https://git-wip-us.apache.org/repos/asf?p=mina-ftpserver.git</url>
+    <developerConnection>scm:git:http://git-wip-us.apache.org/repos/asf/mina-ftpserver.git</developerConnection>
+    <tag>HEAD</tag>
   </scm>
 
   <properties>
-    <!-- Disbale the JAV8 Javadoc Lint -->
+    <!-- Disbale the JAV8 Javadoc Lint -->
     <additionalparam>-Xdoclint:none</additionalparam>
 
     <!-- Set versions for depending jars -->
   </dependencyManagement>
 
   <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.rat</groupId>
+          <artifactId>apache-rat-plugin</artifactId>
+          <version>0.12</version>
+          <configuration>
+            <excludeSubProjects>false</excludeSubProjects>
+            <excludes>
+              <!-- MAVEN_DEFAULT_EXCLUDES -->
+              <exclude>**/target/**/*</exclude>
+              <exclude>**/cobertura.ser</exclude>
+
+              <!-- ECLIPSE_DEFAULT_EXCLUDES -->
+              <exclude>**/.classpath</exclude>
+              <exclude>**/.project</exclude>
+              <exclude>**/.settings/**/*</exclude>
+
+              <!-- IDEA_DEFAULT_EXCLUDES -->
+              <exclude>**/*.iml</exclude>
+              <exclude>**/*.ipr</exclude>
+              <exclude>**/*.iws</exclude>
+
+              <!-- MANIFEST_MF_EXCLUDES -->
+              <exclude>**/MANIFEST.MF</exclude>
+
+              <!-- 3RD_PARTY_LICENSES -->
+              <exclude>**/LICENSE*</exclude>
+
+              <!-- Missing license header in dependency reduced pom, see http://jira.codehaus.org/browse/MSHADE-48 -->
+              <exclude>**/dependency-reduced-pom.xml</exclude>
+            </excludes>
+          </configuration>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-release-plugin</artifactId>
+          <version>2.5.3</version>
+          <configuration>
+            <autoVersionSubmodules>true</autoVersionSubmodules>
+          </configuration>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-source-plugin</artifactId>
+          <version>3.0.1</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-clean-plugin</artifactId>
+          <version>3.0.0</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-install-plugin</artifactId>
+          <version>2.5.2</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <version>2.10.4</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
 
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
-        <version>3.2</version>
+        <version>3.5.1</version>
         <configuration>
           <source>${maven.compile.source}</source>
           <target>${maven.compile.target}</target>
         </configuration>
       </plugin>
 
-    <plugin>
-      <groupId>org.codehaus.mojo</groupId>
-      <artifactId>rat-maven-plugin</artifactId>
-      <version>1.0-alpha-3</version>
-    </plugin>
-
       <plugin>
         <artifactId>maven-source-plugin</artifactId>
         <version>2.4</version>
           <artifactId>maven-war-plugin</artifactId>
           <version>2.5</version>
       </plugin>
+
+      <plugin><groupId>org.apache.rat</groupId>
+        <artifactId>apache-rat-plugin</artifactId>
+        <executions>
+          <execution>
+          <id>check-apache-license-header</id>
+          <phase>validate</phase>
+          <goals>
+            <goal>check</goal>
+          </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 
               </execution>
             </executions>
           </plugin>
-
-          <plugin>
-            <groupId>org.codehaus.mojo</groupId>
-            <artifactId>rat-maven-plugin</artifactId>
-            <version>1.0-alpha-3</version>
-            <executions>
-              <execution>
-                <id>verify-licenses</id>
-                <phase>verify</phase>
-                <goals>
-                  <goal>check</goal>
-                </goals>
-              </execution>
-            </executions>
-          </plugin>
         </plugins>
       </build>
       <modules>
     <module>examples</module>
   </modules>
 
+
+
 </project>