mojohaus / jaxb2-maven-plugin

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

jaxb2-maven-plugin incorrect path on macOS #153

Open bergert opened 4 years ago

bergert commented 4 years ago

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

org.codehaus.mojo jaxb2-maven-plugin 2.5.0 xjc-schema_auto_update xjc schema/datasets.xsd src-gen
kaszuster commented 3 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.