jaxb2: maven-jaxb2-plugin, schemaLanguage option
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 20 Dec 2015 03:20:53 +0000 (04:20 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 20 Dec 2015 03:20:53 +0000 (04:20 +0100)
jaxb2/web-services-spring-jaxb2-client/pom.xml
jaxb2/web-services-spring-jaxb2-server/pom.xml

index 5636401..0fd3ae4 100644 (file)
@@ -95,6 +95,7 @@
                                </executions>
                                <configuration>
                                        <!-- REQUIRED FOR USING THIS PLUGIN WITH WSDL FILES!!!!! -->
+                                       <schemaLanguage>WSDL</schemaLanguage>
                     <schemaDirectory>${project.xsd.schemas.source.path}</schemaDirectory>
                     <schemaIncludes>
                         <include>*.wsdl</include>
                                                </plugin>
                                        </plugins>
 
+                                       <!--  Avoids the annoying SCD "x-schema::tns" didn't match any schema component errors. -->
+                                       <addIfExistsToEpisodeSchemaBindings>true</addIfExistsToEpisodeSchemaBindings>
 
                                        <!--
                                                GRAN DIFERENCIA:
index e53bf45..6f44f97 100644 (file)
                                        </execution>
                                </executions>
                                <configuration>
+                                       <schemaLanguage>XMLSCHEMA</schemaLanguage>
+                                       
                                        <!-- Specifies the schema directory, src/main/resources by default. -->
                                        <schemaDirectory>${project.xsd.schemas.source.path}</schemaDirectory>
 
                                                </plugin>
                                        </plugins>
 
-
+                                       <!--  Avoids the annoying SCD "x-schema::tns" didn't match any schema component errors. -->
+                                       <addIfExistsToEpisodeSchemaBindings>true</addIfExistsToEpisodeSchemaBindings>
+                                       
                                        <!--
                                                GRAN DIFERENCIA: