Précédent   Forum du club des développeurs et IT Pro > Environnements de développement > Eclipse > Eclipse Java
Eclipse Java Forum d'entraide sur l'EDI Eclipse pour Java. Avant de poster -> La F.A.Q Eclipse, Tutoriels Eclipse
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 09/12/2012, 06h07   #1
misswatson
Nouveau Membre du Club
 
Femme
Étudiant
Inscription : mai 2010
Messages : 61
Détails du profil
Informations personnelles :
Sexe : Femme
Localisation : France

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : mai 2010
Messages : 61
Points : 27
Points : 27
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 :
Citation:
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.
misswatson est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/12/2012, 06h26   #2
misswatson
Nouveau Membre du Club
 
Femme
Étudiant
Inscription : mai 2010
Messages : 61
Détails du profil
Informations personnelles :
Sexe : Femme
Localisation : France

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : mai 2010
Messages : 61
Points : 27
Points : 27
Après avoir fait pointer le JRE vers le JDK dans Window > Preferences > Java, à présent j'ai ce message d'erreur :
Citation:
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.
misswatson est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 22h13.


 
 
 
 
Partenaires

Hébergement Web