cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject [cxf] branch master updated: [CXF-7924]cxf-java2ws-plugin: Only one WSDL is generated and deployed per artifact.
Date Mon, 17 Dec 2018 09:44:05 GMT
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 9597cfb  [CXF-7924]cxf-java2ws-plugin: Only one WSDL is generated and deployed per
artifact.
9597cfb is described below

commit 9597cfb0fe57b55cffd6569efd98c69108e7befe
Author: Freeman Fang <freeman.fang@gmail.com>
AuthorDate: Mon Dec 17 17:43:48 2018 +0800

    [CXF-7924]cxf-java2ws-plugin: Only one WSDL is generated and deployed per artifact.
---
 .../src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java       | 5 +++--
 1 file changed, 3 insertions(+), 2 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 84b7f02..5bca631 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
@@ -510,6 +510,7 @@ public class Java2WSMojo extends AbstractMojo {
             File wsdlFile = new File(outputFile);
             if (wsdlFile.exists()) {
                 
+                
                 boolean hasWsdlAttached = false;
                 for (Artifact a : project.getAttachedArtifacts()) {
                     if ("wsdl".equals(a.getType()) && classifier != null &&
classifier.equals(a.getClassifier())) {
@@ -518,9 +519,9 @@ public class Java2WSMojo extends AbstractMojo {
                 }
                 if (!hasWsdlAttached) {
                     if (classifier != null) {
-                        projectHelper.attachArtifact(project, "wsdl", classifier, wsdlFile);
+                        projectHelper.attachArtifact(project, wsdlFile.getName(), classifier,
wsdlFile);
                     } else {
-                        projectHelper.attachArtifact(project, "wsdl", wsdlFile);
+                        projectHelper.attachArtifact(project, wsdlFile.getName(), wsdlFile);
                     }
                 }
             }


Mime
View raw message