You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2012/10/23 23:56:52 UTC

svn commit: r1401498 - in /lucene/dev/trunk: dev-tools/idea/lucene/classification/classification.iml dev-tools/maven/lucene/classification/pom.xml.template lucene/classification/src/test/org/apache/lucene/classification/ClassificationTestBase.java

Author: sarowe
Date: Tue Oct 23 21:56:51 2012
New Revision: 1401498

URL: http://svn.apache.org/viewvc?rev=1401498&view=rev
Log:
LUCENE-4345: Maven and IntelliJ configuration: add new lucene/queries compile dependency, and new lucene/analysis/common test dependency.  Make ClassificationTestBase abstract, so that the IntelliJ runner doesn't "fail to start" it.

Modified:
    lucene/dev/trunk/dev-tools/idea/lucene/classification/classification.iml
    lucene/dev/trunk/dev-tools/maven/lucene/classification/pom.xml.template
    lucene/dev/trunk/lucene/classification/src/test/org/apache/lucene/classification/ClassificationTestBase.java

Modified: lucene/dev/trunk/dev-tools/idea/lucene/classification/classification.iml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/dev-tools/idea/lucene/classification/classification.iml?rev=1401498&r1=1401497&r2=1401498&view=diff
==============================================================================
--- lucene/dev/trunk/dev-tools/idea/lucene/classification/classification.iml (original)
+++ lucene/dev/trunk/dev-tools/idea/lucene/classification/classification.iml Tue Oct 23 21:56:51 2012
@@ -15,5 +15,7 @@
     <orderEntry type="library" scope="TEST" name="JUnit" level="project" />
     <orderEntry type="module" scope="TEST" module-name="lucene-test-framework" />
     <orderEntry type="module" module-name="lucene-core" />
+    <orderEntry type="module" module-name="queries" />
+    <orderEntry type="module" scope="TEST" module-name="analysis-common" />
   </component>
 </module>

Modified: lucene/dev/trunk/dev-tools/maven/lucene/classification/pom.xml.template
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/dev-tools/maven/lucene/classification/pom.xml.template?rev=1401498&r1=1401497&r2=1401498&view=diff
==============================================================================
--- lucene/dev/trunk/dev-tools/maven/lucene/classification/pom.xml.template (original)
+++ lucene/dev/trunk/dev-tools/maven/lucene/classification/pom.xml.template Tue Oct 23 21:56:51 2012
@@ -54,6 +54,17 @@
       <artifactId>lucene-core</artifactId>
       <version>${project.version}</version>
     </dependency>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>lucene-queries</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>lucene-analyzers-common</artifactId>
+      <version>${project.version}</version>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
   <build>
     <sourceDirectory>${module-path}/src/java</sourceDirectory>

Modified: lucene/dev/trunk/lucene/classification/src/test/org/apache/lucene/classification/ClassificationTestBase.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/classification/src/test/org/apache/lucene/classification/ClassificationTestBase.java?rev=1401498&r1=1401497&r2=1401498&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/classification/src/test/org/apache/lucene/classification/ClassificationTestBase.java (original)
+++ lucene/dev/trunk/lucene/classification/src/test/org/apache/lucene/classification/ClassificationTestBase.java Tue Oct 23 21:56:51 2012
@@ -31,7 +31,7 @@ import org.junit.Before;
 /**
  * Base class for testing {@link Classifier}s
  */
-public class ClassificationTestBase extends LuceneTestCase {
+public abstract class ClassificationTestBase extends LuceneTestCase {
 
   private RandomIndexWriter indexWriter;
   private String textFieldName;