Closed yoannfleurydev closed 7 years ago
Compilation impossible
Lancement de la commande permettant de faire tourner le projet. Impossible d'aller plus loin, erreur de compilation.
./mvnw
J'attendais que cette commande lance le projet.
Erreur de compilation :
[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Iataaa Server 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> spring-boot-maven-plugin:1.4.2.RELEASE:run (default-cli) > test-compile @ iataaa-server >>> [INFO] [INFO] --- maven-resources-plugin:3.0.1:copy-resources (default-resources) @ iataaa-server --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 6 resources [INFO] Copying 10 resources [INFO] [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ iataaa-server --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 6 resources [INFO] Copying 10 resources [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ iataaa-server --- [INFO] [INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (pre-unit-tests) @ iataaa-server --- [INFO] argLine set to -javaagent:/home/yfleury/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/home/yfleury/dev/IAtaaa-server/iataaaServer/target/test-results/coverage/jacoco/jacoco.exec -Djava.security.egd=file:/dev/./urandom -Xmx256m [INFO] [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ iataaa-server --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 99 source files to /home/yfleury/dev/IAtaaa-server/iataaaServer/target/classes [INFO] /home/yfleury/dev/IAtaaa-server/iataaaServer/src/main/java/fr/univ/iataaaserver/service/game/util/Rules.java: /home/yfleury/dev/IAtaaa-server/iataaaServer/src/main/java/fr/univ/iataaaserver/service/game/util/Rules.java uses unchecked or unsafe operations. [INFO] /home/yfleury/dev/IAtaaa-server/iataaaServer/src/main/java/fr/univ/iataaaserver/service/game/util/Rules.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ iataaa-server --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @ iataaa-server --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 7 source files to /home/yfleury/dev/IAtaaa-server/iataaaServer/target/test-classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/yfleury/dev/IAtaaa-server/iataaaServer/src/test/java/fr/univ/iataaaserver/service/game/util/RulesTest.java:[28,30] Rules() has private access in fr.univ.iataaaserver.service.game.util.Rules [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.154 s [INFO] Finished at: 2016-12-19T22:40:00+01:00 [INFO] Final Memory: 50M/495M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:testCompile (default-testCompile) on project iataaa-server: Compilation failure [ERROR] /home/yfleury/dev/IAtaaa-server/iataaaServer/src/test/java/fr/univ/iataaaserver/service/game/util/RulesTest.java:[28,30] Rules() has private access in fr.univ.iataaaserver.service.game.util.Rules [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/display/MAVEN/MojoFailureException
Corriger l'erreur suivante :
[INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/yfleury/dev/IAtaaa-server/iataaaServer/src/test/java/fr/univ/iataaaserver/service/game/util/RulesTest.java:[28,30] Rules() has private access in fr.univ.iataaaserver.service.game.util.Rules [INFO] 1 error [INFO] -------------------------------------------------------------
Aucune information à fournir pour cette déclaration de bogue.
Je viens de m'apercevoir que la branche master n'est pas la branche la plus avancée. My bad, je fais le test sur la branche dev
dev
Compilation impossible
Contexte
Lancement de la commande permettant de faire tourner le projet. Impossible d'aller plus loin, erreur de compilation.
Processus
./mvnw
Résultat souhaité
J'attendais que cette commande lance le projet.
Résultat actuel
Erreur de compilation :
Fix possibles
Corriger l'erreur suivante :
Captures de Impossible de lancer le projet
Aucune information à fournir pour cette déclaration de bogue.