Open bergert opened 4 years ago
Same error when i call maven while i am not in the modules directory, that is using the plugin:
/home/.../Parent/module1 <- got the jaxb2-maven-plugin
/home/.../Parent/module2 <- currently working here
calling mvn -f /home/.../Parent/module1/pom.xml ...
results in the same error as @bergertom reported. Also using Version 2.5.0.
My Eclipse-RCP project is built using maven tycho. I have just updated everything to latest version: tycho 1.5, and jaxb2-maven-plugin 2.5.0. On Windows, the build works correctly.
On macOS the build works correctly, when I build a single plugin pom only. On macOS the build fails, when I build the whole project (called releng), including the plugin.
The error is quite obvious, because the path to the XSD is not correct: /Users/bergert/BitBucket/fishstatj47/releng/org.fao.fi.fishstat.releng/Users/bergert/BitBucket/fishstatj47/fsj/org.fao.fi.fishstat.core/schema/datasets.xsd It uses the full releng path (wrong), running the build and and appends the (correct) plugin path where the XSD is located /Users/bergert/BitBucket/fishstatj47/fsj/org.fao.fi.fishstat.core/schema/datasets.xsd thus creating an illegal path on macOS
This is a bug introduced with 2.5.0; when I revert to 2.3.1 build works for both plugin and releng builds.
I would hope, this can be fixed, so I can update to 2.5.0.
Thank you. Exception_log.txt