-
Notifications
You must be signed in to change notification settings - Fork 99
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
SimpleToString plugin exists, but cannot be activated/used? #432
Comments
Hi @soc Did you add jaxb2-basics (or the new name, depending which version of the plugin you use) in jaxb-maven-plugin configuration ? The jar containing the XJC plugins is splitted from the one containing the maven-plugin itself. Laurent |
@laurentschoelens Yes. All other plugins work fine, even the related ones like I had a short look at the code if there was a hint it was disabled, but didn't see anything, therefore my question. Here is the list of plugins I'm using, adding |
From what I've seen the plugin had never been declared in the https://github.com/highsource/jaxb-tools/blob/master/jaxb-plugins-parent/jaxb-plugins/src/main/resources/META-INF/services/com.sun.tools.xjc.Plugin file where it is clearly missing, and from initial repo too 🤔 I'd suggest not using it for the moment and if this plugin is viable, we'll add it to the list |
Alexey was adding the 3 "simple" / reflection free plugins (equals / hashCode / toString) but he ended up removing Simpletostring from the file mentionned above. So I would say, yes it's intentionnal not to be activated. |
@laurentschoelens Thanks for digging into this! I was interested in the |
@laurentschoelens we take an approach of copying the locator along side the generated classes to give a runtime dependency-free solution for the boiler plate toString. I think we could copy in the locator strategy class just like ObjectFactory and package-info. I think runtime Dependency-free approach should be the default at some point as well. |
My guess is we first need to look at existing but not active plugin to see what had been done by Alexey and then make it works or start from something new for this simpleToString xjc plugin. |
Ok, thanks that answers my questions! |
From what I've seen, the SimpleToString plugin is just a copy of the ToString plugin, so it depend on jaxb-plugins-runtime... |
It seems the code is here, but specifying
<arg>-XsimpleToString</arg>
reports:Is this intentional?
The text was updated successfully, but these errors were encountered: