Maven release:perform problem
I have a problem when i'm trying to run the Maven task: mvn -X release:perform
[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:p开发者_如何学运维om: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] ------------------------------------------------------------------------
Based on the error message
Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one
it looks like you don't have a pom.xml in the folder you are trying to start mvn release:prepare in....BTw. Have you executed mvn release:prepare before ?
Have you executed mvn release:prepare before ?
精彩评论