The parameters 'mainClass' for goal org.codeh aus.mojo:exec-maven-plugin:1.6.0:java are missing or
来源:互联网 发布:sql语句定义变量 编辑:程序博客网 时间:2024/05/22 03:51
在使用maven插件exec-maven-plugin编译Echo服务器出现
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project zaidunduan: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java are missing or invalid -> [Help 1]
因为插件还没配置,注意配置引导路径
解决方法:在echo服务器的pom文件添加
<build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <executions> <execution> <goals> <goal>java</goal> </goals> </execution> </executions> <configuration> <mainClass>client.EchoClient</mainClass> </configuration> </plugin> </plugins></build>
0 0
- The parameters 'mainClass' for goal org.codeh aus.mojo:exec-maven-plugin:1.6.0:java are missing or
- 编译spark1.6.0出现 Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (sparkr-pkg)
- 编译spark1.6.0出现 Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (sparkr-pkg)
- cloudstack Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (install) on projec
- Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.0:deploy
- Failed to execute goal org.codehaus.mojo:hibernate3-maven-plugin:2.1:hbm2ddl
- Unable to load the mojo 'add-source' from the plugin 'org.codehaus.mojo:build-helper-maven-plugin:1.
- Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:redeploy (default-cli) on project h
- maven-resources-plugin error using copy-resources goal: 'resources', 'outputDirectory' missing or in
- Maven错误:'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing
- 问题关于: Unable to find the mojo 'org.appfuse:maven-warpath-plugin:1.0-m5:add-classes' in the plugin 'org.appfuse:maven-warpath-pl
- 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing
- Maven plugin中的lifecycle、phase、goal、mojo概念及作用的理解
- Maven plugin中的lifecycle、phase、goal、mojo概念及作用的理解
- Maven plugin中的lifecycle、phase、goal、mojo概念及作用的理解
- Maven plugin中的lifecycle、phase、goal、mojo概念及作用的理解
- Maven plugin中的lifecycle、phase、goal、mojo概念及作用的理解
- Could not find goal 'create' in plugin org.apache.maven.plugins:maven-archetype-plugin:3.0.0 among
- 使用android的系统API报错:找不到符号
- 压缩图片无bug版
- 1005: DNA
- 设备树学习之(一)GPIO中断
- 线性基 模板 bzoj2460 【BeiJing2011】 元素
- The parameters 'mainClass' for goal org.codeh aus.mojo:exec-maven-plugin:1.6.0:java are missing or
- Springview
- (枚举,dfs)Flip Game poj 1753
- 华清远见星创客
- 第一章 Oracle关系数据库
- 素数筛算法
- hdu 2955 Robberies
- Biorhythms
- java socket客户端发信息,服务器接收并反馈。