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

Classes not getting generated by sundrio in Java9 module based project #164

Open
rohanKanojia opened this issue Mar 9, 2020 · 8 comments

Comments

@rohanKanojia
Copy link
Contributor

Hello,

I'm working on adding modules in Fabric8 Kubernetes Client(fabric8io/kubernetes-client#1996). I wrote module-info.java files for all the modules. But I'm facing a strange issue and I think the problem might be there in either Sundrio or its configuration. Somehow the generation process is not being triggered when I add module files in project.

I tried modifying one of the samples by adding a module file and it seemed to reproduce the issue: https://github.com/r0haaaan/sundrio-module9-test

If you clone and compile this, you would see this error:

~/work/repos/sundrio-jdk11-failuretest : $ mvn clean install
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------< io.sundr.examples:kubernetes >--------------------
[INFO] Building Sundrio :: Examples :: Kubernetes 0.21.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ kubernetes ---
[INFO] Deleting /home/rohaan/work/repos/sundrio-jdk11-failuretest/target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ kubernetes ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ kubernetes ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/rohaan/work/repos/sundrio-jdk11-failuretest/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ kubernetes ---
[WARNING] **********************************************************************************************************************************************************************************
[WARNING] * Required filename-based automodules detected: [dsl-annotations-0.21.0.jar, builder-annotations-0.21.0.jar]. Please don't publish this project to a public artifact repository! *
[WARNING] **********************************************************************************************************************************************************************************
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 10 source files to /home/rohaan/work/repos/sundrio-jdk11-failuretest/target/classes
[WARNING] No SupportedSourceVersion annotation found on io.sundr.resourcecify.internal.processor.ResourcecifyProcessor, returning RELEASE_6.
[WARNING] Supported source version 'RELEASE_6' from annotation processor 'io.sundr.resourcecify.internal.processor.ResourcecifyProcessor' less than -source '11'
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ kubernetes ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/rohaan/work/repos/sundrio-jdk11-failuretest/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ kubernetes ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/rohaan/work/repos/sundrio-jdk11-failuretest/target/test-classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] No SupportedSourceVersion annotation found on io.sundr.resourcecify.internal.processor.ResourcecifyProcessor, returning RELEASE_6.
[WARNING] Supported source version 'RELEASE_6' from annotation processor 'io.sundr.resourcecify.internal.processor.ResourcecifyProcessor' less than -source '11'
[INFO] 2 warnings 
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/src/test/java/io/sundr/examples/kubernetes/KubernetesDslTest.java:[19,36] cannot find symbol
  symbol:   class Kubernetes
  location: package io.sundr.examples.kubernetes
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/src/test/java/io/sundr/examples/kubernetes/KubernetesDslTest.java:[28,13] cannot find symbol
  symbol:   class Kubernetes
  location: class io.sundr.examples.kubernetes.KubernetesDslTest
[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.920 s
[INFO] Finished at: 2020-03-09T17:52:21+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project kubernetes: Compilation failure: Compilation failure: 
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/src/test/java/io/sundr/examples/kubernetes/KubernetesDslTest.java:[19,36] cannot find symbol
[ERROR]   symbol:   class Kubernetes
[ERROR]   location: package io.sundr.examples.kubernetes
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/src/test/java/io/sundr/examples/kubernetes/KubernetesDslTest.java:[28,13] cannot find symbol
[ERROR]   symbol:   class Kubernetes
[ERROR]   location: class io.sundr.examples.kubernetes.KubernetesDslTest
[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/MojoFailureException
~/work/repos/sundrio-jdk11-failuretest : $ 
~/work/repos/sundrio-jdk11-failuretest : $ tree target/generated-sources/
target/generated-sources/
└── annotations

1 directory, 0 files

I'm not sure what I'm missing or maybe my module configuration is not correct. Could this be some bug in sundrio?

@iocanel
Copy link
Collaborator

iocanel commented Mar 17, 2020

@rohanKanojia just curious the failed examples seems to be the dsl test. Do the rest of the examples work?

@rohanKanojia
Copy link
Contributor Author

let me check

@rohanKanojia
Copy link
Contributor Author

I tried with shapes/ sample by adding module-info.java file but it also seems to be facing similar issue:

~/work/repos/sundrio-jdk11-failuretest/shapes : $ mvn clean install
[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------------< io.sundr.examples:shapes >----------------------
[INFO] Building Sundrio :: Examples :: Shapes 0.21-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ shapes ---
[INFO] Deleting /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ shapes ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ shapes ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ shapes ---
[WARNING] **************************************************************************************************************************************************************************************************************************************************
[WARNING] * Required filename-based automodules detected: [builder-annotations-0.21-SNAPSHOT.jar, resourcecify-annotations-0.21-SNAPSHOT.jar, transform-annotations-0.21-SNAPSHOT.jar]. Please don't publish this project to a public artifact repository! *
[WARNING] **************************************************************************************************************************************************************************************************************************************************
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 14 source files to /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ shapes ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ shapes ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/target/test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[22,24] cannot find symbol
  symbol:   class PathAwareTypedVisitor
  location: package io.sundr.builder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[23,24] cannot find symbol
  symbol:   class TypedVisitor
  location: package io.sundr.builder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[24,24] cannot find symbol
  symbol:   class Visitor
  location: package io.sundr.builder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[26,35] cannot find symbol
  symbol:   class CircleBuilder
  location: package io.sundr.examples.shapes.v1
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[27,35] cannot find symbol
  symbol:   class EditableCircle
  location: package io.sundr.examples.shapes.v1
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[29,35] cannot find symbol
  symbol:   class SquareBuilder
  location: package io.sundr.examples.shapes.v1
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[41,29] cannot find symbol
  symbol:   class CircleBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[50,9] cannot find symbol
  symbol:   class EditableCircle
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[50,46] cannot find symbol
  symbol:   class CircleBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[67,29] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[76,55] cannot find symbol
  symbol:   class Visitor
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[76,63] cannot find symbol
  symbol:   class CircleBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[78,31] cannot find symbol
  symbol: class CircleBuilder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[77,13] method does not override or implement a method from a supertype
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[76,22] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[89,29] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[98,55] cannot find symbol
  symbol:   class PathAwareTypedVisitor
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[98,77] cannot find symbol
  symbol:   class CircleBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[98,101] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[100,31] cannot find symbol
  symbol: class CircleBuilder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[99,13] method does not override or implement a method from a supertype
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[98,22] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[111,9] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[111,43] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[112,39] cannot find symbol
  symbol:   class CircleBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[117,39] cannot find symbol
  symbol:   class SquareBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[124,55] cannot find symbol
  symbol:   class Visitor
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[124,63] cannot find symbol
  symbol:   class CircleBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[126,31] cannot find symbol
  symbol: class CircleBuilder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[125,13] method does not override or implement a method from a supertype
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[124,22] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[137,29] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[138,34] cannot find symbol
  symbol:   class CircleBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[143,34] cannot find symbol
  symbol:   class SquareBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[150,55] cannot find symbol
  symbol:   class TypedVisitor
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[150,68] cannot find symbol
  symbol:   class CircleBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[152,31] cannot find symbol
  symbol: class CircleBuilder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[151,13] method does not override or implement a method from a supertype
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[150,22] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[163,29] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[164,34] cannot find symbol
  symbol:   class CircleBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[169,34] cannot find symbol
  symbol:   class SquareBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[178,22] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[180,55] cannot find symbol
  symbol:   class Visitor
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[180,63] cannot find symbol
  symbol:   class CircleBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[182,31] cannot find symbol
  symbol: class CircleBuilder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[181,13] method does not override or implement a method from a supertype
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[180,22] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[194,29] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[212,29] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[235,9] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[235,37] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[252,29] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[278,37] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[293,13] cannot find symbol
  symbol:   class CanvasBuilder
  location: class io.sundr.examples.shapes.ShapesTest
[INFO] 55 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.332 s
[INFO] Finished at: 2020-03-17T16:53:18+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project shapes: Compilation failure: Compilation failure: 
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[22,24] cannot find symbol
[ERROR]   symbol:   class PathAwareTypedVisitor
[ERROR]   location: package io.sundr.builder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[23,24] cannot find symbol
[ERROR]   symbol:   class TypedVisitor
[ERROR]   location: package io.sundr.builder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[24,24] cannot find symbol
[ERROR]   symbol:   class Visitor
[ERROR]   location: package io.sundr.builder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[26,35] cannot find symbol
[ERROR]   symbol:   class CircleBuilder
[ERROR]   location: package io.sundr.examples.shapes.v1
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[27,35] cannot find symbol
[ERROR]   symbol:   class EditableCircle
[ERROR]   location: package io.sundr.examples.shapes.v1
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[29,35] cannot find symbol
[ERROR]   symbol:   class SquareBuilder
[ERROR]   location: package io.sundr.examples.shapes.v1
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[41,29] cannot find symbol
[ERROR]   symbol:   class CircleBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[50,9] cannot find symbol
[ERROR]   symbol:   class EditableCircle
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[50,46] cannot find symbol
[ERROR]   symbol:   class CircleBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[67,29] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[76,55] cannot find symbol
[ERROR]   symbol:   class Visitor
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[76,63] cannot find symbol
[ERROR]   symbol:   class CircleBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[78,31] cannot find symbol
[ERROR]   symbol: class CircleBuilder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[77,13] method does not override or implement a method from a supertype
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[76,22] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[89,29] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[98,55] cannot find symbol
[ERROR]   symbol:   class PathAwareTypedVisitor
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[98,77] cannot find symbol
[ERROR]   symbol:   class CircleBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[98,101] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[100,31] cannot find symbol
[ERROR]   symbol: class CircleBuilder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[99,13] method does not override or implement a method from a supertype
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[98,22] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[111,9] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[111,43] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[112,39] cannot find symbol
[ERROR]   symbol:   class CircleBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[117,39] cannot find symbol
[ERROR]   symbol:   class SquareBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[124,55] cannot find symbol
[ERROR]   symbol:   class Visitor
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[124,63] cannot find symbol
[ERROR]   symbol:   class CircleBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[126,31] cannot find symbol
[ERROR]   symbol: class CircleBuilder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[125,13] method does not override or implement a method from a supertype
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[124,22] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[137,29] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[138,34] cannot find symbol
[ERROR]   symbol:   class CircleBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[143,34] cannot find symbol
[ERROR]   symbol:   class SquareBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[150,55] cannot find symbol
[ERROR]   symbol:   class TypedVisitor
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[150,68] cannot find symbol
[ERROR]   symbol:   class CircleBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[152,31] cannot find symbol
[ERROR]   symbol: class CircleBuilder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[151,13] method does not override or implement a method from a supertype
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[150,22] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[163,29] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[164,34] cannot find symbol
[ERROR]   symbol:   class CircleBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[169,34] cannot find symbol
[ERROR]   symbol:   class SquareBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[178,22] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[180,55] cannot find symbol
[ERROR]   symbol:   class Visitor
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[180,63] cannot find symbol
[ERROR]   symbol:   class CircleBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[182,31] cannot find symbol
[ERROR]   symbol: class CircleBuilder
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[181,13] method does not override or implement a method from a supertype
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[180,22] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[194,29] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[212,29] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[235,9] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[235,37] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[252,29] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[278,37] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[ERROR] /home/rohaan/work/repos/sundrio-jdk11-failuretest/shapes/src/test/java/io/sundr/examples/shapes/ShapesTest.java:[293,13] cannot find symbol
[ERROR]   symbol:   class CanvasBuilder
[ERROR]   location: class io.sundr.examples.shapes.ShapesTest
[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/MojoFailureException

Not sure whether it's some misconfiguration on my side or some issue in sundrio

@rohanKanojia
Copy link
Contributor Author

I think it's somehow related to JDK9 rather than just sundrio. I also see similar issues on lombok too: projectlombok/lombok#1723 . Need to check how they resolved these issues.

@manusa
Copy link
Collaborator

manusa commented Apr 3, 2020

@rohanKanojia
Copy link
Contributor Author

let me try this with sundrio also

@rohanKanojia
Copy link
Contributor Author

I tried with the compiler options you provided. I was able to compile kubernetes-model module with this. But unfortunately, I got another exception while building kubernetes-client, I don't see much information about it on internet either. My module-info classes can be found in this pull request: fabric8io/kubernetes-client#2110

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project kubernetes-client: Fatal error compiling: java.lang.annotation.IncompleteAnnotationException: io.sundr.codegen.annotations.ResourceSelector missing element value -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project kubernetes-client: Fatal error compiling
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:567)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error compiling
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1145)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:187)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:567)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.codehaus.plexus.compiler.CompilerException: java.lang.annotation.IncompleteAnnotationException: io.sundr.codegen.annotations.ResourceSelector missing element value
    at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess (JavaxToolsCompiler.java:173)
    at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile (JavacCompiler.java:174)
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1134)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:187)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:567)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.RuntimeException: java.lang.annotation.IncompleteAnnotationException: io.sundr.codegen.annotations.ResourceSelector missing element value
    at com.sun.tools.javac.api.JavacTaskImpl.handleExceptions (JavacTaskImpl.java:163)
    at com.sun.tools.javac.api.JavacTaskImpl.doCall (JavacTaskImpl.java:100)
    at com.sun.tools.javac.api.JavacTaskImpl.call (JavacTaskImpl.java:94)
    at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess (JavaxToolsCompiler.java:126)
    at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile (JavacCompiler.java:174)
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1134)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:187)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:567)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.annotation.IncompleteAnnotationException: io.sundr.codegen.annotations.ResourceSelector missing element value
    at sun.reflect.annotation.AnnotationInvocationHandler.invoke (AnnotationInvocationHandler.java:83)
    at com.sun.proxy.$Proxy40.value (Unknown Source)
    at io.sundr.transform.internal.VelocityTransformationProcessor.selectFromResource (VelocityTransformationProcessor.java:137)
    at io.sundr.transform.internal.VelocityTransformationProcessor.process (VelocityTransformationProcessor.java:107)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor (JavacProcessingEnvironment.java:1023)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs (JavacProcessingEnvironment.java:939)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run (JavacProcessingEnvironment.java:1267)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing (JavacProcessingEnvironment.java:1381)
    at com.sun.tools.javac.main.JavaCompiler.processAnnotations (JavaCompiler.java:1263)
    at com.sun.tools.javac.main.JavaCompiler.compile (JavaCompiler.java:935)
    at com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0 (JavacTaskImpl.java:104)
    at com.sun.tools.javac.api.JavacTaskImpl.handleExceptions (JavacTaskImpl.java:147)
    at com.sun.tools.javac.api.JavacTaskImpl.doCall (JavacTaskImpl.java:100)
    at com.sun.tools.javac.api.JavacTaskImpl.call (JavacTaskImpl.java:94)
    at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess (JavaxToolsCompiler.java:126)
    at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile (JavacCompiler.java:174)
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1134)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:187)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:567)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR] 
[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
~/go/src/github.com/fabric8io/kubernetes-client/kubernetes-client : $ 

@manusa
Copy link
Collaborator

manusa commented Apr 8, 2020

I'm working on a combined fix/PoC in both sundr.io and FKC, check progress here:
fabric8io/kubernetes-client#2110 (comment)

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

3 participants