Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.3:run (default-cli) on project Maven_WebTest: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.3:run failed: C

 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 2     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 3     <modelVersion>4.0.0</modelVersion>
 4     <groupId>me.slp.maven</groupId>
 5     <artifactId>WebProject</artifactId>
 6     <packaging>war</packaging>
 7     <version>0.0.1-SNAPSHOT</version>
 8     <name>WebProject Maven Webapp</name>
 9     <url>http://maven.apache.org</url>
10     <dependencies>
11         <dependency>
12             <groupId>junit</groupId>
13             <artifactId>junit</artifactId>
14             <version>3.8.1</version>
15             <scope>test</scope>
16         </dependency>
17     </dependencies>
18     <!-- 将Web项目自动部署到tomcat服务器的相关 配置信息-->
19   <build>
20       <!-- 将WebProject项目打包成WebProject.war自动部署到tomcat服务器的webapps目录下面 -->
21     <finalName>WebProject</finalName>
22     <plugins>
23           <plugin>
24               <groupId>org.codehaus.cargo</groupId>
25               <artifactId>cargo-maven2-plugin</artifactId>
26                 <version>1.4.12</version>
27                 <configuration>
28                     <container>
29                           <!-- 指明使用的tomcat服务器版本 -->
30                         <containerId>tomcat8x</containerId>
31                         <!--指明tomcat服务器的安装目录 -->
32                         <home>E:\apache-tomcat-8.0.35</home>
33                     </container>
34                     <configuration>
35                         <type>existing</type>
36                         <!--指明tomcat服务器的安装目录 -->
37                         <home>E:\apache-tomcat-8.0.35</home>
38                     </configuration>
39                 </configuration>
40                 <executions>
41                   <execution>
42                       <id>cargo-run</id>
43                       <phase>install</phase>
44                       <goals>
45                           <goal>run</goal>
46                       </goals>
47                   </execution>
48               </executions>
49           </plugin>
50       </plugins>
51   </build>
52 </project>

解决办法:修改一下版本号

<groupId>org.codehaus.cargo</groupId>
     <artifactId>cargo-maven2-plugin</artifactId>
     <version>1.4.12</version> <!--原本是使用1.2.3-->

时间: 2024-10-07 23:37:05

Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.3:run (default-cli) on project Maven_WebTest: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.3:run failed: C的相关文章

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade (default) on project QMServer: Execution default of goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade failed: A required class was missing while executing org.apach

Failed to execute goal com.pyx4me:proguard-maven-plugin:2.0.4:proguard (default) on project xunge-mi

Failed to execute goal com.pyx4me:proguard-maven-plugin:2.0.4:proguard (default) on project xunge-middleware: Execution default of goal com.pyx4me:proguard-maven-plugin:2.0.4:proguard failed: Plugin com.pyx4me:proguard-maven-plugin:2.0.4 or one of it

Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.1:rpm (default) on project **

maven编译项目时报错:Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.1:rpm (default) on project 原因: 没有安装rpm. 安装rpm build工具包: yum install rpm 或者 sudo apt-get install rpm 具体错误是: Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.1:rpm

Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (dist) on project hadoop-kms: An Ant BuildException has occured

编译cdh版hadoop2.5.0出现的问题 系统: CentOs66 64位 JDK:1.7 Maven: 3.0.5 Protobuf: libprotoc 2.5.0 编译命令: mvn package -DskipTests -Pdist,native **************************************************************************************** [INFO] -----------------------

[ERROR ]Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.1.0:flatten (flatten) on project

今天在启动项目的时候,莫名的Maven install命令的时候出现错误 错误提示:Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.1.0:flatten (flatten) on project [ERROR] Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.1.0:flatten (flatten) on project lis: 4

Maven Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean Failed to delete access_log

I'm trying to run simple struts project using maven and tomcat. When I'm trying to exucute next goals:clean install tomcat7:run ,there is an error : [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean)

Maven项目报错:Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clea

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project study-search: Failed to clean project: Failed to delete D:\Pxxtarget\tomcat\logs\access_log.2017-3-24 [ERROR] [ERROR] To see the full stac

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:

security-sdk-1.0.jar已经存在于D:/secServerSDK-test/src/main/resources/lib下 报错如下: [email protected] /d/secServerSDK-test/src/main/resources/lib$ mvn install:install-file -Dfile=security-sdk-1.0.jar -DgroupId=com.jd.security -DartifactId=security-sdk -Dvers

Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-

Maven项目报错:Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clea [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project study-search: Failed to clean project