[
https://jira.codehaus.org/browse/MJAXB-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=280701#comment-280701
]
Paul Cahill commented on MJAXB-51:
----------------------------------
We use Thought Works Go Pipeline product to automate our build process.
It updates it's local build with changes to SVN repository then rebuilds using
"mvn clean install"
The project configuration containing the jaxb2-maven-plugin is:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaDirectory>${basedir}/src/main/resources/xsd</schemaDirectory>
<packageName>au.com.imowa.wems.jaxb</packageName>
</configuration>
</plugin>
I changed 1 of the schema files by adding some new complex types.
the target directory was removed by the mvn clean however jaxb failed to
recognise that the schema had changed and did not re-generate the jaxb classes.
Why can't the jaxb plugin detect the updated schema file and generate jaxb
classes to cover the changes.
> Stale detection does not see that one more schema file has been added to build
> ------------------------------------------------------------------------------
>
> Key: MJAXB-51
> URL: https://jira.codehaus.org/browse/MJAXB-51
> Project: Maven 2.x JAXB 2.1 Plugin
> Issue Type: Bug
> Affects Versions: 1.3.1
> Environment: MacOS 10.7.1
> Maven 3.0.3 in Eclipse 3.7/m2eclipse 1.0.0
> Reporter: Anders Hammar
> Priority: Minor
>
> I have a build with one schema specified through schemaFiles, which generates
> classes through the xjc mojo. Although I then add one more schema to
> schemaFiles, those classes are not generated but "No changes detected ..." is
> reported.
> Apparently the stale detection fails to see that one more schema has been
> added.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email