Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jaxb2-maven-plugin incorrect path on macOS #153

Open
bergert opened this issue Nov 8, 2019 · 1 comment
Open

jaxb2-maven-plugin incorrect path on macOS #153

bergert opened this issue Nov 8, 2019 · 1 comment

Comments

@bergert
Copy link

bergert commented Nov 8, 2019

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants