This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new f30f3ce  [CXF-6324]cxf-java2ws-plugin:ensure can attach multiple wsdl 
with different classifier
f30f3ce is described below

commit f30f3ce149fede81622fdb86fb4f5cee6a751230
Author: Freeman Fang <freeman.f...@gmail.com>
AuthorDate: Tue Apr 10 15:45:29 2018 +0800

    [CXF-6324]cxf-java2ws-plugin:ensure can attach multiple wsdl with different 
classifier
---
 .../src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java    | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git 
a/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
 
b/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
index fca5084..acd8189 100644
--- 
a/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
+++ 
b/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
@@ -465,14 +465,10 @@ public class Java2WSMojo extends AbstractMojo {
         if (attachWsdl && outputFile != null) {
             File wsdlFile = new File(outputFile);
             if (wsdlFile.exists()) {
-                if (classifier != null) {
-                    projectHelper.attachArtifact(project, wsdlFile.getName(), 
classifier, wsdlFile);
-                } else {
-                    projectHelper.attachArtifact(project, wsdlFile.getName(), 
wsdlFile);
-                }
+                
                 boolean hasWsdlAttached = false;
                 for (Artifact a : project.getAttachedArtifacts()) {
-                    if ("wsdl".equals(a.getType())) {
+                    if ("wsdl".equals(a.getType()) && 
classifier.equals(a.getClassifier())) {
                         hasWsdlAttached = true;
                     }
                 }

-- 
To stop receiving notification emails like this one, please contact
ff...@apache.org.

Reply via email to