Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.1
-
None
-
None
-
Unknown
Description
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>
Attachments
Issue Links
- relates to
-
CXF-3964 Codegen plugin tries to use classes dir as wsdl
- Closed