Author: hboutemy
Date: Sat Oct 21 03:02:35 2017
New Revision: 1812804

URL: http://svn.apache.org/viewvc?rev=1812804&view=rev
Log:
[MPOM-169] removed hardcoded rat version

Modified:
    maven/plugins/trunk/pom.xml
    maven/plugins/trunk/rat-report.sh

Modified: maven/plugins/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/pom.xml?rev=1812804&r1=1812803&r2=1812804&view=diff
==============================================================================
--- maven/plugins/trunk/pom.xml (original)
+++ maven/plugins/trunk/pom.xml Sat Oct 21 03:02:35 2017
@@ -23,7 +23,7 @@ under the License.
   <parent>
     <groupId>org.apache.maven</groupId>
     <artifactId>maven-parent</artifactId>
-    <version>24</version>
+    <version>30</version>
     <relativePath>../pom/maven/pom.xml</relativePath>
   </parent>
 
@@ -41,19 +41,6 @@ under the License.
     <url>http://svn.apache.org/viewvc/maven/plugins/trunk/</url>
   </scm>
 
-  <!-- TODO: Added to use version 0.11 till we change to apache:15 -->
-  <build>
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <groupId>org.apache.rat</groupId>
-          <artifactId>apache-rat-plugin</artifactId>
-          <version>0.11</version>
-        </plugin>
-      </plugins>
-    </pluginManagement>
-  </build>
-
   <modules>
     <module>maven-acr-plugin</module>
     <!--

Modified: maven/plugins/trunk/rat-report.sh
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/rat-report.sh?rev=1812804&r1=1812803&r2=1812804&view=diff
==============================================================================
--- maven/plugins/trunk/rat-report.sh (original)
+++ maven/plugins/trunk/rat-report.sh Sat Oct 21 03:02:35 2017
@@ -15,14 +15,14 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-FOLDERS=`find . -maxdepth 1 -type d -not -path "./.svn" -and -not -path "."`
-MVN="/home/build/tools/maven/apache-maven-3.1.1/bin/mvn"
-RAT_REPORT="${MVN} org.apache.rat:apache-rat-plugin:0.11:check 
-Drat.ignoreErrors=true -Drat.excludeSubProjects=false"
-for i in $FOLDERS; do
-  echo "Checking $i"
-  cd $i
-  $RAT_REPORT >../$i.log
-  cd ..
+RAT_REPORT="mvn apache-rat:check -Drat.ignoreErrors=true 
-Drat.excludeSubProjects=false"
+for i in *; do
+  if [ -e $i/pom.xml ]; then
+    echo "Checking $i"
+    cd $i
+    $RAT_REPORT >../$i.log
+    cd ..
+  fi
 done;
 # Printout the reports only first 19 lines which contain the usefull 
information.
 head -n19 `find . -maxdepth 3 -type f -name "rat.txt"`


Reply via email to