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

Jannik Adam commented on CXF-4907:
----------------------------------

Hi,

I run into this issue today and did a little research on it.
 I stumbled over this line in the m2e logfile:
{noformat}
2020-02-22 00:02:13,741 [Worker-123: Building workspace] INFO  
o.e.m.c.i.embedder.EclipseLogger - Apparent Maven bug: wsdl artifact 'resolved' 
to <project root>\target\classes for <wsdl group id>:<wsdl artifact 
id>:<wsdlname>:<wsdl version>
{noformat}
Looks to me that Eclipse refuses to resolve artifacts of the type 'wsdl' 
beveling it to be a maven bug.

As a workaround: use the 'copy' goal of the maven-dependency-plugin to copy the 
wsdl into the target directory and then use that copy with the codegen plugin.

Workaround testet in Eclipse  2019-09 R (4.13.0) Build 20190917-1200

> 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
>          Components: Tooling
>    Affects Versions: 2.7.3
>         Environment: Eclipse Juno
>            Reporter: Jerome Revillard
>            Priority: Major
>
> 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 was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to