Hello James, Thanks for the answer. I have tried in three different machines. All of them with the same JVM and maven versions:
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) Maven home: /sc01a4/users/ragerri/local/apache-maven-3.0.4 Java version: 1.7.0_09, vendor: Oracle Corporation Java home: /sc01a4/users/ragerri/local/jdk1.7.0_09/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "2.6.18-348.16.1.el5", arch: "amd64", family: "unix" Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) Maven home: /home/ragerri/local/apache-maven-3.0.4 Java version: 1.7.0_09, vendor: Oracle Corporation Java home: /home/ragerri/local/jdk1.7.0_09/jre Default locale: en_GB, platform encoding: UTF-8 OS name: "linux", version: "2.6.32-431.5.1.el6.x86_64", arch: "amd64", family: "unix" In all three machines I cleaned the .m2 repo and it always download the same junit versions: 3.8.1, 3.8.2 and 4.8.1 Funnily enough in one of the machines compiles and it does not in the other two (they output the errors of previous message). I will keep looking. Thanks, Rodrigo On 2014/04/07 at 20:27, James Kosin wrote: > Rodrigo, > > Can you check and see what version of junit is being pulled in by > mvn in the local repo. > > Thanks, > James > > On 4/7/2014 10:28 AM, Rodrigo Agerri wrote: > >Hi all, > > > >After co the current svn trunk repo, I try to build the project and it fails > >at > >the opennlp dir. As the first errors are related with the tests, I first > >tried > >to compile ignoring tests: > > > >mvn clean install -Dmaven.test.skip=true > > > >With no success. I then commented out the scope test of junit, and then I did > >not get the test junit errors but the following ones related to uima. > > > >Here is first the test errors and then the uima errors. > > > >Best, > > > >Rodrigo > > > >[ERROR] COMPILATION ERROR : > >[INFO] ------------------------------------------------------------- > >[ERROR] > >/home/ragerri/javacode/opennlp-svn/opennlp-tools/src/main/java/opennlp/opennlp-tools/src/test/java/opennlp/tools/tokenize/TokenizerEvaluatorTest.java:[20,29] > > error: package junit.framework does not exist > >[ERROR] > >/home/ragerri/javacode/opennlp-svn/opennlp-tools/src/main/java/opennlp/opennlp-tools/src/test/java/opennlp/tools/tokenize/TokenizerEvaluatorTest.java:[20,0] > > error: static import only from classes and interfaces > >[ERROR] > >/home/ragerri/javacode/opennlp-svn/opennlp-tools/src/main/java/opennlp/opennlp-tools/src/test/java/opennlp/tools/tokenize/TokenizerEvaluatorTest.java:[21,29] > > error: package junit.framework does not exist > >[ERROR] > >/home/ragerri/javacode/opennlp-svn/opennlp-tools/src/main/java/opennlp/opennlp-tools/src/test/java/opennlp/tools/tokenize/TokenizerEvaluatorTest.java:[21,0] > > error: static import only from classes and interfaces > >[ERROR] > >/home/ragerri/javacode/opennlp-svn/opennlp-tools/src/main/java/opennlp/opennlp-tools/src/test/java/opennlp/tools/tokenize/TokenizerEvaluatorTest.java:[30,16] > > error: package org.junit does not exist > >[ERROR] > >/home/ragerri/javacode/opennlp-svn/opennlp-tools/src/main/java/opennlp/opennlp-uima/src/main/java/opennlp/uima/util/ContainingConstraint.java:[23,26] > > error: package org.apache.uima.cas does not exist > >[ERROR] > >/home/ragerri/javacode/opennlp-svn/opennlp-tools/src/main/java/opennlp/opennlp-uima/src/main/java/opennlp/uima/util/ContainingConstraint.java:[24,26] > > error: package org.apache.uima.cas does not exist > >[ERROR] > >/home/ragerri/javacode/opennlp-svn/opennlp-tools/src/main/java/opennlp/opennlp-uima/src/main/java/opennlp/uima/util/ContainingConstraint.java:[25,31] > > error: package org.apache.uima.cas.text does not exist > >[ERROR] > >/home/ragerri/javacode/opennlp-svn/opennlp-tools/src/main/java/opennlp/opennlp-uima/src/main/java/opennlp/uima/util/ContainingConstraint.java:[30,51] > > error: cannot find symbol > > > > > > >
