-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Labels
Description
I spent a long time attempting to resolve a bindings file from another project via classpath: and maven: resolver syntax in the but was not successful. I ensured I had the dependent project listed as both a project and plugin dependency, and I confirmed that the xjb file was where I expected it in the dependent jar. Is this simply not supported or am I doing something wrong?
As a brief summary, this is what I tried:
- Project groupA:artifactA has datetime.xjb in src/main/resources which puts it in the root of the jar
- Project groupA:artifactB has the following pom configuration:
<dependencies>
<dependency>
<groupId>groupA</groupId>
<artifactId>groupB</artifactId>
<version>1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin</artifactId>
<version>4.0.10</version>
<configuration>
<schemaIncludes>
<schemaIncludes>schema.xsd</schemaIncludes>
</schemaIncludes>
<bindingIncludes>
<include>maven:groupA:groupB!/datetime.xjb</include>
</bindingIncludes>
</configuration>
<dependencies>
<dependency>
<groupId>groupA</groupId>
<artifactId>groupB</artifactId>
<version>1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
Similarly, I tried <include>classpath:datetime.xjb</include>
to no avail.