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/20 17:16:53 UTC
svn commit: r1061367 - in /incubator/opennlp/trunk: opennlp-distr/pom.xml
opennlp-distr/src/main/assembly/bin.xml opennlp-maxent/pom.xml
opennlp-tools/pom.xml opennlp/pom.xml
Author: joern
Date: Thu Jan 20 16:16:52 2011
New Revision: 1061367
URL: http://svn.apache.org/viewvc?rev=1061367&view=rev
Log:
OPENNLP-19 Now generates javadocs and puts everything in the distributable
Modified:
incubator/opennlp/trunk/opennlp-distr/pom.xml
incubator/opennlp/trunk/opennlp-distr/src/main/assembly/bin.xml
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-distr/pom.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-distr/pom.xml?rev=1061367&r1=1061366&r2=1061367&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-distr/pom.xml (original)
+++ incubator/opennlp/trunk/opennlp-distr/pom.xml Thu Jan 20 16:16:52 2011
@@ -35,6 +35,9 @@
<packaging>pom</packaging>
<name>OpenNLP Distribution</name>
+ <!-- TODO: See how this can be optimized, this way it might be easy to mess up the verions
+ because they are duplicated in the other POMSs
+ -->
<dependencies>
<dependency>
<groupId>org.apache.opennlp</groupId>
@@ -63,6 +66,11 @@
<descriptors>
<descriptor>src/main/assembly/bin.xml</descriptor>
</descriptors>
+ <!-- Tar package is only compatible with gnu tar,
+ many file have more than 100 chars.
+ Right now only javadoc files are too long.
+ -->
+ <tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</execution>
</executions>
Modified: incubator/opennlp/trunk/opennlp-distr/src/main/assembly/bin.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-distr/src/main/assembly/bin.xml?rev=1061367&r1=1061366&r2=1061367&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-distr/src/main/assembly/bin.xml (original)
+++ incubator/opennlp/trunk/opennlp-distr/src/main/assembly/bin.xml Thu Jan 20 16:16:52 2011
@@ -25,13 +25,56 @@
<format>tar.gz</format>
<format>zip</format>
</formats>
- <fileSets>
- <fileSet>
- <directory>../</directory>
- <includes>
- <include>opennlp-maxent/samples/**</include>
- <include>opennlp-maxent/lib/**</include>
- </includes>
- </fileSet>
- </fileSets>
+ <dependencySets>
+ <dependencySet>
+ <includes>
+ <include>org.apache.opennlp:opennlp-maxent</include>
+ <include>org.apache.opennlp:opennlp-tools</include>
+ <include>jwnl:jwnl</include>
+ </includes>
+ <unpack>false</unpack>
+ <useProjectArtifact>false</useProjectArtifact>
+ <fileMode>644</fileMode>
+ <directoryMode>755</directoryMode>
+ <outputDirectory>lib</outputDirectory>
+ </dependencySet>
+ </dependencySets>
+
+ <fileSets>
+ <fileSet>
+ <directory>../opennlp-tools/bin</directory>
+ <fileMode>755</fileMode>
+ <directoryMode>755</directoryMode>
+ <outputDirectory>bin</outputDirectory>
+ </fileSet>
+
+ <fileSet>
+ <directory>../opennlp-docs/target/docbkx/html</directory>
+ <fileMode>644</fileMode>
+ <directoryMode>755</directoryMode>
+ <outputDirectory>docs/manual</outputDirectory>
+ </fileSet>
+
+ <fileSet>
+ <directory>../opennlp-maxent/target/apidocs</directory>
+ <fileMode>644</fileMode>
+ <directoryMode>755</directoryMode>
+ <outputDirectory>docs/apidocs/opennlp-maxent</outputDirectory>
+ </fileSet>
+
+ <fileSet>
+ <directory>../opennlp-tools/target/apidocs</directory>
+ <fileMode>644</fileMode>
+ <directoryMode>755</directoryMode>
+ <outputDirectory>docs/apidocs/opennlp-tools</outputDirectory>
+ </fileSet>
+
+ <fileSet>
+ <directory>../opennlp-uima/target/apidocs</directory>
+ <fileMode>644</fileMode>
+ <directoryMode>755</directoryMode>
+ <outputDirectory>docs/apidocs/opennlp-uima</outputDirectory>
+ </fileSet>
+
+ </fileSets>
</assembly>
\ No newline at end of file
Modified: incubator/opennlp/trunk/opennlp-maxent/pom.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-maxent/pom.xml?rev=1061367&r1=1061366&r2=1061367&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-maxent/pom.xml (original)
+++ incubator/opennlp/trunk/opennlp-maxent/pom.xml Thu Jan 20 16:16:52 2011
@@ -49,45 +49,6 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2-beta-2</version>
- <configuration>
- <descriptors>
- <descriptor>src/main/assembly/src.xml</descriptor>
- </descriptors>
- </configuration>
- </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>
Modified: incubator/opennlp/trunk/opennlp-tools/pom.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/pom.xml?rev=1061367&r1=1061366&r2=1061367&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/pom.xml (original)
+++ incubator/opennlp/trunk/opennlp-tools/pom.xml Thu Jan 20 16:16:52 2011
@@ -89,7 +89,19 @@
</configuration>
</plugin>
- <plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>create-javadoc-jar</id>
+ <configuration>
+ <excludePackageNames>opennlp.tools.cmdline</excludePackageNames>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>
Modified: incubator/opennlp/trunk/opennlp/pom.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp/pom.xml?rev=1061367&r1=1061366&r2=1061367&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp/pom.xml (original)
+++ incubator/opennlp/trunk/opennlp/pom.xml Thu Jan 20 16:16:52 2011
@@ -92,6 +92,44 @@
</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>
+ <javaApiLinks>
+ <property>
+ <name>api_1.5</name>
+ <value>http://download.oracle.com/javase/1.5.0/docs/api/</value>
+ </property>
+ </javaApiLinks>
+ <show>public</show>
+ <quiet>true</quiet>
+ <use>false</use> <!-- Speeds up the build of the javadocs -->
+ </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>
+
</plugins>
</build>