[ https://issues.apache.org/jira/browse/CXF-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610591#action_12610591 ]
Dave Leatherdale commented on CXF-1457: --------------------------------------- Do you know which revisions fixed this problem. I'm having the same issue with binding files specified as relative paths. > 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 > Assignee: Daniel Kulp > Priority: Minor > Fix For: 2.1.1, 2.0.7 > > > 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.