Skip to content

BindingIncludes doesn't appear to support classpath: or maven: resolvers #650

@josephhusby

Description

@josephhusby

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:

  1. Project groupA:artifactA has datetime.xjb in src/main/resources which puts it in the root of the jar
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions