You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using maven 3.3.9 and java 8 and configured the maven toolchains plugin in my project to compile the project using the jdk 6 toolchain.
In this configuration I had this error when compiling the generated sources:
cannot find symbol
[ERROR] symbol : method required()
[ERROR] location: @interface javax.xml.bind.annotation.XmlElementRef
I added <specVersion>2.1</specVersion> to the jaxb2 plugin configuration and it worked.
I think it would be good if the specVersion took into account the version of the target toolchain so there wouldn't be another place to configure when using the toolchains plugin.
Of course this would only be valid if the user hadn't specified a specVersion. If the user specifies a version then it should take precedence and issue a warning if it is incompatible.
The text was updated successfully, but these errors were encountered:
I was using maven 3.3.9 and java 8 and configured the maven toolchains plugin in my project to compile the project using the jdk 6 toolchain.
In this configuration I had this error when compiling the generated sources:
I added
<specVersion>2.1</specVersion>
to the jaxb2 plugin configuration and it worked.I think it would be good if the specVersion took into account the version of the target toolchain so there wouldn't be another place to configure when using the toolchains plugin.
Of course this would only be valid if the user hadn't specified a specVersion. If the user specifies a version then it should take precedence and issue a warning if it is incompatible.
The text was updated successfully, but these errors were encountered: