From f9082469c18656483751ad17fdd0b27b5ef1df1f Mon Sep 17 00:00:00 2001 From: atokle Date: Thu, 29 Jun 2017 19:14:01 +0200 Subject: [PATCH] CXF-7067: New test for "Failed to resolve WSDL artifact" bug --- .../src/it/cxf-7067/cxf7067-codegen/pom.xml | 54 ++++++++++++ .../Cxf7067Service-1.0.0.wsdl | 82 +++++++++++++++++++ .../MavenDeployCommand.txt | 5 ++ 3 files changed, 141 insertions(+) create mode 100644 maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-codegen/pom.xml create mode 100644 maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-wsdl-artifact/Cxf7067Service-1.0.0.wsdl create mode 100644 maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-wsdl-artifact/MavenDeployCommand.txt diff --git a/maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-codegen/pom.xml b/maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-codegen/pom.xml new file mode 100644 index 00000000000..9a465ddd35e --- /dev/null +++ b/maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-codegen/pom.xml @@ -0,0 +1,54 @@ + + 4.0.0 + + org.apache.cxf + cxf7067-codegen + 1.0.0-SNAPSHOT + jar + cxf7067-codegen + + + org.apache.cxf.cxf7067 + Cxf7067Service + 1.0.0 + + + + + + org.apache.cxf + cxf-codegen-plugin + + 3.1.9 + + + generate-sources + generate-sources + + always + -Djavax.xml.accessExternalSchema=all + + + + ${wsdl.groupid} + ${wsdl.artifactid} + ${wsdl.version} + + classpath:${wsdl.artifactid}.wsdl + + -verbose + -validate + + + + + + wsdl2java + + + + + + + + diff --git a/maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-wsdl-artifact/Cxf7067Service-1.0.0.wsdl b/maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-wsdl-artifact/Cxf7067Service-1.0.0.wsdl new file mode 100644 index 00000000000..be67055278b --- /dev/null +++ b/maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-wsdl-artifact/Cxf7067Service-1.0.0.wsdl @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-wsdl-artifact/MavenDeployCommand.txt b/maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-wsdl-artifact/MavenDeployCommand.txt new file mode 100644 index 00000000000..36628989ce8 --- /dev/null +++ b/maven-plugins/codegen-plugin/src/it/cxf-7067/cxf7067-wsdl-artifact/MavenDeployCommand.txt @@ -0,0 +1,5 @@ +Install it on local repo +mvn install:install-file -Dfile=Cxf7067Service-1.0.0.wsdl -DgroupId=org.apache.cxf.cxf7067 -DartifactId=Cxf7067Service -Dversion=1.0.0 -Dpackaging=wsdl + +Deploy it on remote repo (fix repositoryId and url) +mvn deploy:deploy-file -Dfile=Cxf7067Service-1.0.0.wsdl -DgroupId=org.apache.cxf.cxf7067 -DartifactId=Cxf7067Service -Dversion=1.0.0 -Dpackaging=wsdl -DrepositoryId=nexus -Durl=http://hostname:port/nexus/content/repositories/thirdparty/ \ No newline at end of file