cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonatan Graber (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-4951) cxf-codegen-plugin wsdlArtifact ignores classifier
Date Mon, 08 Apr 2013 11:05:15 GMT
Yonatan Graber created CXF-4951:
-----------------------------------

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


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