jaxb2: right maven plugin configuration for generating code from WSDL
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sat, 19 Dec 2015 23:28:57 +0000 (00:28 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sat, 19 Dec 2015 23:28:57 +0000 (00:28 +0100)
jaxb2/web-services-spring-jaxb2-client/pom.xml

index 11163e7..5636401 100644 (file)
                                </executions>
                                <configuration>
                                        <!-- REQUIRED FOR USING THIS PLUGIN WITH WSDL FILES!!!!! -->
-                                       <wsdl>true</wsdl>
-                               <xmlschema>false</xmlschema>
-                               <schemaFiles>${project.xsd.schemas.source.path</schemaFiles>
+                    <schemaDirectory>${project.xsd.schemas.source.path}</schemaDirectory>
+                    <schemaIncludes>
+                        <include>*.wsdl</include>
+                    </schemaIncludes>
                                
-                                       <!-- DOESN'T WORK FOR WSDL FILES!!!! 
-                                               Specifies the schema directory, src/main/resources by default. 
-                                       <schemaDirectory>${project.xsd.schemas.source.path}</schemaDirectory>
-                                       -->
-
 
                                        <!--
                                                GRANDES DIFERENCIAS: