You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "John Williams (JIRA)" <ji...@apache.org> on 2008/02/29 01:33:51 UTC

[jira] Created: (CXF-1457) cxf-codegen-plugin misinterprets relative paths in pom.xml

cxf-codegen-plugin misinterprets relative paths in pom.xml
----------------------------------------------------------

                 Key: CXF-1457
                 URL: https://issues.apache.org/jira/browse/CXF-1457
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.0.3
         Environment: Maven version: 2.0.7
Java version: 1.5.0_12
OS name: "linux" version: "2.6.9-1.681_fc3smp" arch: "i386"

            Reporter: John Williams
            Priority: Minor


When the codegen plugin is given a relative path to a WSDL file, it interprets the path relative to the current directory rather than the directory that contains the POM file.  The result is that the plugin will work correctly if Maven is invoked from the directory where the POM file is, but it will fail otherwise.  This causes problems in multi-module projects.  The problem can be worked around by adding "${basedir}/" to the WSDL path.  The POM fragment below demonstrates the problem:

      <plugin>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-codegen-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>wsdl2java</goal>
            </goals>
            <configuration>
              <wsdlOptions>
                <wsdlOption>
                  <!-- This relative path causes the problem! -->
                  <wsdl>target/wsdl/foo.wsdl</wsdl>
                </wsdlOption>
              </wsdlOptions>
            </configuration>
          </execution>
        </executions>
      </plugin>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.