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 :

Impossible d'executer install depuis Eclipse


Sujet :

Maven Java

  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Février 2010
    Messages
    5
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 5
    Points : 2
    Points
    2
    Par défaut Impossible d'executer install depuis Eclipse
    Bonjour,

    J'ai une application gérée par Maven et depuis aujourd'hui, je n'arrive pas à lancer 'install' depuis Eclipse, il dit qu'il ne trouve pas le pom.xml alors qu'il est bien là.
    J'ai fait un clean, un refresh mais rien n'y fait, il ne reconnait plus le pom.xml.
    Est ce que quelqu'un a une idée?
    Voici la trace
    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
     
    + Error stacktraces are turned on.
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Maven Default Project
    [INFO]    task-segment: [install]
    [INFO] ------------------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
    	at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
    	at jrockit.reflect.InitialMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
    	at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
    	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
    	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:377)
    	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
    	... 14 more
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1 second
    [INFO] Finished at: Fri Mar 12 09:50:12 CET 2010
    [INFO] Final Memory: 12M/64M
    [INFO] ------------------------------------------------------------------------
    Merci

  2. #2
    Expert confirmé
    Profil pro
    Inscrit en
    Août 2006
    Messages
    3 274
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2006
    Messages : 3 274
    Points : 4 141
    Points
    4 141
    Par défaut
    Tu n'es peut-être pas bien placé dans ton arborescence au moment tu exécutes l'install.

  3. #3
    Candidat au Club
    Profil pro
    Inscrit en
    Février 2010
    Messages
    5
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 5
    Points : 2
    Points
    2
    Par défaut
    Je la lance depuis Eclipse, je choisis le working directory via eclipse. Quand je construit mon goal, il me propose tous les projets et je choisis celui qui me faut.
    C'est pas une garantie que je suis bien positionné ?

  4. #4
    Candidat au Club
    Profil pro
    Inscrit en
    Février 2010
    Messages
    5
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 5
    Points : 2
    Points
    2
    Par défaut
    Le worksapce est une une machine distante du coup j'y accède par le chemin ''\\machine\workspace' ça peut pas venir de la ?

  5. #5
    Candidat au Club
    Profil pro
    Inscrit en
    Février 2010
    Messages
    5
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 5
    Points : 2
    Points
    2
    Par défaut
    En forcant -f projet/pom.xml ça marche mais ça n'explique pas pourquoi il n'arrive pas à le trouver par lui même :-(

Discussions similaires

  1. Réponses: 5
    Dernier message: 21/10/2008, 10h13
  2. executer jsp depuis Eclipse
    Par psycho_xn dans le forum Eclipse Java
    Réponses: 9
    Dernier message: 05/08/2008, 02h06
  3. execution depuis eclipse java.lang.ClassFormatError:
    Par mikebranque dans le forum Eclipse Platform
    Réponses: 1
    Dernier message: 09/10/2007, 13h52
  4. [XP] Installation depuis cd impossible
    Par Telmp3wav dans le forum Windows XP
    Réponses: 4
    Dernier message: 05/05/2007, 14h14
  5. [Tomcat] Impossible de démarrer le serveur depuis Eclipse
    Par illmonkey dans le forum Eclipse Java
    Réponses: 12
    Dernier message: 08/03/2006, 13h30

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