highsource / highsource/jaxb-tools
schemaDirectory/schemaIncludes don't seem to work as expected
- Dominant language
- Java
- Stars
- 465
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
I have an existing Java project that uses JAXB 2.x that I am trying to move to JAXB 3.0 and as such, have modified the project to use the org.jvnet.jaxb:jaxb-maven-plugin:3.0.2 plugin's generate goal.
The schemas are located in subdirectories under src/main/resources. For example:
```
src/main/resources/com/mycompany/package1/package1.xsd
src/main/resources/com/mycompany/package2/package2.xsd
src/main/resources/com/mycompany/package3/package3.xsd
```
I have tried all sorts of values for `schemaDirectory` and `schemaIncludes` and nothing seems to work since I get this message from running the build:
```
[INFO] --- jaxb:3.0.2:generate (generate-package1-classes) @ comdev ---
[WARNING] No schemas to compile. Skipping XJC execution.
```
My plugin declaration is pretty simple so I do not understand why this isn't working:
```xml
org.jvnet.jaxb
jaxb-maven-plugin
3.0.2
generate-package1-classes
generate
3.0
src/main/resources/jaxb-episode.xsl
src/main/resources/com/mycompany/package1
package1.xsd
```
If I place all of my schema in `src/main/resources` directly and remove the `schemaDirectory` and `schemaIncludes`, the plugin finds the schemas and is able to compile them.
Contributor guide
Assessment
This issue has not been assessed yet.