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

Add ability to use episode files from dependencies #234

Open
onacit opened this issue Nov 20, 2022 · 0 comments
Open

Add ability to use episode files from dependencies #234

onacit opened this issue Nov 20, 2022 · 0 comments

Comments

@onacit
Copy link

onacit commented Nov 20, 2022

Apologies for this question-like issue.

I have a module A for tns1 with generated episode file in it.

When some of module B's schemas <import/>s the tns1 and depends on the module A, I couldn't find the way to tell jaxb2-maven-plugin to use the episode file resides in the A artifact.

I tried with the following configuration and it didn't work.

<dependencies>
    <artifactId>A</artifactId>
</dependencies>

<build>
  <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jaxb2-maven-plugin</artifactId>
        <version>2.5.0</version>
        <executions>
          <execution>
            <id>xjc</id>
            <goals>
              <goal>xjc</goal>
            </goals>
            <phase>generate-sources</phase> <!-- default -->
            <configuration>
              <enableIntrospection>true</enableIntrospection>
              <episodeFileName>${automatic.module.name}-episode.xjb</episodeFileName>
              <xjbSources>
                <xjbSource>com.github.jinahya.org.w3.xmldsig.core1.bind-episode.xjb</xjbSource> <!-- resides in the A module -->
              </xjbSources>
            </configuration>
          </execution>
        </executions>
      </plugin>    
  </plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant