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

Build failing on jdk 11.0.2 #1730

Closed
rohanKanojia opened this issue Aug 29, 2019 · 0 comments · Fixed by #1732
Closed

Build failing on jdk 11.0.2 #1730

rohanKanojia opened this issue Aug 29, 2019 · 0 comments · Fixed by #1732

Comments

@rohanKanojia
Copy link
Member

When I try to compile project on jdk11, it seems to be breaking giving this error(shown below). Maybe we forgot to accommodate java 11 related changes while adding knative/tekton extensions?

INFO] --- build-helper-maven-plugin:3.0.0:parse-version (parse-version) @ kubernetes-extensions ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.4:prepare-agent (default-prepare-agent) @ kubernetes-extensions ---
[INFO] argLine set to -javaagent:/home/rohaan/.m2/repository/org/jacoco/org.jacoco.agent/0.8.4/org.jacoco.agent-0.8.4-runtime.jar=destfile=/home/rohaan/go/src/github.com/fabric8io/kubernetes-client/extensions/target/jacoco.exec
[INFO] 
[INFO] --- jandex-maven-plugin:1.0.6:jandex (make-index) @ kubernetes-extensions ---
[INFO] [SKIP] Cannot process fileset in directory: /home/rohaan/go/src/github.com/fabric8io/kubernetes-client/extensions/target/classes. Directory does not exist!
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.4:report (default-report) @ kubernetes-extensions ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ kubernetes-extensions ---
[INFO] Installing /home/rohaan/go/src/github.com/fabric8io/kubernetes-client/extensions/pom.xml to /home/rohaan/.m2/repository/io/fabric8/kubernetes-extensions/4.4-SNAPSHOT/kubernetes-extensions-4.4-SNAPSHOT.pom
[INFO] 
[INFO] ------------------< io.fabric8:knative-extension-pom >------------------
[INFO] Building Fabric8 :: Knative :: Extension 4.4-SNAPSHOT            [12/39]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ knative-extension-pom ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ knative-extension-pom ---
[INFO] 
[INFO] --- sundr-maven-plugin:0.17.2:generate-bom (default) @ knative-extension-pom ---
[INFO] 
[INFO] --- build-helper-maven-plugin:3.0.0:parse-version (parse-version) @ knative-extension-pom ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.4:prepare-agent (default-prepare-agent) @ knative-extension-pom ---
[INFO] argLine set to -javaagent:/home/rohaan/.m2/repository/org/jacoco/org.jacoco.agent/0.8.4/org.jacoco.agent-0.8.4-runtime.jar=destfile=/home/rohaan/go/src/github.com/fabric8io/kubernetes-client/extensions/knative/target/jacoco.exec
[INFO] 
[INFO] --- jandex-maven-plugin:1.0.6:jandex (make-index) @ knative-extension-pom ---
[INFO] [SKIP] Cannot process fileset in directory: /home/rohaan/go/src/github.com/fabric8io/kubernetes-client/extensions/knative/target/classes. Directory does not exist!
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.4:report (default-report) @ knative-extension-pom ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ knative-extension-pom ---
[INFO] Installing /home/rohaan/go/src/github.com/fabric8io/kubernetes-client/extensions/knative/pom.xml to /home/rohaan/.m2/repository/io/fabric8/knative-extension-pom/4.4-SNAPSHOT/knative-extension-pom-4.4-SNAPSHOT.pom
[INFO] 
[INFO] -----------------< io.fabric8:knative-model-annotator >-----------------
[INFO] Building Fabric8 :: Knative :: Model :: Annotator 4.4-SNAPSHOT   [13/39]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Fabric8 :: Kubernetes :: Project 4.4-SNAPSHOT:
[INFO] 
[INFO] Fabric8 :: Kubernetes :: Project ................... SUCCESS [ 51.388 s]
[INFO] Fabric8 :: Kubernetes Model Parent ................. SUCCESS [  0.586 s]
[INFO] Fabric8 :: Kubernetes Model :: Common .............. SUCCESS [  1.439 s]
[INFO] Fabric8 :: Kubernetes Model Annotator .............. SUCCESS [  1.114 s]
[INFO] Fabric8 :: Kubernetes Model ........................ SUCCESS [02:43 min]
[INFO] Fabric8 :: Kubernetes :: Java Client ............... SUCCESS [ 10.888 s]
[INFO] Fabric8 :: Kubernetes :: Server Mock ............... SUCCESS [  0.691 s]
[INFO] Fabric8 :: Openshift :: Java Client ................ SUCCESS [  4.042 s]
[INFO] Fabric8 :: Kubernetes :: Extensions ................ SUCCESS [  0.020 s]
[INFO] Fabric8 :: Knative :: Extension .................... SUCCESS [  0.014 s]
[INFO] Fabric8 :: Knative :: Model :: Annotator ........... FAILURE [  0.007 s]
[INFO] Fabric8 :: Knative :: Model ........................ SKIPPED
[INFO] Fabric8 :: Knative :: Client ....................... SKIPPED
[INFO] Fabric8 :: Knative :: Server Mock .................. SKIPPED
[INFO] Fabric8 :: Knative :: Examples ..................... SKIPPED
[INFO] Fabric8 :: Knative :: Tests ........................ SKIPPED
[INFO] Fabric8 :: Tekton :: Extension ..................... SKIPPED
[INFO] Fabric8 :: Tekton :: Model :: Annotator ............ SKIPPED
[INFO] Fabric8 :: Tekton :: Model ......................... SKIPPED
[INFO] Fabric8 :: Tekton :: Client ........................ SKIPPED
[INFO] Fabric8 :: Tekton :: Server Mock ................... SKIPPED
[INFO] Fabric8 :: Tekton :: Examples ...................... SKIPPED
[INFO] Fabric8 :: Tekton :: Tests ......................... SKIPPED
[INFO] Fabric8 :: Service Catalog :: Extension ............ SKIPPED
[INFO] Fabric8 :: Service Catalog Model Parent ............ SKIPPED
[INFO] Fabric8 :: Service Catalog :: Model :: Annotator ... SKIPPED
[INFO] Fabric8 :: Service Catalog :: Model ................ SKIPPED
[INFO] Fabric8 :: Service Catalog :: Client ............... SKIPPED
[INFO] Fabric8 :: Service Catalog :: Server Mock .......... SKIPPED
[INFO] Fabric8 :: Service Catalog :: Examples ............. SKIPPED
[INFO] Fabric8 :: Service Catalog :: Tests ................ SKIPPED
[INFO] Fabric8 :: Openshift :: Server Mock ................ SKIPPED
[INFO] Fabric8 :: Kubernetes :: Client Examples ........... SKIPPED
[INFO] Fabric8 :: Kubernetes :: Platforms ................. SKIPPED
[INFO] Fabric8 :: Kubernetes :: Platforms :: Karaf ........ SKIPPED
[INFO] Fabric8 :: Kubernetes :: Platforms :: Karaf :: Features SKIPPED
[INFO] Fabric8 :: Kubernetes :: Platforms :: Karaf :: Tests SKIPPED
[INFO] Fabric8 :: Kubernetes :: Tests ..................... SKIPPED
[INFO] Fabric8 :: Kubernetes and Openshift :: UberJar ..... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:55 min
[INFO] Finished at: 2019-08-29T13:07:08+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project knative-model-annotator: Could not resolve dependencies for project io.fabric8:knative-model-annotator:jar:4.4-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.7 at specified path /usr/lib/jvm/java-8-jdk/jre/../lib/tools.jar -> [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/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :knative-model-annotator

rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Aug 29, 2019
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Aug 29, 2019
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Aug 29, 2019
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Aug 29, 2019
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Aug 29, 2019
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

Successfully merging a pull request may close this issue.

1 participant