Mojo's Castor Maven Plugin
  1. Mojo's Castor Maven Plugin
  2. MCASTOR-34

Fails in reactor mode: XSD paths resolved from reactor top project and not module project

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.5, 2.0
    • Fix Version/s: 2.5
    • Component/s: Core MOJOs
    • Labels:
      None
    • Number of attachments :
      1

      Description

      Created a reactor pom.xml:

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>org.sonatype.mavenbook.multi</groupId>
      <artifactId>simple-parent</artifactId>
      <packaging>pom</packaging>
      <version>1.0</version>
      <name>Multi Chapter Simple Parent Project</name>
      <modules>
      <module>xsd-xml</module>
      </modules>
      </project>

      mvn clean compile fails:

      [INFO] Processing C:\data\dev\java\xsd\src\main\resources\schema.xsd
      [INFO] XML Schema file "C:\data\dev\java\xsd\src\main\resources\schema.xsd" not found.
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------

        Activity

        Hide
        Werner Guttmann added a comment -

        Feel free to reopen and attach a fully (non-)working project to highlight the issue at hand.

        Show
        Werner Guttmann added a comment - Feel free to reopen and attach a fully (non-)working project to highlight the issue at hand.
        Hide
        Werner Guttmann added a comment -

        Francois, can you please attach the complete project ?

        Show
        Werner Guttmann added a comment - Francois, can you please attach the complete project ?
        Hide
        Francois Loison added a comment -

        Fixed GenerateMojo.java, see patch.

        Show
        Francois Loison added a comment - Fixed GenerateMojo.java, see patch.

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Francois Loison
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: