You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Yonatan Graber (JIRA)" <ji...@apache.org> on 2013/04/08 13:05:15 UTC
[jira] [Created] (CXF-4951) cxf-codegen-plugin wsdlArtifact ignores
classifier
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