You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2011/01/14 02:14:41 UTC

svn commit: r1058827 - in /incubator/opennlp/trunk: opennlp-maxent/pom.xml opennlp-tools/pom.xml opennlp/pom.xml

Author: joern
Date: Fri Jan 14 01:14:41 2011
New Revision: 1058827

URL: http://svn.apache.org/viewvc?rev=1058827&view=rev
Log:
OpenNLP-19 Added the rat plugin, now generates a rat report and fails if project has files which are not included and do not have an AL header

Modified:
    incubator/opennlp/trunk/opennlp-maxent/pom.xml
    incubator/opennlp/trunk/opennlp-tools/pom.xml
    incubator/opennlp/trunk/opennlp/pom.xml

Modified: incubator/opennlp/trunk/opennlp-maxent/pom.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-maxent/pom.xml?rev=1058827&r1=1058826&r2=1058827&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-maxent/pom.xml (original)
+++ incubator/opennlp/trunk/opennlp-maxent/pom.xml Fri Jan 14 01:14:41 2011
@@ -60,6 +60,27 @@
 					</descriptors>
 				</configuration>
 			</plugin>
+	      <plugin>
+	        <groupId>org.apache.rat</groupId>
+	        <artifactId>apache-rat-plugin</artifactId>
+	        <executions>
+	          <execution>
+	            <id>default-cli</id>
+	            <configuration>
+	              <excludes>
+	                <exclude>CHANGES</exclude>
+	                <exclude>lib/ASL</exclude>
+	                <exclude>lib/LIBNOTES</exclude>
+	                <exclude>META-INF/MANIFEST.MF</exclude>
+	                <exclude>samples/sports/*.test</exclude> <!-- sample data -->
+	                <exclude>src/main/java/opennlp/maxent/AllEnglishAffixes.txt</exclude> <!-- test data -->
+	                <exclude>src/test/resources/data/opennlp/maxent/io/*.txt</exclude> <!-- test data -->
+	                <exclude>src/test/resources/data/opennlp/maxent/*.txt</exclude> <!-- test data -->
+	              </excludes>              
+	            </configuration>
+	          </execution>
+	        </executions>
+	      </plugin>		
 		</plugins>
 	</build>
 </project>
\ No newline at end of file

Modified: incubator/opennlp/trunk/opennlp-tools/pom.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/pom.xml?rev=1058827&r1=1058826&r2=1058827&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/pom.xml (original)
+++ incubator/opennlp/trunk/opennlp-tools/pom.xml Fri Jan 14 01:14:41 2011
@@ -89,6 +89,34 @@
                    </archive>
                 </configuration>
             </plugin>
+            
+            	      <plugin>
+	        <groupId>org.apache.rat</groupId>
+	        <artifactId>apache-rat-plugin</artifactId>
+	        <executions>
+	          <execution>
+	            <id>default-cli</id>
+	            <configuration>
+	              <excludes>
+	                <exclude>CHANGES</exclude>
+	                <exclude>lib/JWNL</exclude>
+	                <exclude>lib/LIBNOTES</exclude>
+	                <exclude>src/test/resources/opennlp/tools/chunker/output.txt</exclude> <!-- test data -->
+	                <exclude>src/test/resources/opennlp/tools/formats/*.sample</exclude> <!-- test data -->
+	                <exclude>src/test/resources/opennlp/tools/namefind/*.txt</exclude> <!-- test data -->
+	                <exclude>src/test/resources/opennlp/tools/namefind/*.train</exclude> <!-- test data -->
+	                <exclude>src/test/resources/opennlp/tools/parser/en_head_rules</exclude> <!-- test data -->
+	                <exclude>src/test/resources/opennlp/tools/parser/en_head_rules</exclude> <!-- test data -->
+	                <exclude>src/test/resources/opennlp/tools/parser/parser.train</exclude> <!-- test data -->
+	                <exclude>src/test/resources/opennlp/tools/parser/test.parse</exclude> <!-- test data -->
+	                <exclude>src/test/resources/opennlp/tools/postag/AnnotatedSentences.txt</exclude> <!-- test data -->
+	                <exclude>src/test/resources/opennlp/tools/sentdetect/Sentences.txt</exclude> <!-- test data -->
+	                <exclude>src/test/resources/opennlp/tools/tokenize/token.train</exclude> <!-- test data -->
+	              </excludes>              
+	            </configuration>
+	          </execution>
+	        </executions>
+	      </plugin>	
 		</plugins>
 	</build>
 </project>
\ No newline at end of file

Modified: incubator/opennlp/trunk/opennlp/pom.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp/pom.xml?rev=1058827&r1=1058826&r2=1058827&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp/pom.xml (original)
+++ incubator/opennlp/trunk/opennlp/pom.xml Fri Jan 14 01:14:41 2011
@@ -77,6 +77,21 @@
 					<target>1.5</target>
 				</configuration>
 			</plugin>
+
+			<plugin>
+				<groupId>org.apache.rat</groupId>
+				<artifactId>apache-rat-plugin</artifactId>
+				<version>0.6</version>
+				<executions>
+					<execution>
+						<id>default-cli</id>
+						<goals>
+							<goal>check</goal>
+						</goals>
+						<phase>verify</phase>
+					</execution>
+				</executions>
+			</plugin>
 		</plugins>
 	</build>