2010-12-09 5 views
0

J'ai un problème quand je suis en train d'exécuter la tâche Maven: mvn -X release:performMaven release: effectuer problème

[INFO] [INFO] ------------------------------------------------------------------------ 
[INFO] [INFO] Building Maven Default Project 
[INFO] [INFO] task-segment: [deploy] 
[INFO] [INFO] ------------------------------------------------------------------------ 
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:12 for project: null:maven-resources-plugin:maven-plugin:2.3 from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:9 for project: org.apache.maven.plugins:maven-plugins:pom:12 from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:4 for project: org.apache.maven:maven-parent:pom:9 from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:8 for project: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:5 for project: org.apache.maven.plugins:maven-plugins:pom:8 from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:3 for project: org.apache.maven:maven-parent:pom:5 from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire:pom:2.4.3 for project: org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:null from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:7 for project: org.apache.maven.surefire:surefire:pom:2.4.3 from the repository. 
[INFO] [DEBUG] Adding managed dependencies for org.apache.maven.plugins:maven-surefire-plugin 
[INFO] [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4.3 
[INFO] [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.4.3 
[INFO] [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.1 
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:10 for project: null:maven-jar-plugin:maven-plugin:2.2 from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:13 for project: null:maven-install-plugin:maven-plugin:2.3 from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:11 for project: org.apache.maven.plugins:maven-plugins:pom:13 from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:5 for project: org.apache.maven:maven-parent:pom:11 from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:11 for project: null:maven-deploy-plugin:maven-plugin:2.4 from the repository. 
[INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:8 for project: org.apache.maven.plugins:maven-plugins:pom:11 from the repository. 
[INFO] [INFO] ------------------------------------------------------------------------ 
[INFO] [ERROR] BUILD ERROR 
[INFO] [INFO] ------------------------------------------------------------------------ 
[INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. 
[INFO] [INFO] ------------------------------------------------------------------------ 
+0

j'ai aussi libérer: fail error.Please aller effectuer à cette http://stackoverflow.com/questions/18721155/maven-releaseperform-failure –

Répondre

0

Avez-vous exécuté la version mvn: préparer avant?

1

Basé sur le message d'erreur

Impossible d'exécuter Mojo: ressources. Il nécessite un projet avec un pom.xml existant, mais la construction n'utilise pas un

il semble que vous n'avez pas de pom.xml dans le dossier que vous essayez de lancer mvn release: prepare in .. ..BTw. Avez-vous exécuté la libération mvn: préparer avant?

+0

Merci pour la khmarbaise de réponse! J'ai un pom.xml dans le dossier du projet où j'exécute mvn release: prepare. C'est la première fois que j'exécute mvn release: prepare. – vinidog

+1

Avez-vous correctement défini la zone scm? developerConnection et la connexion pointant vers trunk/master? – khmarbaise

Questions connexes