Skip to content

Plugin is not aware of maven toolchains plugin #82

@jmsoliveira

Description

@jmsoliveira

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions