From: Gustavo Martin Morcuende Date: Tue, 15 Dec 2015 02:07:25 +0000 (+0100) Subject: jaxb2: trying to use catalago. It is not working yet because plugin keeps downloading... X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=8cfd1fc6c59e687ba90a0db6aaade0e40027da08;p=SpringWebServicesForFun%2F.git jaxb2: trying to use catalago. It is not working yet because plugin keeps downloading remote parent.xsd :( --- diff --git a/jaxb2/web-services-spring-jaxb2-server/pom.xml b/jaxb2/web-services-spring-jaxb2-server/pom.xml index b12472a..41425c7 100644 --- a/jaxb2/web-services-spring-jaxb2-server/pom.xml +++ b/jaxb2/web-services-spring-jaxb2-server/pom.xml @@ -13,15 +13,10 @@ 9.3.0.RC0 - - ${basedir}/src/main/build-resources/catalogs - - src/main/resources/schemas ${project.build.directory}/generated-sources/src/main/java de.spring.webservices.auto src/main/build-resources/bindings - @@ -146,8 +141,14 @@ - true + strict validation of schemas. + + The plugin is configured to use catalogs and strict mode at the + same time. Using catalogs to resolve schema URIs in strict mode is known + to be problematic and may fail. Please refer to the following link for more + information: https://github.com/highsource/maven-jaxb2-plugin/wiki/Catalogs-in-Strict-Mode + Consider setting false in your plugin configuration. --> + false true @@ -168,6 +169,29 @@ 1.0.2 + + + + + + false + src/main/build-resources/catalogs/catalog.cat + + + de.spring.webservices + web-services-spring-jaxb2-globalxsds + + diff --git a/jaxb2/web-services-spring-jaxb2-server/src/main/build-resources/bindings/custombinding.xjb b/jaxb2/web-services-spring-jaxb2-server/src/main/build-resources/bindings/custombinding.xjb index a1430d5..1363870 100644 --- a/jaxb2/web-services-spring-jaxb2-server/src/main/build-resources/bindings/custombinding.xjb +++ b/jaxb2/web-services-spring-jaxb2-server/src/main/build-resources/bindings/custombinding.xjb @@ -22,7 +22,7 @@ --> - + de.spring.webservices.operations.Request @java.lang.SuppressWarnings({"unchecked","rawtypes"}) @@ -30,7 +30,7 @@ - + de.spring.webservices.operations.Response @java.lang.SuppressWarnings({"unchecked","rawtypes"}) diff --git a/jaxb2/web-services-spring-jaxb2-server/src/main/build-resources/catalogs/catalog.cat b/jaxb2/web-services-spring-jaxb2-server/src/main/build-resources/catalogs/catalog.cat index 4bc1c66..44885d9 100644 --- a/jaxb2/web-services-spring-jaxb2-server/src/main/build-resources/catalogs/catalog.cat +++ b/jaxb2/web-services-spring-jaxb2-server/src/main/build-resources/catalogs/catalog.cat @@ -1,38 +1,12 @@ - - - - - - - - - - - - - - - - - - - diff --git a/jaxb2/web-services-spring-jaxb2-server/src/main/resources/spring-configuration/ws/soap-ws.xml b/jaxb2/web-services-spring-jaxb2-server/src/main/resources/spring-configuration/ws/soap-ws.xml index afabf4e..5f2293f 100644 --- a/jaxb2/web-services-spring-jaxb2-server/src/main/resources/spring-configuration/ws/soap-ws.xml +++ b/jaxb2/web-services-spring-jaxb2-server/src/main/resources/spring-configuration/ws/soap-ws.xml @@ -30,7 +30,22 @@ Searches for @PayloadRoot --> - + + + + + +