Author: bimargulies Date: Wed Jan 4 00:58:25 2012 New Revision: 1227009 URL: http://svn.apache.org/viewvc?rev=1227009&view=rev Log: Set up the maven-invoker-plugin to run codegen tests.
Added: cxf/trunk/systests/wsdl_maven/codegen/src/it/ cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/ cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/pom.xml (with props) cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/ cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/ cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/ cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/ cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/CustomerService.wsdl (with props) cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/binding.xml (with props) cxf/trunk/systests/wsdl_maven/codegen/src/it/it-parent/ cxf/trunk/systests/wsdl_maven/codegen/src/it/it-parent/pom.xml (with props) cxf/trunk/systests/wsdl_maven/codegen/src/it/settings.xml (with props) Modified: cxf/trunk/systests/wsdl_maven/codegen/pom.xml Modified: cxf/trunk/systests/wsdl_maven/codegen/pom.xml URL: http://svn.apache.org/viewvc/cxf/trunk/systests/wsdl_maven/codegen/pom.xml?rev=1227009&r1=1227008&r2=1227009&view=diff ============================================================================== --- cxf/trunk/systests/wsdl_maven/codegen/pom.xml (original) +++ cxf/trunk/systests/wsdl_maven/codegen/pom.xml Wed Jan 4 00:58:25 2012 @@ -78,6 +78,32 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-invoker-plugin</artifactId> + <version>1.5</version> + <configuration> + <projectsDirectory>src/it</projectsDirectory> + <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> + <preBuildHookScript>setup</preBuildHookScript> + <postBuildHookScript>verify</postBuildHookScript> + <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> + <settingsFile>src/it/settings.xml</settingsFile> + <pomIncludes> + <pomInclude>*/pom.xml</pomInclude> + </pomIncludes> + </configuration> + <executions> + <execution> + <id>integration-test</id> + <goals> + <goal>install</goal> + <goal>integration-test</goal> + <goal>verify</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> Added: cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/pom.xml URL: http://svn.apache.org/viewvc/cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/pom.xml?rev=1227009&view=auto ============================================================================== --- cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/pom.xml (added) +++ cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/pom.xml Wed Jan 4 00:58:25 2012 @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.cxf</groupId> + <artifactId>codegen-it-parent</artifactId> + <version>1-SNAPSHOT</version> + <relativePath>../it-parent/pom.xml</relativePath> + </parent> + <artifactId>cxf-4004-it</artifactId> + + <build> + <plugins> + <plugin> + <groupId>org.apache.cxf</groupId> + <artifactId>cxf-codegen-plugin</artifactId> + <dependencies> + <dependency> + <groupId>org.apache.cxf.xjcplugins</groupId> + <artifactId>cxf-xjc-ts</artifactId> + <version>2.4.0</version> + </dependency> + <dependency> + <groupId>net.java.dev.jaxb2-commons</groupId> + <artifactId>jaxb-fluent-api</artifactId> + <version>2.1.8</version> + </dependency> + </dependencies> + <configuration> + <defaultOptions> + <packagenames> + <packagename>http://edb.com/ws/WSCommon_v21=com.edb.finance.common.cxf.utils.generated</packagename> + <packagename>http://ping.monapp.finance.edb.com=com.edb.finance.common.cxf.utils.generated.monapp.ping</packagename> + <packagename>http://ping.ws.monapp.finance.edb.com=com.edb.finance.common.cxf.utils.generated.monapp.ws.ping</packagename> + </packagenames> + <validateWsdl>true</validateWsdl> + <extraargs> + <extraarg>-xjc-Xfluent-api</extraarg> + </extraargs> + <bindingFiles> + <bindingFile>${basedir}/src/main/resources/wsdl/binding.xml</bindingFile> + </bindingFiles> + </defaultOptions> + </configuration> + <executions> + <execution> + <goals> + <goal>wsdl2java</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>org.apache.cxf</groupId> + <artifactId>cxf-rt-frontend-jaxws</artifactId> + <version>${cxf.version}</version> + </dependency> + <dependency> + <groupId>org.apache.cxf</groupId> + <artifactId>cxf-rt-transports-http</artifactId> + <version>${cxf.version}</version> + </dependency> + </dependencies> +</project> + + \ No newline at end of file Propchange: cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/pom.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/CustomerService.wsdl URL: http://svn.apache.org/viewvc/cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/CustomerService.wsdl?rev=1227009&view=auto ============================================================================== --- cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/CustomerService.wsdl (added) +++ cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/CustomerService.wsdl Wed Jan 4 00:58:25 2012 @@ -0,0 +1,124 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<wsdl:definitions name="CustomerServiceService" targetNamespace="http://customerservice.example.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://customerservice.example.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> + <wsdl:types> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://customerservice.example.com/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://customerservice.example.com/"> +<xs:element name="getCustomersByName" type="tns:getCustomersByName"/> +<xs:element name="getCustomersByNameResponse" type="tns:getCustomersByNameResponse"/> +<xs:element name="updateCustomer" type="tns:updateCustomer"/> +<xs:complexType name="updateCustomer"> +<xs:sequence> +<xs:element minOccurs="0" name="customer" type="tns:customer"/> +</xs:sequence> +</xs:complexType> +<xs:complexType name="customer"> +<xs:sequence> +<xs:element name="customerId" type="xs:int"/> +<xs:element minOccurs="0" name="name" type="xs:string"/> +<xs:element maxOccurs="unbounded" minOccurs="0" name="address" nillable="true" type="xs:string"/> +<xs:element minOccurs="0" name="numOrders" type="xs:int"/> +<xs:element name="revenue" type="xs:double"/> +<xs:element minOccurs="0" name="test" type="xs:decimal"/> +<xs:element minOccurs="0" name="birthDate" type="xs:date"/> +<xs:element minOccurs="0" name="type" type="tns:customerType"/> +</xs:sequence> +</xs:complexType> +<xs:complexType name="getCustomersByName"> +<xs:sequence> +<xs:element minOccurs="0" name="name" type="xs:string"/> +</xs:sequence> +</xs:complexType> +<xs:complexType name="getCustomersByNameResponse"> +<xs:sequence> +<xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:customer"/> +</xs:sequence> +</xs:complexType> +<xs:simpleType name="customerType"> +<xs:restriction base="xs:string"> +<xs:enumeration value="PRIVATE"/> +<xs:enumeration value="BUSINESS"/> +</xs:restriction> +</xs:simpleType> +<xs:element name="NoSuchCustomer" type="tns:NoSuchCustomer"/> +<xs:complexType name="NoSuchCustomer"> +<xs:sequence> +<xs:element name="customerName" nillable="true" type="xs:string"/> +</xs:sequence> +</xs:complexType> +</xs:schema> + </wsdl:types> + <wsdl:message name="getCustomersByNameResponse"> + <wsdl:part name="parameters" element="tns:getCustomersByNameResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getCustomersByName"> + <wsdl:part name="parameters" element="tns:getCustomersByName"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="updateCustomer"> + <wsdl:part name="parameters" element="tns:updateCustomer"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="NoSuchCustomerException"> + <wsdl:part name="NoSuchCustomerException" element="tns:NoSuchCustomer"> + </wsdl:part> + </wsdl:message> + <wsdl:portType name="CustomerService"> + <wsdl:operation name="updateCustomer"> + <wsdl:input name="updateCustomer" message="tns:updateCustomer"> + </wsdl:input> + </wsdl:operation> + <wsdl:operation name="getCustomersByName"> + <wsdl:input name="getCustomersByName" message="tns:getCustomersByName"> + </wsdl:input> + <wsdl:output name="getCustomersByNameResponse" message="tns:getCustomersByNameResponse"> + </wsdl:output> + <wsdl:fault name="NoSuchCustomerException" message="tns:NoSuchCustomerException"> + </wsdl:fault> + </wsdl:operation> + </wsdl:portType> + <wsdl:binding name="CustomerServiceServiceSoapBinding" type="tns:CustomerService"> + <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> + <wsdl:operation name="updateCustomer"> + <soap:operation soapAction="" style="document"/> + <wsdl:input name="updateCustomer"> + <soap:body use="literal"/> + </wsdl:input> + </wsdl:operation> + <wsdl:operation name="getCustomersByName"> + <soap:operation soapAction="" style="document"/> + <wsdl:input name="getCustomersByName"> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:output name="getCustomersByNameResponse"> + <soap:body use="literal"/> + </wsdl:output> + <wsdl:fault name="NoSuchCustomerException"> + <soap:fault name="NoSuchCustomerException" use="literal"/> + </wsdl:fault> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="CustomerServiceService"> + <wsdl:port name="CustomerServicePort" binding="tns:CustomerServiceServiceSoapBinding"> + <soap:address location="http://localhost:9090/CustomerServicePort"/> + <!--soap:address location="http://localhost:8080/wsdl_first-{CXFVersion}/services/CustomerServicePort?wsdl"/--> + </wsdl:port> + </wsdl:service> +</wsdl:definitions> Propchange: cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/CustomerService.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/CustomerService.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/binding.xml URL: http://svn.apache.org/viewvc/cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/binding.xml?rev=1227009&view=auto ============================================================================== --- cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/binding.xml (added) +++ cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/binding.xml Wed Jan 4 00:58:25 2012 @@ -0,0 +1,17 @@ +<jaxws:bindings wsdlLocation="CustomerService.wsdl" + xmlns:jaxws="http://java.sun.com/xml/ns/jaxws" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:jxb="http://java.sun.com/xml/ns/jaxb" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + <!-- <jaxws:enableAsyncMapping>true</jaxws:enableAsyncMapping> --> + <jaxws:bindings node="wsdl:definitions/wsdl:types/xs:schema"> + <jxb:globalBindings> + <jxb:javaType name="java.util.Date" xmlType="xs:dateTime" + parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDateTime" + printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDateTime"/> + <jxb:javaType name="java.util.Date" xmlType="xs:date" + parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDate" + printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDate"/> + </jxb:globalBindings> + </jaxws:bindings> +</jaxws:bindings> \ No newline at end of file Propchange: cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/binding.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: cxf/trunk/systests/wsdl_maven/codegen/src/it/cxf-4004/src/main/resources/wsdl/binding.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: cxf/trunk/systests/wsdl_maven/codegen/src/it/it-parent/pom.xml URL: http://svn.apache.org/viewvc/cxf/trunk/systests/wsdl_maven/codegen/src/it/it-parent/pom.xml?rev=1227009&view=auto ============================================================================== --- cxf/trunk/systests/wsdl_maven/codegen/src/it/it-parent/pom.xml (added) +++ cxf/trunk/systests/wsdl_maven/codegen/src/it/it-parent/pom.xml Wed Jan 4 00:58:25 2012 @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>org.apache.cxf</groupId> + <artifactId>codegen-it-parent</artifactId> + <version>1-SNAPSHOT</version> + <packaging>pom</packaging> + <properties> + <cxf.version>@project.version@</cxf.version> + </properties> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.cxf</groupId> + <artifactId>cxf-codegen-plugin</artifactId> + <version>@project.version@</version> + </plugin> + </plugins> + </pluginManagement> + </build> +</project> Propchange: cxf/trunk/systests/wsdl_maven/codegen/src/it/it-parent/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: cxf/trunk/systests/wsdl_maven/codegen/src/it/it-parent/pom.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: cxf/trunk/systests/wsdl_maven/codegen/src/it/settings.xml URL: http://svn.apache.org/viewvc/cxf/trunk/systests/wsdl_maven/codegen/src/it/settings.xml?rev=1227009&view=auto ============================================================================== --- cxf/trunk/systests/wsdl_maven/codegen/src/it/settings.xml (added) +++ cxf/trunk/systests/wsdl_maven/codegen/src/it/settings.xml Wed Jan 4 00:58:25 2012 @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<settings> + <profiles> + <profile> + <id>it-repo</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <repositories> + <repository> + <id>local.central</id> + <url>@localRepositoryUrl@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>local.central</id> + <url>@localRepositoryUrl@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </pluginRepository> + </pluginRepositories> + </profile> + </profiles> +</settings> Propchange: cxf/trunk/systests/wsdl_maven/codegen/src/it/settings.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: cxf/trunk/systests/wsdl_maven/codegen/src/it/settings.xml ------------------------------------------------------------------------------ svn:mime-type = text/plain