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

[jira] [Resolved] (CXF-4951) cxf-codegen-plugin wsdlArtifact ignores classifier

     [ https://issues.apache.org/jira/browse/CXF-4951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved CXF-4951.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.5
                   2.6.8
                   2.5.11
                   2.8.0

commit fix
http://svn.apache.org/r1465636 for trunk
http://svn.apache.org/r1465859 for 2.7.x branch
http://svn.apache.org/r1465860 for 2.6.x branch
http://svn.apache.org/r1465864 for 2.5.x branch
                
> cxf-codegen-plugin wsdlArtifact ignores classifier
> --------------------------------------------------
>
>                 Key: CXF-4951
>                 URL: https://issues.apache.org/jira/browse/CXF-4951
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.7.4
>            Reporter: Yonatan Graber
>            Assignee: Freeman Fang
>              Labels: maven
>             Fix For: 2.8.0, 2.5.11, 2.6.8, 2.7.5
>
>
> When specifying a wsdlArtifact element with classifier defined in wsdlOption, the plugin ignores the classifier and tries to download the unclassified artifact. 
> For example, with this plugin defined:
> {noformat}
> <plugin>
>  <groupId>org.apache.cxf</groupId>
>  <artifactId>cxf-codegen-plugin</artifactId>
>  <version>2.7.4</version>
>  <executions>
>   <execution>
>    <id>process-sources</id>
>    <phase>process-sources</phase>
>    <configuration>
>     <wsdlOptions>
>      <wsdlOption>
>       <wsdlArtifact>
>        <groupId>org.group</groupId>
>        <artifactId>artifact</artifactId>
>        <version>1.0.0</version>
>        <classifier>actionService</classifier>
>       </wsdlArtifact>
>       <extraargs>
>        <extraarg>-p</extraarg>
>        <extraarg>org.app.services.action</extraarg>
>       </extraargs>
>      </wsdlOption>
>     </wsdlOptions>
>    </configuration>
>    <goals>
>     <goal>wsdl2java</goal>
>    </goals>
>   </execution>
>  </executions>
> </plugin>
> {noformat}
> it will try to resolve {{org.group:artifact:wsdl:1.0.0}} instead of {{org.group:artifact:wsdl:actionService:1.0.0}}.
> Notice that if the repo has {{artifact-1.0.0.wsld}} installed in it, it will succeed, otherwise it will fail.
> Looks that if in:
> {{org.apache.cxf.maven_plugin.AbstractCodegenMoho.downloadRemoteWsdls()}}
> you would use
> {{artifactFactory.createArtifactWithClassifier(groupId, artifactId, version, type, classifier)}}
> instead of
> {{artifactFactory.createBuildArtifact(groupId, artifactId, version, type)}}
> the issue would be resolved.

--
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