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 :

Fichier de configuration Maven "settings.xml" manquant


Sujet :

Maven Java

  1. #21
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    Tu as raison et c'est ce que je constate depuis, je suis en train de voir comment éradiquer ce problème.

  2. #22
    Expert éminent

    Avatar de denisC
    Profil pro
    Développeur Java
    Inscrit en
    Février 2005
    Messages
    4 050
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : Canada

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : Service public

    Informations forums :
    Inscription : Février 2005
    Messages : 4 050
    Points : 7 641
    Points
    7 641
    Par défaut
    Sur un réseau corporatif (si tu es bien chez FT), il va typiquement y avoir un proxy, par lequel toutes les requetes internet doivent passer.

    Tu dois configurer ce proxy dans ton settings : http://maven.apache.org/guides/mini/guide-proxies.html

  3. #23
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    Merci pour ce coup de pouce, en effet j'ai créé un fichier settings.xml dans le dossier .m2 de maven et j'y ai mis ce contenu :
    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
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                          http://maven.apache.org/xsd/settings-1.0.0.xsd">
      <proxies>
       <proxy>
          <active>true</active>
          <protocol>http</protocol>
          <host>p-goodway</host>
          <port>3128</port>
          <username/>
          <password/>
          <nonProxyHosts/>
        </proxy>
      </proxies>
    </settings>

    Ensuite j'ai exécuté l'opération clean qui s'est bien déroulée sauf que l'opération install a échoué, voici le détail avec erreur de son exécution :
    [INFO] Reactor Summary:
    [INFO]
    [INFO] WSAG4J: Web Service Agreement for Java ............ SUCCESS [49.058s]
    [INFO] WSAG4J: XML-Types ................................. SUCCESS [3.026s]
    [INFO] WSAG4J: WS-Addressing XML-Types ................... SUCCESS [22.086s]
    [INFO] WSAG4J: WS-Agreement XML-Types .................... SUCCESS [40.080s]
    [INFO] WSAG4J: Common XML Types .......................... SUCCESS [16.520s]
    [INFO] WSAG4J: JSDL XML-Types ............................ SUCCESS [33.900s]
    [INFO] WSAG4J: Server Resources .......................... SUCCESS [7.999s]
    [INFO] WSAG4J: API ....................................... SUCCESS [6.989s]
    [INFO] WSAG4J: Pattern ................................... SUCCESS [7.129s]
    [INFO] WSAG4J: Server .................................... SUCCESS [3:24.226s]
    [INFO] WSAG4J: Samples ................................... SUCCESS [4.421s]
    [INFO] WSAG4J: Client Resources .......................... SUCCESS [0.709s]
    [INFO] WSAG4J: Integration Tests ......................... SUCCESS [3.382s]
    [INFO] WSAG4J: REST Remote Stack ......................... SUCCESS [0.189s]
    [INFO] WSAG4J: REST API .................................. SUCCESS [2.662s]
    [INFO] WSAG4J: REST Client ............................... SUCCESS [5.264s]
    [INFO] WSAG4J: RESTful Service Implementation ............ SUCCESS [3.435s]
    [INFO] WSAG4J: RESTful Agreement Factory Webapp .......... FAILURE [1:12.569s]
    [INFO] WSAG4J: Rest Distribution ......................... SKIPPED
    [INFO] WSAG4J: Deprecated WSRF Remote Stack .............. SKIPPED
    [INFO] WSAG4J: WSRF Client Implementation ................ SKIPPED
    [INFO] WSAG4J: WSRF-Stack Integration .................... SKIPPED
    [INFO] WSAG4J: WSRF Agreement Factory Webapp ............. SKIPPED
    [INFO] WSAG4J: WSRF Distribution ......................... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 8:05.118s
    [INFO] Finished at: Wed Jun 19 10:38:05 CEST 2013
    [INFO] Final Memory: 26M/491M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start (start-container) on project wsag4j-rest-webapp: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start failed: Failed to download [http://archive.apache.org/dist/tomca...t-5.5.30.zip]: java.net.ConnectException: Connection timed out: connect -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start (start-container) on project wsag4j-rest-webapp: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start failed: Failed to download [http://archive.apache.org/dist/tomca...at-5.5.30.zip]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    Caused by: org.apache.maven.plugin.PluginExecutionException: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start failed: Failed to download [http://archive.apache.org/dist/tomca...at-5.5.30.zip]
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
    Caused by: org.codehaus.cargo.container.ContainerException: Failed to download [http://archive.apache.org/dist/tomca...at-5.5.30.zip]
    at org.codehaus.cargo.container.installer.ZipURLInstaller.download(ZipURLInstaller.java:329)
    at org.codehaus.cargo.container.installer.ZipURLInstaller.install(ZipURLInstaller.java:148)
    at org.codehaus.cargo.maven2.configuration.Container.setupHome(Container.java:360)
    at org.codehaus.cargo.maven2.configuration.Container.createContainer(Container.java:241)
    at org.codehaus.cargo.maven2.AbstractCargoMojo.createNewContainer(AbstractCargoMojo.java:470)
    at org.codehaus.cargo.maven2.AbstractCargoMojo.createContainer(AbstractCargoMojo.java:410)
    at org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(ContainerStartMojo.java:53)
    at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:268)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    ... 20 more
    Caused by: in cargo code: java.net.ConnectException: Connection timed out: connect
    at org.apache.tools.ant.taskdefs.Get.execute(Get.java:82)
    at org.codehaus.cargo.container.installer.ZipURLInstaller.doDownload(ZipURLInstaller.java:362)
    at org.codehaus.cargo.container.installer.ZipURLInstaller.download(ZipURLInstaller.java:310)
    ... 28 more
    Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
    at java.net.Socket.connect(Socket.java:579)
    at java.net.Socket.connect(Socket.java:528)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    at sun.net.http://www.http.HttpClient.openServe...lient.java:378)
    at sun.net.http://www.http.HttpClient.openServe...lient.java:473)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
    at sun.net.www.http.HttpClient.New(HttpClient.java:290)
    at sun.net.www.http.HttpClient.New(HttpClient.java:306)
    at sun.net.http://www.protocol.http.HttpURLConn...ction.java:995)
    at sun.net.http://www.protocol.http.HttpURLConn...ction.java:931)
    at sun.net.http://www.protocol.http.HttpURLConn...ction.java:849)
    at org.apache.tools.ant.taskdefs.Get.doGet(Get.java:145)
    at org.apache.tools.ant.taskdefs.Get.execute(Get.java:78)
    ... 30 more
    [ERROR]
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...utionException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :wsag4j-rest-webapp

  4. #24
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    J'ai configuré tous les proxys possibles de FT dans le settings.xml mais j'obtiens curieusement toujours les mêmes messages d'erreur que précédemment dans la console. C'est très curieux que les premiers accès web passent mais celui de génère un timed out connection.

    De plus pour en avoir un peu plus l'esprit clair j'ai créé un projet java dans lequel j'ai ouvert une connexion vers un site web simple comme google.fr et après exécution j'ai obtenu le message "connection timed out", j'ai exécuté le même script sur mon réseau de domicile et cela a marché. J'ai conclu que je suis bloqué par des pare-feux de FT, peut être que je me trompe mais je me base sur les résultats de tests effectués sur des réseaux différents.

  5. #25
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

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

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    le problème, c'est que le zip n'est pas téléchargé par maven directement, mais par le plugin cargo. Vérifie dans la configuration du plugin, on peut préciser le proxy. Quoi que, normalement, ce plugin est censé utiliser par défaut le proxy de maven.

  6. #26
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    Je suis allé dans la configuration du plugin et j'ai juste modifié la valeur du port comme suit:
    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
    <configuration>
    						<type>standalone</type>
    						<home>${project.build.directory}/apache-tomcat</home>
     
    						<properties>
    							<cargo.servlet.port>3128</cargo.servlet.port>
    							<cargo.logging>high</cargo.logging>
    						</properties>
     
    						<deployables>
    							<deployable>
    								<groupId>net.sf.wsag4j.rest</groupId>
    								<artifactId>wsag4j-rest-webapp</artifactId>
    								<type>war</type>
    								<properties>
    									<context>/wsag4j</context>
    								</properties>
    							</deployable>
    						</deployables>
    					</configuration>
    Mais la même erreur apparaît à l'exécution. Y a t-il un moyen de configurer le proxy complet c'est-à-dire host + port dans cette section et avec quelle balise car je ne maîtrise pas vraiment la structure d'un fichier pom.xml ?

  7. #27
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

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

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    ça c'est le port où tomcat écoutera, rien à voir avec le proxy

    Dans installer -> ZipUrlInstaller tu peux configurer manuellement un proxy.


    http://cargo.codehaus.org/Maven2+Plu...ipUrlInstaller

  8. #28
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    J'ai cliqué sur ton lien mais arrivé sur la page correspondante, je n'ai pas la possibilité de définir un proxy.

  9. #29
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

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

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    4 ème ligne à l'écran:

    <proxy> Proxy server settings, if required. (thumbs down) No default

  10. #30
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    La définition des valeurs de proxy est impossible directement depuis le site, donc je l'ai fait directement dans le pom.xml ainsi:
    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
    					<configuration>
    						<type>standalone</type>
    						<home>${project.build.directory}/apache-tomcat</home>
     
    						<properties>
    							<cargo.proxy.host>p-goodway</cargo.proxy.host>
    							<cargo.proxy.port>3128</cargo.proxy.port>
    							<cargo.protocol>http</cargo.protocol>   
    							<cargo.servlet.port>${servlet-container-port}</cargo.servlet.port>
    							<cargo.logging>high</cargo.logging>
    						</properties>
     
    						<deployables>
    							<deployable>
    								<groupId>net.sf.wsag4j.rest</groupId>
    								<artifactId>wsag4j-rest-webapp</artifactId>
    								<type>war</type>
    								<properties>
    									<context>/wsag4j</context>
    								</properties>
    							</deployable>
    						</deployables>
    					</configuration>
    Mais j'obtiens en console
    [INFO] Reactor Summary:
    [INFO]
    [INFO] WSAG4J: Web Service Agreement for Java ............ SUCCESS [12.197s]
    [INFO] WSAG4J: XML-Types ................................. SUCCESS [0.603s]
    [INFO] WSAG4J: WS-Addressing XML-Types ................... SUCCESS [12.291s]
    [INFO] WSAG4J: WS-Agreement XML-Types .................... SUCCESS [33.200s]
    [INFO] WSAG4J: Common XML Types .......................... SUCCESS [13.593s]
    [INFO] WSAG4J: JSDL XML-Types ............................ SUCCESS [39.053s]
    [INFO] WSAG4J: Server Resources .......................... SUCCESS [2.734s]
    [INFO] WSAG4J: API ....................................... SUCCESS [9.207s]
    [INFO] WSAG4J: Pattern ................................... SUCCESS [7.399s]
    [INFO] WSAG4J: Server .................................... SUCCESS [3:21.053s]
    [INFO] WSAG4J: Samples ................................... SUCCESS [3.947s]
    [INFO] WSAG4J: Client Resources .......................... SUCCESS [0.608s]
    [INFO] WSAG4J: Integration Tests ......................... SUCCESS [3.848s]
    [INFO] WSAG4J: REST Remote Stack ......................... SUCCESS [0.084s]
    [INFO] WSAG4J: REST API .................................. SUCCESS [2.526s]
    [INFO] WSAG4J: REST Client ............................... SUCCESS [4.994s]
    [INFO] WSAG4J: RESTful Service Implementation ............ SUCCESS [2.907s]
    [INFO] WSAG4J: RESTful Agreement Factory Webapp .......... FAILURE [35.301s]
    [INFO] WSAG4J: Rest Distribution ......................... SKIPPED
    [INFO] WSAG4J: Deprecated WSRF Remote Stack .............. SKIPPED
    [INFO] WSAG4J: WSRF Client Implementation ................ SKIPPED
    [INFO] WSAG4J: WSRF-Stack Integration .................... SKIPPED
    [INFO] WSAG4J: WSRF Agreement Factory Webapp ............. SKIPPED
    [INFO] WSAG4J: WSRF Distribution ......................... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 6:26.994s
    [INFO] Finished at: Fri Jun 21 15:00:17 CEST 2013
    [INFO] Final Memory: 102M/440M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start (start-container) on project wsag4j-rest-webapp: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start failed: Failed to download [http://archive.apache.org/dist/tomca...t-5.5.30.zip]: java.net.ConnectException: Connection timed out: connect -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start (start-container) on project wsag4j-rest-webapp: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start failed: Failed to download [http://archive.apache.org/dist/tomca...at-5.5.30.zip]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    Caused by: org.apache.maven.plugin.PluginExecutionException: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start failed: Failed to download [http://archive.apache.org/dist/tomca...at-5.5.30.zip]
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
    Caused by: org.codehaus.cargo.container.ContainerException: Failed to download [http://archive.apache.org/dist/tomca...at-5.5.30.zip]
    at org.codehaus.cargo.container.installer.ZipURLInstaller.download(ZipURLInstaller.java:329)
    at org.codehaus.cargo.container.installer.ZipURLInstaller.install(ZipURLInstaller.java:148)
    at org.codehaus.cargo.maven2.configuration.Container.setupHome(Container.java:360)
    at org.codehaus.cargo.maven2.configuration.Container.createContainer(Container.java:241)
    at org.codehaus.cargo.maven2.AbstractCargoMojo.createNewContainer(AbstractCargoMojo.java:470)
    at org.codehaus.cargo.maven2.AbstractCargoMojo.createContainer(AbstractCargoMojo.java:410)
    at org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(ContainerStartMojo.java:53)
    at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:268)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    ... 20 more
    Caused by: in cargo code: java.net.ConnectException: Connection timed out: connect
    at org.apache.tools.ant.taskdefs.Get.execute(Get.java:82)
    at org.codehaus.cargo.container.installer.ZipURLInstaller.doDownload(ZipURLInstaller.java:362)
    at org.codehaus.cargo.container.installer.ZipURLInstaller.download(ZipURLInstaller.java:310)
    ... 28 more
    Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
    at java.net.Socket.connect(Socket.java:579)
    at java.net.Socket.connect(Socket.java:528)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    at sun.net.http://www.http.HttpClient.openServe...lient.java:378)
    at sun.net.http://www.http.HttpClient.openServe...lient.java:473)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
    at sun.net.www.http.HttpClient.New(HttpClient.java:290)
    at sun.net.www.http.HttpClient.New(HttpClient.java:306)
    at sun.net.http://www.protocol.http.HttpURLConn...ction.java:995)
    at sun.net.http://www.protocol.http.HttpURLConn...ction.java:931)
    at sun.net.http://www.protocol.http.HttpURLConn...ction.java:849)
    at org.apache.tools.ant.taskdefs.Get.doGet(Get.java:145)
    at org.apache.tools.ant.taskdefs.Get.execute(Get.java:78)
    ... 30 more
    [ERROR]
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...utionException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :wsag4j-rest-webapp

  11. #31
    Membre éprouvé

    Homme Profil pro
    Architecte technique
    Inscrit en
    Juin 2005
    Messages
    588
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Juin 2005
    Messages : 588
    Points : 1 230
    Points
    1 230
    Par défaut
    P.I. la doc dit aussi:

    Note that CARGO will by default reuse existing Maven2 proxy configuration -so you won't need to type the proxy settings for the zipUrlInstaller element.

    De plus, de mémoire (c'est vieux), chez FT R&D, le paramètre global passait très bien pour p-goodway ! Pour ce genre de question il y a(vait) un service sur grenoble..

    a+
    Philippe

  12. #32
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

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

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    La doc dit aussi que les <cargo.proxy.host>p-goodway</cargo.proxy.host>
    <cargo.proxy.port>3128</cargo.proxy.port>
    <cargo.protocol>http</cargo.protocol>

    doivent se trouver dans une balise <proxy> qui se trouve dans un <zipUrlInstaller> qui lui même se trouve dans un <container>

  13. #33
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    Voici la configuration du proxy de maven dans settings.xml
    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
    <proxies>
        <proxy>
          <active>true</active>
          <protocol>http</protocol>
          <host>p-goodway</host>
          <port>3128</port>
          <username/>
          <password/>
          <nonProxyHosts/>
        </proxy>
        <proxy>
          <active>true</active>
          <protocol>http</protocol>
          <host>p-niceway</host>
          <port>3128</port>
          <username/>
          <password/>
          <nonProxyHosts/>
        </proxy>
        <proxy>
          <active>true</active>
          <protocol>http</protocol>
          <host>proxy</host>
          <port>8080</port>
          <username/>
          <password/>
          <nonProxyHosts/>
        </proxy>
      </proxies>
    je pense que des pare-feux de FT bloquent la connexion car j'ai configuré tous les proxys possibles de FT mais j'obtiens toujours un connection timed out ce qui est quand même surprenant, la preuve est que j'ai testé la connexion à partir d'un simple programme java mais j'ai obtenu un connection timed out.

  14. #34
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    Voici ce que j'ai modifié dans le pom.xml:
    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
    					<container>
    						<containerId>tomcat5x</containerId>
    						<zipUrlInstaller>
    							<cargo.proxy.host>p-goodway</cargo.proxy.host>
    							<cargo.proxy.port>3128</cargo.proxy.port>
    							<cargo.protocol>http</cargo.protocol>   
    							<url>http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.30/bin/apache-tomcat-5.5.30.zip</url>
    							<!-- <installDir>${project.build.directory}/cargoinstalls</installDir> -->
    						</zipUrlInstaller>
    						<output>${project.build.directory}/logs/container.log</output>
    						<append>false</append>
    						<log>${project.build.directory}/logs/cargo.log</log>
    						<systemProperties>
    							<wsag4j.gateway.address>${wsag4j.gateway.address}</wsag4j.gateway.address>
    						</systemProperties>
    					</container>
    et j'obtiens ensuite en sortie d'exécution:
    [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start (start-container) on project wsag4j-rest-webapp: Unable to parse configuration of mojo org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start for parameter zipUrlInstaller: Cannot find setter, adder nor field in org.codehaus.cargo.maven2.configuration.ZipUrlInstaller for 'cargo.proxy.host' -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start (start-container) on project wsag4j-rest-webapp: Unable to parse configuration of mojo org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start for parameter zipUrlInstaller: Cannot find setter, adder nor field in org.codehaus.cargo.maven2.configuration.ZipUrlInstaller for 'cargo.proxy.host'
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:221)

  15. #35
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    Désolé je suis allé trop vite en besogne, j'avais mal ordonné les éléments, maintenant je l'ai fait et j'attends le résultat de l'exécution

  16. #36
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    Après exécution j'obtiens ceci:
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start (start-container) on project wsag4j-rest-webapp: Unable to parse configuration of mojo org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start for parameter proxy: Cannot find setter, adder nor field in org.codehaus.cargo.container.installer.Proxy for 'cargo.proxy.host' -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start (start-container) on project wsag4j-rest-webapp: Unable to parse configuration of mojo org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start for parameter proxy: Cannot find setter, adder nor field in org.codehaus.cargo.container.installer.Proxy for 'cargo.proxy.host'
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:221)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

  17. #37
    Membre éprouvé

    Homme Profil pro
    Architecte technique
    Inscrit en
    Juin 2005
    Messages
    588
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Juin 2005
    Messages : 588
    Points : 1 230
    Points
    1 230
    Par défaut
    Dans ton premier message il y a un truc qui m'interpelle :Failed to download [http://archive.apache.org/dist/tomca...t-5.5.30.zip]: .. pourquoi tapes-tu sur une adresse en dehors de l'infra FT ? C'est d'ailleurs prohibé normalement !

    Pour les dépots maven tu devrais avoir un truc du genre http://maven2.rd.francetelecom.fr/pr...ository/public (dans les mirroirs) si celà n'a pas changé. Itou pour le déploiement tomcat et/ou jonas

    a+
    Philippe

    Au passage: ta version du plugin est assez ancienne nov2011 !

  18. #38
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    J'ai modifié le fichier pom.xml ainsi car tout à l'heure les balises étaient mal saisies:
    Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    						<zipUrlInstaller>
    							<proxy>
    								<host>p-goodway</host>
    								<port>3128</port>
    							</proxy>							   
    							<url>http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.30/bin/apache-tomcat-5.5.30.zip</url>
    							<!-- <installDir>${project.build.directory}/cargoinstalls</installDir> -->
    						</zipUrlInstaller>
    Mais à la fin de l'exécution j'ai un autre type d'erreur dont voici le principal détail:
    [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start (start-container) on project wsag4j-rest-webapp: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start failed: Failed to start the Tomcat 5.5.30 container. Check the [C:\Users\CVQF1540\workspace_Server\wsag4j\wsag4j-rest\wsag4j-rest-webapp\target/logs/container.log] file containing the container logs for more details. Deployable [http://localhost:9000/cargocpc/index.html] failed to finish deploying within the timeout period [120000]. The Deployable state is thus unknown. -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start (start-container) on project wsag4j-rest-webapp: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:start failed: Failed to start the Tomcat 5.5.30 container. Check the [C:\Users\CVQF1540\workspace_Server\wsag4j\wsag4j-rest\wsag4j-rest-webapp\target/logs/container.log] file containing the container logs for more details.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)

  19. #39
    Membre éprouvé

    Homme Profil pro
    Architecte technique
    Inscrit en
    Juin 2005
    Messages
    588
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Juin 2005
    Messages : 588
    Points : 1 230
    Points
    1 230
    Par défaut
    As-tu regardé le contenu de tes log ?

    On peut voir la config complète du plugin ?

    a+
    Philippe

  20. #40
    Membre régulier
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2011
    Messages
    109
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2011
    Messages : 109
    Points : 70
    Points
    70
    Par défaut
    Oui je l'ai consulté, ensuite j'ai démarré tomcat et j'ai relancé l'exécution qui m'a généré un problème différent sachant que j'ai pu passer l'étape de la précédente erreur:
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default) on project wsag4j-rest-webapp: There are test failures.
    [ERROR]
    [ERROR] Please refer to C:\Users\CVQF1540\workspace_Server\wsag4j\wsag4j-rest\wsag4j-rest-webapp\target\surefire-reports for the individual test results.
    [ERROR] -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default) on project wsag4j-rest-webapp: There are test failures.

    Please refer to C:\Users\CVQF1540\workspace_Server\wsag4j\wsag4j-rest\wsag4j-rest-webapp\target\surefire-reports for the individual test results.

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 3 PremièrePremière 123 DernièreDernière

Discussions similaires

  1. [MAVEN] Mojo et fichiers settings.xml
    Par DanielW33 dans le forum Maven
    Réponses: 1
    Dernier message: 13/09/2007, 12h27
  2. Réponses: 17
    Dernier message: 09/07/2007, 14h28
  3. Réponses: 3
    Dernier message: 04/02/2006, 09h49
  4. [Log4j] fichier de configuration ou XML ?
    Par nabilblk dans le forum Logging
    Réponses: 2
    Dernier message: 02/09/2005, 16h42

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