cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-4951) cxf-codegen-plugin wsdlArtifact ignores classifier
Date Tue, 09 Apr 2013 02:35:13 GMT

     [ 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

Mime
View raw message