Open pgrosu opened 10 years ago
What is the output of mvm --version
?
I have the following on my laptop
$ mvn --version
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 08:22:22-0700)
Maven home: /workspace/pkgs/apache-maven-3.1.1
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.5", arch: "x86_64", family: "mac"
I'm guessing that you're using Java 8 and there's an incompatibility. If you set JAVA_HOME
to 1.7, you will likely see the problem disappear.
You are right that I use Java 8. I'll try to get Java 7. Below is the information regarding the mvn version:
$ mvn --version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T12:37:52-05:00)
Maven home: /home/pgrosu/apps/apache-maven-3.2.1
Java version: 1.8.0_05, vendor: Oracle Corporation
Java home: /home/pgrosu/apps/jdk1.8.0_05_64bit/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-358.el6.x86_64", arch: "amd64", family: "unix"
$
Yup, I replaced it with Java 7 and it works - thanks Matt :)
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:01 min
[INFO] Finished at: 2014-11-04T14:20:48-05:00
[INFO] Final Memory: 62M/874M
[INFO] ------------------------------------------------------------------------
$
Hi Matt,
Thank you for putting this together! I got the following error when trying
mvn package
:Any advice would be greatly appreciated.
Thank you, Paul