Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Issue OSX #21

Closed
topi23 opened this issue Jul 27, 2016 · 8 comments
Closed

Compilation Issue OSX #21

topi23 opened this issue Jul 27, 2016 · 8 comments
Assignees

Comments

@topi23
Copy link

topi23 commented Jul 27, 2016

On OSX 10.10

When I run mvn package I get this error :

src/main/java/com/github/horrorho/inflatabledonkey/SnapshotSelector.java:[67,25] incompatible types: inferred type does not conform to upper bound(s)
    inferred: ? extends java.util.Collection<com.github.horrorho.inflatabledonkey.data.backup.Snapshot>
    upper bound(s): java.util.Collection<com.github.horrorho.inflatabledonkey.data.backup.Snapshot>,java.lang.Object

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    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:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    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)

Any idea ?

Thanks !

@horrorho
Copy link
Owner

Hi there. Which version of Java are you using?

java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

@topi23
Copy link
Author

topi23 commented Jul 27, 2016

java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

I try an update

@horrorho
Copy link
Owner

horrorho commented Jul 27, 2016

Ok Java version 1.8.0_25 is like a couple of years old I think. I'll wait for you to update it to a newer version and try again.

@topi23
Copy link
Author

topi23 commented Jul 27, 2016

Well, I update java, but I have the same error...

java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

@horrorho
Copy link
Owner

That's odd. Have you tried rebooting your machine? It's just I can compile without issue.

@horrorho
Copy link
Owner

Also if you could please:

mvn --version

and let me know the Java version.

@horrorho horrorho self-assigned this Jul 27, 2016
@topi23
Copy link
Author

topi23 commented Jul 27, 2016

I remove all java components from my computer, and re-install them. And compilation works !

Thank you for your time !

@topi23 topi23 closed this as completed Jul 27, 2016
@horrorho
Copy link
Owner

Good work and thank you for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants