You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jk...@apache.org on 2011/01/20 05:29:33 UTC

svn commit: r1061120 - /incubator/opennlp/trunk/opennlp-tools/pom.xml

Author: jkosin
Date: Thu Jan 20 04:29:33 2011
New Revision: 1061120

URL: http://svn.apache.org/viewvc?rev=1061120&view=rev
Log:
OPENNLP-19: added plugins for java-doc and source jar files to be created for the release

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

Modified: incubator/opennlp/trunk/opennlp-tools/pom.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/pom.xml?rev=1061120&r1=1061119&r2=1061120&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/pom.xml (original)
+++ incubator/opennlp/trunk/opennlp-tools/pom.xml Thu Jan 20 04:29:33 2011
@@ -35,14 +35,6 @@
 	<packaging>jar</packaging>
 	<version>1.5.1-incubating-SNAPSHOT</version>
 	<name>OpenNLP Tools</name>
-	<repositories>
-		<repository>
-			<id>opennlp.sf.net</id>
-			<url>
-				http://opennlp.sourceforge.net/maven2
-			</url>
-		</repository>
-	</repositories>
 
 	<dependencies>
 		<dependency>
@@ -89,34 +81,63 @@
                    </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>	
+
+			<plugin>
+				<artifactId>maven-javadoc-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>create-javadoc-jar</id>
+						<goals>
+							<goal>jar</goal>
+						</goals>
+						<phase>package</phase>
+						<configuration>
+							<source>${maven.compile.source}</source>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+			
+			<plugin>
+				<artifactId>maven-source-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>create-source-jar</id>
+						<goals>
+							<goal>jar</goal>
+						</goals>
+						<phase>package</phase>
+					</execution>
+				</executions>
+			</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



Re: svn commit: r1061120 - /incubator/opennlp/trunk/opennlp-tools/pom.xml

Posted by Jörn Kottmann <ko...@gmail.com>.
On 1/20/11 9:35 AM, Jörn Kottmann wrote:
> Please undo your change. 
There was a user which tried to build OpenNLP, but
got errors trough the missing JWNL jar file, I now rolled
back the change so this guy can at least build and proceed
with his work.

Jörn

Re: svn commit: r1061120 - /incubator/opennlp/trunk/opennlp-tools/pom.xml

Posted by Jörn Kottmann <ko...@gmail.com>.
-1, you cannot remove our sourceforge repository
from the tools project because it contains the JWNL
dependency. Without JWNL it is not possible to
compile.

Please undo your change.

The javadoc plugin should be configured in the parent pom,
otherwise we have to do it twice, right?

Jörn

On 1/20/11 5:29 AM, jkosin@apache.org wrote:
> Author: jkosin
> Date: Thu Jan 20 04:29:33 2011
> New Revision: 1061120
>
> URL: http://svn.apache.org/viewvc?rev=1061120&view=rev
> Log:
> OPENNLP-19: added plugins for java-doc and source jar files to be created for the release
>
> Modified:
>      incubator/opennlp/trunk/opennlp-tools/pom.xml
>
> Modified: incubator/opennlp/trunk/opennlp-tools/pom.xml
> URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/pom.xml?rev=1061120&r1=1061119&r2=1061120&view=diff
> ==============================================================================
> --- incubator/opennlp/trunk/opennlp-tools/pom.xml (original)
> +++ incubator/opennlp/trunk/opennlp-tools/pom.xml Thu Jan 20 04:29:33 2011
> @@ -35,14 +35,6 @@
>   	<packaging>jar</packaging>
>   	<version>1.5.1-incubating-SNAPSHOT</version>
>   	<name>OpenNLP Tools</name>
> -	<repositories>
> -		<repository>
> -			<id>opennlp.sf.net</id>
> -			<url>
> -				http://opennlp.sourceforge.net/maven2
> -			</url>
> -		</repository>
> -	</repositories>
>
>   	<dependencies>
>   		<dependency>
> @@ -89,34 +81,63 @@
>                      </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>	
> +
> +			<plugin>
> +				<artifactId>maven-javadoc-plugin</artifactId>
> +				<executions>
> +					<execution>
> +						<id>create-javadoc-jar</id>
> +						<goals>
> +							<goal>jar</goal>
> +						</goals>
> +						<phase>package</phase>
> +						<configuration>
> +							<source>${maven.compile.source}</source>
> +						</configuration>
> +					</execution>
> +				</executions>
> +			</plugin>
> +			
> +			<plugin>
> +				<artifactId>maven-source-plugin</artifactId>
> +				<executions>
> +					<execution>
> +						<id>create-source-jar</id>
> +						<goals>
> +							<goal>jar</goal>
> +						</goals>
> +						<phase>package</phase>
> +					</execution>
> +				</executions>
> +			</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
>
>