Ubuntu: Maven Install complains about Java 8 Inputs

156 views
Skip to first unread message

R Veach

unread,
May 22, 2016, 9:38:52 PM5/22/16
to checkstyle-devel
On Ubuntu 12.04 when I run "mvn clean install" on CheckStyle master's branch I get the following errors.


[INFO] 64 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.298 s
[INFO] Finished at: 2016-05-22T21:26:24-05:00
[INFO] Final Memory: 24M/89M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:testCompile (default-testCompile) on project checkstyle: Compilation failure: Compilation failure:
[ERROR] /home/ricky/opensource/checkstyle/src/test/resources/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammars/java8/InputAnnotations5.java:[10,43] type annotations are not supported in -source 1.7
[ERROR] (use -source 8 or higher to enable type annotations)
[ERROR] /home/ricky/opensource/checkstyle/src/test/resources/resources-noncompilable/com/puppycrawl/tools/checkstyle/checks/whitespace/InputGenericWhitespaceMethodRef.java:[6,60] method references are not supported in -source 1.7
[ERROR] (use -source 8 or higher to enable method references)


I don't have any problems when I tell it to skip the tests, '-Dmaven.test.skip=true'.
I have no issues in Windows using just Eclipse.
I temporarily tried upping sources to 1.8, but then it complains about non-compilable input files.


$ mvn --version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T12:37:52-05:00)
Maven home: /usr/share/maven3
Java version: 1.8.0_72-internal, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-i386/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-101-generic-pae", arch: "i386", family: "unix"

R Veach

unread,
May 22, 2016, 9:46:16 PM5/22/16
to checkstyle-devel
Ignore this. I didn't realize I had accidentally moved some files to another directory and that they were untracked and git's reset ignores them by default.
Reply all
Reply to author
Forward
0 new messages