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

Eclipse Java Discussion :

[Maven] Problème de compilation suite à une réinstallation du PC


Sujet :

Eclipse Java

  1. #1
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mai 2010
    Messages
    62
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mai 2010
    Messages : 62
    Points : 50
    Points
    50
    Par défaut [Maven] Problème de compilation suite à une réinstallation du PC
    Bonjour,

    Suite à un plantage de mon PC, j'ai dû tout réinstaller, notamment le JDK 7 ainsi qu'Eclipse, puis configurer toutes les variables d'environnement...

    Le problème à présent est que sur mes projets Maven, quand je fais clic droit, puis Run as > Maven install, j'obtiens l'erreur suivante :
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building GoogleDataBase 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ GoogleDataBase ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory C:\Users\Nazli\workspace\GoogleDataBase\src\main\resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ GoogleDataBase ---
    [INFO] Compiling 5 source files to C:\Users\Nazli\workspace\GoogleDataBase\target\classes
    [INFO] -------------------------------------------------------------
    [ERROR] COMPILATION ERROR :
    [INFO] -------------------------------------------------------------
    [ERROR] Unable to locate the Javac Compiler in:
    C:\Program Files\Java\jre7\..\lib\tools.jar
    Please ensure you are using JDK 1.4 or above and
    not a JRE (the com.sun.tools.javac.Main class is required).
    In most cases you can change the location of your Java
    installation by setting the JAVA_HOME environment variable.
    [INFO] 1 error
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.830s
    [INFO] Finished at: Sun Dec 09 05:57:18 CET 2012
    [INFO] Final Memory: 8M/106M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project GoogleDataBase: Compilation failure
    [ERROR] Unable to locate the Javac Compiler in:
    [ERROR] C:\Program Files\Java\jre7\..\lib\tools.jar
    [ERROR] Please ensure you are using JDK 1.4 or above and
    [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
    [ERROR] In most cases you can change the location of your Java
    [ERROR] installation by setting the JAVA_HOME environment variable.
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [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...ilureException
    Quelqu'un saurait-il m'indiquer d'où peut venir le problème ?

    Merci d'avance pour votre aide.

  2. #2
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mai 2010
    Messages
    62
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mai 2010
    Messages : 62
    Points : 50
    Points
    50
    Par défaut
    Après avoir fait pointer le JRE vers le JDK dans Window > Preferences > Java, à présent j'ai ce message d'erreur :
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building GoogleDataBase 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ GoogleDataBase ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory C:\Users\Nazli\workspace\GoogleDataBase\src\main\resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ GoogleDataBase ---
    [INFO] Compiling 5 source files to C:\Users\Nazli\workspace\GoogleDataBase\target\classes
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ GoogleDataBase ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory C:\Users\Nazli\workspace\GoogleDataBase\src\test\resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ GoogleDataBase ---
    [INFO] Compiling 1 source file to C:\Users\Nazli\workspace\GoogleDataBase\target\test-classes
    [INFO]
    [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ GoogleDataBase ---
    [WARNING] The POM for org.apache.maven:maven-plugin-api:jar:2.0.9 is missing, no dependency information available
    [WARNING] The POM for org.apache.maven.surefire:surefire-booter:jar:2.10 is missing, no dependency information available
    [WARNING] The POM for org.apache.maven.surefire:maven-surefire-common:jar:2.10 is missing, no dependency information available
    [WARNING] The POM for org.codehaus.plexus:plexus-utils:jar:2.1 is missing, no dependency information available
    [WARNING] The POM for org.apache.maven:maven-artifact:jar:2.0.9 is missing, no dependency information available
    [WARNING] The POM for org.apache.maven:maven-project:jar:2.0.9 is missing, no dependency information available
    [WARNING] The POM for org.apache.maven:maven-core:jar:2.0.9 is missing, no dependency information available
    [WARNING] The POM for org.apache.maven:maven-toolchain:jar:2.0.9 is missing, no dependency information available
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 4.377s
    [INFO] Finished at: Sun Dec 09 06:19:28 CET 2012
    [INFO] Final Memory: 14M/107M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project GoogleDataBase: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.10 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven.surefire:surefire-booter:jar:2.10, org.apache.maven.surefire:maven-surefire-common:jar:2.10, org.codehaus.plexus:plexus-utils:jar:2.1: Failure to find org.apache.maven.surefire:surefire-booter:jar:2.10 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [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
    Quelqu'un saurait-il m'indiquer comment résoudre ce problème à présent ?

    Merci d'avance pour votre aide.

Discussions similaires

  1. Problème de compilation pour une DLL
    Par Faith's Fall dans le forum C++Builder
    Réponses: 8
    Dernier message: 24/03/2008, 15h40
  2. Problème de son suite à une mise a niveau
    Par Lafab dans le forum Windows Vista
    Réponses: 1
    Dernier message: 05/09/2007, 20h42
  3. Probléme de compilation d'une servlet
    Par adil_vpb dans le forum Servlets/JSP
    Réponses: 4
    Dernier message: 12/02/2007, 13h31
  4. problème de compilation d'une JSP
    Par inabil dans le forum Servlets/JSP
    Réponses: 1
    Dernier message: 24/01/2007, 12h56
  5. Réponses: 7
    Dernier message: 12/11/2006, 12h49

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