You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sebastian Paul (JIRA)" <ji...@apache.org> on 2013/04/30 13:50:16 UTC

[jira] [Commented] (CXF-4907) cxf-codegen-plugin does not work inside Eclipse with wsdlArtifact option

    [ https://issues.apache.org/jira/browse/CXF-4907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645500#comment-13645500 ] 

Sebastian Paul commented on CXF-4907:
-------------------------------------

Hi, I have the same issue. I am a bit surprised that this issue is closed. Disabling m2e's workspace resolution is no option, as this slows down development. Without workspace resolution, I have to perform install each time when I want to see changes across projects.
An I don't think that this is an m2e issue, as the error message obviously comes from the cxf-codegen-plugin plugin.

In Eclipse's Maven console, I see a message like this:
30.04.13 13:39:32 MESZ: [WARN] ==============Processing xyz dependencies ===============
30.04.13 13:39:32 MESZ: [INFO] Apparent Maven bug: wsdl artifact 'resolved' to D:\workspace\xyz-webservice\target\classes for org.example:xyz-webservice:wsdl:1.0-SNAPSHOT

It seems that workspace resolution actually works.
After googleing a bit, I found out that the log message comes from CXF's AbstractCodegenMoho.

However, I still see the pom error 
No wsdl available for base URI file:/D:/workspace/xyz-war/ (org.apache.cxf:cxf-codegen-plugin:2.7.4:wsdl2java:generate-sources:generate-sources)

So, please reopen and fix this issue.

Kind regards, Sebastian
                
> cxf-codegen-plugin does not work inside Eclipse with wsdlArtifact option
> ------------------------------------------------------------------------
>
>                 Key: CXF-4907
>                 URL: https://issues.apache.org/jira/browse/CXF-4907
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.7.3
>         Environment: Eclipse Juno
>            Reporter: Jerome Revillard
>
> This kind of configuration raise an error inside Eclipse:
> <plugin>
>   <groupId>org.apache.cxf</groupId>
>   <artifactId>cxf-codegen-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>generate-sources</id>
>       <phase>generate-sources</phase>
>       <configuration>
>         <wsdlOptions>
>           <wsdlOption>
>             <wsdlArtifact>
>               <groupId>XXXX</groupId>
>               <artifactId>YYYYY</artifactId>
>               <version>2.1.1-SNAPSHOT</version>
>             </wsdlArtifact>
>           </wsdlOption>
>         </wsdlOptions>
>       </configuration>
>       <goals>
>         <goal>wsdl2java</goal>
>       </goals>
>     </execution>
>   </executions>
> </plugin>
> The error raised is:
> No wsdl available for base URI file:/mypath/ (org.apache.cxf:cxf-codegen-plugin:2.7.3:wsdl2java:generate-sources:generate-sources)
> Best,
> Jerome

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira