mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
106 stars 77 forks source link

generateDirectory configuration property #101

Closed gonzalocalvo91 closed 6 years ago

gonzalocalvo91 commented 6 years ago

Hello, I executed the plugin with pointing to one of my folders. Then I removed the property and it kept creating the sources in the directory I was pointing at before. The problem was solved including the property again with the value "${project.basedir}/src/main/java". My guess is the value is being kept after removing the property instead of reverting to the default one.

Cheers.

lennartj commented 6 years ago

I don't quite understand the case here.

What property are you referring to? A property within the maven project or a property within the jaxb2 maven plugin (i.e. source property)?

gonzalocalvo91 commented 6 years ago

The property "generateDirectory" from the jaxb2 plugin.

lennartj commented 6 years ago

There is no supported property named generateDirectory. Please refer to the documentation page below for supported properties within the plugin.

http://www.mojohaus.org/jaxb2-maven-plugin/Documentation/v2.4/plugin-info.html

gonzalocalvo91 commented 6 years ago

It exists, and it works (but not properly) and you can see it referenced here:

https://github.com/highsource/maven-jaxb2-plugin/wiki/Configuration-Cheat-Sheet

lennartj commented 6 years ago

That link is to the Highsource JAXB2 Maven plugin. This codebase is the JAXB2-Maven-Plugin from Mojohaus - which is another JAXB2 plugin.

I would recommend taking the Mojohaus plugin for a spin. Please refer to the documentation link I provided above.