cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1465860 - in /cxf/branches/2.6.x-fixes: ./ maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/ systests/wsdl_maven/codegen/ systests/wsdl_maven/jav...
Date Tue, 09 Apr 2013 02:07:55 GMT
Author: ffang
Date: Tue Apr  9 02:07:55 2013
New Revision: 1465860

URL: http://svn.apache.org/r1465860
Log:
Merged revisions 1465859 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/branches/2.7.x-fixes

................
  r1465859 | ffang | 2013-04-09 10:02:20 +0800 (二, 09  4 2013) | 9 lines
  
  Merged revisions 1465636 via svnmerge from 
  https://svn.apache.org/repos/asf/cxf/trunk
  
  ........
    r1465636 | ffang | 2013-04-08 21:51:05 +0800 (一, 08  4 2013) | 1 line
    
    [CXF-4951]cxf-codegen-plugin wsdlArtifact ignores classifier|add classifier for cxf-java2ws-plugin
used to publish wsdl
  ........
................

Modified:
    cxf/branches/2.6.x-fixes/   (props changed)
    cxf/branches/2.6.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
    cxf/branches/2.6.x-fixes/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
    cxf/branches/2.6.x-fixes/systests/wsdl_maven/codegen/pom.xml
    cxf/branches/2.6.x-fixes/systests/wsdl_maven/java2ws/pom.xml

Propchange: cxf/branches/2.6.x-fixes/
------------------------------------------------------------------------------
  Merged /cxf/branches/2.7.x-fixes:r1465859
  Merged /cxf/trunk:r1465636

Propchange: cxf/branches/2.6.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.6.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java?rev=1465860&r1=1465859&r2=1465860&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
(original)
+++ cxf/branches/2.6.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
Tue Apr  9 02:07:55 2013
@@ -734,9 +734,11 @@ public abstract class AbstractCodegenMoh
             if (wsdlA == null) {
                 continue;
             }
-            Artifact wsdlArtifact = artifactFactory.createBuildArtifact(wsdlA.getGroupId(),
+            Artifact wsdlArtifact = artifactFactory.createArtifactWithClassifier(wsdlA.getGroupId(),
                                                                         wsdlA.getArtifactId(),
-                                                                        wsdlA.getVersion(),
wsdlA.getType());
+                                                                        wsdlA.getVersion(),

+                                                                        wsdlA.getType(),
+                                                                        wsdlA.getClassifier());
             wsdlArtifact = resolveRemoteWsdlArtifact(wsdlArtifact);
             if (wsdlArtifact != null) {
                 File supposedFile = wsdlArtifact.getFile();

Modified: cxf/branches/2.6.x-fixes/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java?rev=1465860&r1=1465859&r2=1465860&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
(original)
+++ cxf/branches/2.6.x-fixes/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
Tue Apr  9 02:07:55 2013
@@ -92,6 +92,12 @@ public class Java2WSMojo extends Abstrac
      * @parameter
      */
     private String address;
+    
+    
+    /**
+     * @parameter
+     */
+    private String classifier;
 
     /**
      * @parameter  expression="${project.compileClasspathElements}"
@@ -427,7 +433,12 @@ public class Java2WSMojo extends Abstrac
         if (attachWsdl && outputFile != null) {
             File wsdlFile = new File(outputFile);
             if (wsdlFile.exists()) {
-                projectHelper.attachArtifact(project, "wsdl", wsdlFile);
+                if (classifier != null) {
+                    projectHelper.attachArtifact(project, "wsdl", classifier, wsdlFile);
+                } else {
+                    projectHelper.attachArtifact(project, "wsdl", wsdlFile);
+                }
+                
             }
         }
     }

Modified: cxf/branches/2.6.x-fixes/systests/wsdl_maven/codegen/pom.xml
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/systests/wsdl_maven/codegen/pom.xml?rev=1465860&r1=1465859&r2=1465860&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/systests/wsdl_maven/codegen/pom.xml (original)
+++ cxf/branches/2.6.x-fixes/systests/wsdl_maven/codegen/pom.xml Tue Apr  9 02:07:55 2013
@@ -76,6 +76,31 @@
                             <fork>${cxf.codegenplugin.forkmode}</fork>
                         </configuration>
                     </execution>
+                    <execution>
+                        <id>process-sources</id>
+                        <phase>process-sources</phase>
+                        <goals>
+                            <goal>wsdl2java</goal>
+                        </goals>
+                        <configuration>
+                            <wsdlOptions>
+                                <wsdlOption>
+                                    <wsdlArtifact>
+                                        <groupId>org.apache.cxf.systests.wsdl_maven</groupId>
+                                        <artifactId>cxf-systests-java2ws</artifactId>
+                                        <version>${project.version}</version>
+                                        <classifier>test</classifier>
+                                    </wsdlArtifact>
+                                </wsdlOption>
+                            </wsdlOptions>
+                            <fork>${cxf.codegenplugin.forkmode}</fork>
+                            <defaultOptions>
+                                <markGenerated>true</markGenerated>
+                                <asyncMethods />
+                            </defaultOptions>
+                        </configuration>
+                    </execution>
+
                 </executions>
             </plugin>
             <!--
@@ -115,6 +140,7 @@
             <groupId>org.apache.cxf.systests.wsdl_maven</groupId>
             <artifactId>cxf-systests-java2ws</artifactId>
             <version>${project.version}</version>
+            <classifier>test</classifier>
             <type>wsdl</type>
         </dependency>
         <dependency>

Modified: cxf/branches/2.6.x-fixes/systests/wsdl_maven/java2ws/pom.xml
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/systests/wsdl_maven/java2ws/pom.xml?rev=1465860&r1=1465859&r2=1465860&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/systests/wsdl_maven/java2ws/pom.xml (original)
+++ cxf/branches/2.6.x-fixes/systests/wsdl_maven/java2ws/pom.xml Tue Apr  9 02:07:55 2013
@@ -56,12 +56,14 @@
 							<className>org.apache.cxf.systests.java2ws.HelloWorld</className>
 							<genWsdl>true</genWsdl>
 							<verbose>true</verbose>
+                                                        <classifier>test</classifier>
 							<attachWsdl>true</attachWsdl>
 						</configuration>
 						<goals>
 							<goal>java2ws</goal>
 						</goals>
 					</execution>
+
 				</executions>
 			</plugin>
         </plugins>



Mime
View raw message