You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by co...@apache.org on 2017/05/17 15:52:50 UTC

[24/50] opennlp git commit: OPENNLP-1037: OpenNLP build fails if only the eval tests are run

OPENNLP-1037: OpenNLP build fails if only the eval tests are run


Project: http://git-wip-us.apache.org/repos/asf/opennlp/repo
Commit: http://git-wip-us.apache.org/repos/asf/opennlp/commit/d44fe15b
Tree: http://git-wip-us.apache.org/repos/asf/opennlp/tree/d44fe15b
Diff: http://git-wip-us.apache.org/repos/asf/opennlp/diff/d44fe15b

Branch: refs/heads/LangDetect
Commit: d44fe15b1bc46639d7ba6b3eb58d8441985ae345
Parents: 9803662
Author: Peter Thygesen <th...@apache.org>
Authored: Wed May 3 20:55:07 2017 +0200
Committer: Peter Thygesen <th...@apache.org>
Committed: Wed May 3 20:55:07 2017 +0200

----------------------------------------------------------------------
 opennlp-tools/pom.xml | 11 +----------
 pom.xml               | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/opennlp/blob/d44fe15b/opennlp-tools/pom.xml
----------------------------------------------------------------------
diff --git a/opennlp-tools/pom.xml b/opennlp-tools/pom.xml
index 663e903..a499375 100644
--- a/opennlp-tools/pom.xml
+++ b/opennlp-tools/pom.xml
@@ -73,16 +73,7 @@
       </resource>
     </resources>
     <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <configuration>
-          <excludes>
-            <exclude>/opennlp/tools/eval/**/*</exclude>
-          </excludes>
-        </configuration>
-      </plugin>
-			
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>

http://git-wip-us.apache.org/repos/asf/opennlp/blob/d44fe15b/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 12c9ee6..2190a26 100644
--- a/pom.xml
+++ b/pom.xml
@@ -228,6 +228,7 @@
 					<version>${maven.surefire.plugin}</version>
 					<configuration>
 						<forkCount>${opennlp.forkCount}</forkCount>
+						<failIfNoSpecifiedTests>false</failIfNoSpecifiedTests>
 						<excludes>
 							<exclude>**/stemmer/*</exclude>
 							<exclude>**/stemmer/snowball/*</exclude>
@@ -416,6 +417,30 @@
 				</plugins>
 			</build>
 		</profile>
+
+		<profile>
+			<id>eval</id>
+			<activation>
+				<property>
+					<name>OPENNLP_DATA_DIR</name>
+				</property>
+			</activation>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-surefire-plugin</artifactId>
+						<version>${maven.surefire.plugin}</version>
+						<configuration>
+							<includes>
+								<include>**/*Test.java</include>
+								<include>**/SourceForgeModelEval.java</include>
+							</includes>
+						</configuration>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
 	</profiles>
 
 	<modules>