IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Maven Java Discussion :

cherche plugin pour gener un wsdl


Sujet :

Maven Java

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Avril 2010
    Messages
    14
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 14
    Points : 12
    Points
    12
    Par défaut cherche plugin pour gener un wsdl
    Bonjour à tous.

    Je travail à partir du site officiel cxf apache et j'ai vu que l'on peut générer un wsdl à partir d'un service, je souhaite faire ça.

    Pour cela il me faut le plugin mais je ne sais pas quel plugin est le meilleur.

    Pour info j'utilise maven donc c'est dans mon POM que je vais spécifier le plugin.

    Je vous remercie de votre aide.

  2. #2
    Membre éprouvé Avatar de anisj1m
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juillet 2006
    Messages
    1 067
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juillet 2006
    Messages : 1 067
    Points : 955
    Points
    955
    Par défaut
    tu peux essayé netbeans c'est géniale dans le jax-ws

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Avril 2010
    Messages
    14
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 14
    Points : 12
    Points
    12
    Par défaut
    Je te remercie de ton aide.

    Au niveau de mon pom j'ai rajouté le plugin.

    Voici un extrait de mon pom:

    Code : 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
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
     
    <dependency>
    			<groupId>com.sun.xml.ws</groupId>
    			<artifactId>jaxws-rt</artifactId>
    			<version>2.1</version>
    		</dependency>
     
     
    		<!-- Jetty is needed if you're are not using the CXFServlet -->
    		<dependency>
    			<groupId>org.apache.cxf</groupId>
    			<artifactId>cxf-rt-transports-http-jetty</artifactId>
    			<version>${cxf.version}</version>
    		</dependency>
    	</dependencies>
     
    <build>
    		<finalName>spring-mvc-webapp</finalName>
    		<plugins>
    			<plugin>
    				<artifactId>maven-compiler-plugin</artifactId>
    				<configuration>
    					<source>1.5</source>
    					<target>1.5</target>
    				</configuration>
    			</plugin>
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>jaxws-maven-plugin</artifactId>
    				<executions>
    					<execution>
    						<goals>
    							<goal>wsimport</goal>
    						</goals>
    					</execution>
    				</executions>
    				<configuration>
    					<packageName>demo.spring</packageName> <!-- The name of your generated source package -->
    				</configuration>
    			</plugin>
    			<plugin>
    				<groupId>org.mortbay.jetty</groupId>
    				<artifactId>maven-jetty-plugin</artifactId>
    				<version>6.0.1</version>
    				<configuration>
    					<scanIntervalSeconds>10</scanIntervalSeconds>
    					<connectors>
    						<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
    							<port>8080</port>
    						</connector>
    					</connectors>
    					<systemProperties>
    						<systemProperty>
    							<name>file.encoding</name>
    							<value>UTF-8</value>
    						</systemProperty>
    					</systemProperties>
    				</configuration>
    			</plugin>
    			<plugin>
    				<groupId>org.apache.cxf</groupId>
    				<artifactId>cxf-codegen-plugin</artifactId>
    				<version>${cxf.version}</version>
    			</plugin>
    		</plugins>
    	</build>
    Mais lorsque je tape mvn clean install, j'obtiens:
    [INFO] Failed to resolve artifact.

    Missing:
    ----------
    1) com.sun.xml.ws:jaxws-rt:jar:2.1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=com.sun.xml.ws -DartifactId=jaxws-rt -D
    version=2.1 -Dpackaging=jar -Dfile=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:

    mvn deploy:deploy-file -DgroupId=com.sun.xml.ws -DartifactId=jaxws-rt -Dve
    rsion=2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) com.netapsys.springmvc:spring-mvc-webapp:war:1.0-SNAPSHOT
    2) com.sun.xml.ws:jaxws-rt:jar:2.1

    ----------
    1 required artifact is missing.

    for artifact:
    com.netapsys.springmvc:spring-mvc-webapp:war:1.0-SNAPSHOT

    from the specified remote repositories:
    central (http://repo1.maven.org/maven2)


    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 8 seconds
    [INFO] Finished at: Mon Apr 05 13:54:57 CEST 2010
    [INFO] Final Memory: 12M/23M
    [INFO] ------------------------------------------------------------------------
    Merci de votre aide

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [Maven] Ajout d'un plugin pour générer un WSDL
    Par thomasToulouse dans le forum Maven
    Réponses: 7
    Dernier message: 11/06/2015, 20h50
  2. Cherche plugin pour modifer Requête HTTP
    Par grifx dans le forum Internet
    Réponses: 0
    Dernier message: 05/04/2012, 16h09
  3. Cherche infos pour me clarifier WSDL
    Par pcouas dans le forum Services Web
    Réponses: 0
    Dernier message: 06/04/2011, 06h54
  4. Cherche plugin pour projet J2EE
    Par smutmutant2003 dans le forum Eclipse Platform
    Réponses: 7
    Dernier message: 28/08/2007, 23h12

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo