Bonjour à tous,
J'ai suivi l'excellent tutoriel fourni par Hugo pour générer un WSDL en utilisant un plugin Maven :
http://hugo.developpez.com/tutoriels...eb-avec-maven/
Sur mon poste, je n'ai sans doute pas une configuration adaptée.
Par contre, sur mon poste, j'ai une configuration sans doute qui me pose problème.
En effet, quand je rajoute dans le pom.xml de mon projet, le code suivant, à l'endroit où les plugins sont ajoutés :
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
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>
J'obtiens l'erreur suivante :
Plugin execution not covered by lifecycle configuration :
org.apache.cxf:cxf-java2ws-plugin:3.1.0:java2ws
(execution: generate-wsdl, phase: process-classes).
J'ai essayé de voir sur le Net des solutions, mais, cela n'a fait que donner de nouvelles erreurs que je ne comprenais pas.
D'avance Merci pour votre aide,
Thomas
Partager