highsource / highsource/jaxb-tools

Plugin is not aware of maven toolchains plugin

Open
#82 1 comment 0 reactions 1 assignee Claimed by @highsource View on GitHub
enhancement
Dominant language
Java
Stars
465
Forks
105
PR merge metrics
No merged PRs in 30d

Description

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 `2.1` 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.