Estoy tratando de instalar esto desde git .
(Estoy ejecutando Ubuntu.) Recibo este error
[WARNING] The POM for de.jungblut.common:thomasjungblut-common:jar:1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ glove --- [INFO] Deleting /home/nat/workspace/Glove/target [INFO] [INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ glove --- [INFO] Using 'UTF-8' encoding to copy filtenetworking resources. [INFO] Copying 12 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ glove --- [INFO] Compiling 12 source files to /home/nat/workspace/Glove/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Failure executing javac, but could not parse the error: javac: invalid target release: 1.8 Usage: javac <options> <source files> use -help for a list of possible options [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.782s [INFO] Finished at: Mon Jul 27 14:33:32 EDT 2015 [INFO] Final Memory: 11M/150M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project glove: Comstacktion failure [ERROR] Failure executing javac, but could not parse the error: [ERROR] javac: invalid target release: 1.8 [ERROR] Usage: javac <options> <source files>
He hecho esto y parece que mi Java podría estar en el lugar equivocado. ¿Hay un problema con el file POM?
De hecho, necesitaba actualizar JDK a JDK 8. Esto es lo que utilicé:
$ sudo add-apt-repository ppa: webupd8team / java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
Una vez que se instaló, también necesité agregar sudo
antes de mvn clean package install
Funcionó a las mil maravillas. Gracias a @Jesper