Skip to content

FileNotFoundException when sources are relatively referenced outside maven project #131

@kotelnik

Description

@kotelnik

Plugin fails to generate java from XSD when source is specified e.g. like this:
<source>${basedir}/../../xsd-sources/source.xsd</source>

In first "phase" it finds the source so it is handed over to the xjc driver but then this driver prepends a working directory to the resolved absolute path. So from resolved path:
/home/username/xsd-sources/source.xsd
...it becomes:
/home/username/projects/xsd-project/home/username/xsd-sources/source.xsd
...which of course does not exist.

This worked nicely with plugin version 1.6 that I use for now. Anyway, thanks for this plugin! :-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions