Replies: 1 comment 1 reply
-
Hi @k-wall 👋 ! Do you want to take a stab at it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our application we use CRD -> Java POJO.
In my CRD i have a field
protocol
which is defined like this:java-generator-maven-plugin
is creating aProtocol
enum as a inner class of class called ClusterIP. The same protocol object will appear elsewhere in the CRD model for the application. I don't want several definitions of the Protocol enum. I'd like to get the generator use the same definition.I tried an
existingJavaTypes
but it is ignored.I debugged the java-generator-maven-plugin and I see that io.fabric8.java.generator.nodes.JEnum#generateJava doesn't even consider the possibility that the type might have been defined as an existingJavaTypes.
Am I missing something? I'm inexperienced with java-generator-maven-plugin so I could be on the wrong track.
Beta Was this translation helpful? Give feedback.
All reactions