Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geogig-dev] compile error on version

I also found this if you prefer OpenJDK8 as opposed to Oracle's Java:


Either one should be fine and get you past the compile issues.

Erik Merkle
Software Engineer | Boundless


On Wed, Jun 22, 2016 at 8:37 AM, Erik Merkle <emerkle@xxxxxxxxxxxxxxxx> wrote:
From the error, I'm guessing you don't have Java 8 installed.

Caused by: java.lang.IllegalArgumentException: invalid target release: 1.8

Compiling GeoGig requires Java 8.

Apparently on Ubuntu 14.04, Java 8 is not included in the standard repositories. You can install it manually, or you can add one of the PPAs that has it. I found this:


You should be able to get Java 8 on your system with the above link. Once you have it installed, as long as Maven is using Java 8, you should be able to compile.

​Regards,​

Erik Merkle
Software Engineer | Boundless


On Wed, Jun 22, 2016 at 2:09 AM, admire <admire@xxxxxxxxxxx> wrote:
Hi

I am trying to build geogig-1.0-RC2 on Ubuntu 14.04 and I get compile error.

Downloaded: http://repo.maven.apache.org/maven2/com/google/collections/google-collections/1.0/google-collections-1.0.jar (625 KB at 110.0 KB/sec)
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 310 source files to /geogig/src/core/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GeoGig ............................................ SUCCESS [1:51.670s]
[INFO] GeoGig Core ....................................... FAILURE [2:31.820s]
[INFO] Storage backends .................................. SKIPPED
[INFO] Berkeley DB JE storage backend .................... SKIPPED
[INFO] PostgreSQL Storage Backend ........................ SKIPPED
[INFO] GeoGig Command Line Interface ..................... SKIPPED
[INFO] GeoTools Extension ................................ SKIPPED
[INFO] Openstreetmap extension ........................... SKIPPED
[INFO] Web modules ....................................... SKIPPED
[INFO] GeoGig Web API .................................... SKIPPED
[INFO] GeoGig WebApp ..................................... SKIPPED
[INFO] GeoGig CLI App .................................... SKIPPED
[INFO] GeoGig Web API Automated Functional Tests ......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:32.194s
[INFO] Finished at: Wed Jun 22 07:02:48 UTC 2016
[INFO] Final Memory: 15M/235M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project geogig-core: Fatal error compiling: invalid target release: 1.8 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project geogig-core: Fatal error compiling
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error compiling
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:796)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
Caused by: org.codehaus.plexus.compiler.CompilerException: invalid target release: 1.8
    at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:191)
    at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169)
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:785)
    ... 22 more
Caused by: java.lang.IllegalArgumentException: invalid target release: 1.8
    at com.sun.tools.javac.main.RecognizedOptions$GrumpyHelper.error(RecognizedOptions.java:88)
    at com.sun.tools.javac.main.RecognizedOptions$10.process(RecognizedOptions.java:359)
    at com.sun.tools.javac.api.JavacTool.processOptions(JavacTool.java:242)
    at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:199)
    at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:68)
    at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:115)
    ... 24 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :geogig-core

Regards

_______________________________________________
geogig-dev mailing list
geogig-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
http://www.locationtech.org/mailman/listinfo/geogig-dev



Back to the top