1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| <plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-java2ws-plugin</artifactId>
<version>3.1.0</version>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-simple</artifactId>
<version>3.1.0</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>generate-wsdl</id>
<phase>process-classes</phase>
<configuration>
<!-- argline -->
<!-- Use the option -createxsdimports to generate separate xsd files
for types definition -->
<argline>-address http://localhost:8081/developpez/service</argline>
<!-- Attach the generated wsdl file to the list of files to be deployed
on install. This means the wsdl file will be copied to the repository with
groupId, artifactId and version of the project and type "wsdl".
With this option you can use the maven repository as a Service Repository. -->
<attachWsdl>true</attachWsdl>
<className>com.developpez.hugo.ws.services.ProfileResource</className>
<!-- See here for options <a href="http://cxf.apache.org/docs/java-to-ws.html" target="_blank">http://cxf.apache.org/docs/java-to-ws.html</a> -->
<databinding>jaxb</databinding>
<frontend>jaxws</frontend>
<genClient>false</genClient>
<genServer>false</genServer>
<genWrapperbean>false</genWrapperbean>
<genWsdl>true</genWsdl>
<quiet>false</quiet>
<verbose>true</verbose>
</configuration>
<goals>
<goal>java2ws</goal>
</goals>
</execution>
</executions>
</plugin> |
Partager