mojohaus / jaxb2-maven-plugin

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

Fixes #123. Support out-of-tree maven builds. #168

Closed tomaswolf closed 7 months ago

tomaswolf commented 3 years ago

Don't try to shorten paths to xsd sources. XCJ is called directly, not via the command-line, so doing so doesn't really help. Not trying to shorten these paths also avoids stripping a leading '/', which would otherwise make XCJ treat the path as relative and resolve to the current directory, which breaks out-of-tree builds.

Adds an integration test that creates a maven project in the system tmp directory, runs a maven build there, and verifies that that maven build was successful and did generate something.

slachiewicz commented 2 years ago

It's already fixed in 3.1.0 - I'll reuse the integration test. thx!