cxf-codegen-plugin doesn't generate any code code when the wsdl parameter is an 
url
-----------------------------------------------------------------------------------

                 Key: CXF-4029
                 URL: https://issues.apache.org/jira/browse/CXF-4029
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.5.1
            Reporter: Sven Rienstra


The maven cxf-codegen-plugin doesn't generate any code when the wsdl parameter 
is an url. This bug seems to be introduced in 2.5.1, 2.5.0 is working ok.

Output in 2.5.1 (Nothing is generated):
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building example
[INFO]    task-segment: [generate-sources]
[INFO] ------------------------------------------------------------------------
[INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
[INFO] Nothing to generate
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Jan 13 14:12:34 CET 2012
[INFO] Final Memory: 19M/169M
[INFO] --------------------------------------------------------------------

Output in 2.5.0 (code is generated ok):
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building example
[INFO]    task-segment: [generate-sources]
[INFO] ------------------------------------------------------------------------
[INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Fri Jan 13 14:15:14 CET 2012
[INFO] Final Memory: 26M/171M
[INFO] -------------------------------------------------------------------

Pom:
<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/xsd/maven-4.0.0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.example</groupId>
        <artifactId>cxf</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <packaging>jar</packaging>
        <name>example</name>

        <build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.cxf</groupId>
                                <artifactId>cxf-codegen-plugin</artifactId>
                                <version>2.5.1</version>
                                <executions>
                                        <execution>
                                                <id>generate-sources</id>
                                                <phase>generate-sources</phase>
                                                <configuration>
                                                        
<sourceRoot>${basedir}/src/main/generated/</sourceRoot>
                                                        <wsdlOptions>
                                                                <wsdlOption>
                                                                        
<wsdl>http://www.webservicex.net/CurrencyConvertor.asmx?WSDL</wsdl>
                                                                </wsdlOption>
                                                        </wsdlOptions>
                                                </configuration>
                                                <goals>
                                                        <goal>wsdl2java</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>
</project>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to