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

Not working with JDK 10 #2

Open
alonsoir opened this issue Feb 27, 2019 · 1 comment
Open

Not working with JDK 10 #2

alonsoir opened this issue Feb 27, 2019 · 1 comment

Comments

@alonsoir
Copy link

~/a/spring-akka-sample> mvn clean install jetty:run
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springframework.samples:travel:war:1.0.0-BUILD-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 273, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 333, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 281, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] -----------------< org.springframework.samples:travel >-----------------
[INFO] Building travel 1.0.0-BUILD-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[WARNING] The POM for joda-time:joda-time-jsptags:jar:1.0.2 is missing, no dependency information available
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ travel ---
[INFO] Deleting /Users/aironman/akka-spring/spring-akka-sample/target
[INFO]
[INFO] --- aspectj-maven-plugin:1.2:compile (default) @ travel ---
[ERROR] The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
[ERROR] The type java.lang.Enum cannot be resolved. It is indirectly referenced from required .class files
[ERROR] The type Enum is not generic; it cannot be parameterized with arguments
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.486 s
[INFO] Finished at: 2019-02-27T12:47:08+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project travel: Compiler errors :
[ERROR] error at (no source information available)
[ERROR] /Users/aironman/akka-spring/spring-akka-sample/src/main/java/org/springframework/samples/travel/Amenity.java:1:0::0 The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
[ERROR] error at (no source information available)
[ERROR] /Users/aironman/akka-spring/spring-akka-sample/src/main/java/org/springframework/samples/travel/Amenity.java:1:0::0 The type java.lang.Enum cannot be resolved. It is indirectly referenced from required .class files
[ERROR] error at (no source information available)
[ERROR] /Users/aironman/akka-spring/spring-akka-sample/src/main/java/org/springframework/samples/travel/Amenity.java:1:0::0 The type Enum is not generic; it cannot be parameterized with arguments
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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

aironman@MacBook-Pro-Retina-de-Alonso ~/a/spring-akka-sample> mvn --version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
Maven home: /usr/local/Cellar/maven/3.6.0/libexec
Java version: 10.0.1, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
Default locale: es_ES, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.2", arch: "x86_64", family: "mac"

@alonsoir
Copy link
Author

I cloned the repo with git clone command and run clean install jetty:run phases.
I did not import the project into eclipse, as this thread on stackoverflow suggest...

It is weird, isnt?

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

1 participant