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

Plugin is not aware of maven toolchains plugin #82

Open
jmsoliveira opened this issue Jan 12, 2016 · 1 comment
Open

Plugin is not aware of maven toolchains plugin #82

jmsoliveira opened this issue Jan 12, 2016 · 1 comment
Assignees

Comments

@jmsoliveira
Copy link

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.

@highsource highsource added this to the 0.13.x milestone Jan 14, 2016
@highsource highsource self-assigned this Jan 14, 2016
@highsource
Copy link
Owner

Would you please PR a test project with a toolset configured?

https://github.com/highsource/maven-jaxb2-plugin/tree/master/tests/gh-issue-82

Take the po project as basis, for instance.

jmsoliveira added a commit to jmsoliveira/maven-jaxb2-plugin that referenced this issue Feb 8, 2016
@highsource highsource modified the milestones: 0.13.x, 0.13.y Nov 12, 2017
@highsource highsource removed this from the 0.13.x milestone May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants