Change source AND target in core/pom.xml from 1.6 to 1.5.
Use Java 1.6
mvn clean compile
You may get some compilation errors in Bayes* and CBayes* classes (to do with 
Dequeue IIRC).  You can comment that code out if you don't need it
mvn clean compile jar:jar

This worked for me when I had to build a Java 1.5-friendly Mahout jar last week.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Kevin Osborn <osbo...@yahoo.com>
> To: mahout-user@lucene.apache.org
> Sent: Thursday, April 16, 2009 7:11:35 PM
> Subject: invalid target on mvn install
> 
> It sounds like I may have some problem in my environment, but I can't seem to 
> find anything.
> 
> JAVA_HOME is set to my JDK 1.5.
> 
> But when I run mvn install, I get the following error:
> 
> [INFO] [install:install-file {execution: create-commons-cli}]
> [INFO] Installing 
> /home/maude/osbornk/TechTime/Mahout/lucene/mahout/trunk/core/lib/commons-cli-2.0-mahout.jar
>  
> to 
> /home/maude/osbornk/.m2/repository/org/apache/mahout/commons/commons-cli/2.0-mahout/commons-cli-2.0-mahout.jar
> [INFO] Creating Checksums...
> [INFO] Creating Checksums...
> [INFO] [resources:resources]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] [resources:copy-resources {execution: copy-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] [compiler:compile]
> [INFO] Compiling 270 source files to 
> /home/maude/osbornk/TechTime/Mahout/lucene/mahout/trunk/core/target/classes
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> Failure executing javac, but could not parse the error:
> javac: invalid target release: 1.6
> Usage: javac 
> where possible options include:
> ...
> 
> Any ideas?

Reply via email to