NoGoalSpecifiedException : http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException

No goals have been specified for this build.

Maven Buid

时出现下面这个错误:

[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase

or a goal in the format

<

plugin-prefix

>

:

<

goal

>

or

<

plugin-group-id

>

:

<

plugin-artifact-id

>

[:

<

plugin-version

>

]:

<

goal

>

. Available lifecycle phases

are: validate, initialize, generate-sources, process-sources, generate-resources,

process-resources, compile, process-classes, generate-test-sources, process-test-sources,

generate-test-resources, process-test-resources, test-compile, process-test-classes, test,

prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify,

install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/NoGoalSpecifiedException

是因为没有指定

buid goal,

POM

文件中的

buid

节中加入默认值就行了。

<defaultGoal>

compile

</defaultGoal>

时间: 2024-10-06 19:54:46

NoGoalSpecifiedException : http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException的相关文章

出现http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException异常

解决方案 1.在eclipse的菜单中,进入Window > Preferences > Java > Installed JREs > Execution Environments,选择JavaSE- 1.6(此处是自己安装的jdk),在右侧选择jdk,在maven菜单中使用 "update project ..." . 2.有可能是因为项目下载下来某些类报错,包错误的行注释掉.(有些类需要找远程服务)

spark mllib配置pom.xml错误 Multiple markers at this line Could not transfer artifact net.sf.opencsv:opencsv:jar:2.3 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org

刚刚spark mllib,在maven repository网站http://mvnrepository.com/中查询mllib后得到相关库的最新dependence为: <dependency>        <groupId>org.apache.spark</groupId>        <artifactId>spark-mllib-local_2.11</artifactId>        <version>2.1.

Exception in thread &quot;main&quot; java.lang.UnsupportedClassVersionError: org/apache/ma ven/cli/Maven

安装maven 中出现如下异常: Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/ma ven/cli/MavenCli : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCo

Exception in thread &amp;quot;main&amp;quot; java.lang.UnsupportedClassVersionError: org/apache/ma ven/cli/Maven

安装maven 中出现例如以下异常: Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/ma ven/cli/MavenCli : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass

Maven使用问题汇总

Non-resolvable parent POM [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.iflytek.ossp:ossp-resserver-service:1.0.0-SNAPSHOT (C:\Users\moon\Desktop\ossp-resservice-maven\ossp-ress

新建的maven项目直接用maven编译报错

1.新建的maven项目直接编译的时候会报错: [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]

《从零开始搭建游戏服务器》项目发布到Linux环境

前言: 之前我们提及了如何使用Maven来创建.管理和打包项目,也简单过了一遍Linux中搭建Java开发环境的步骤,现在我们就开始将我们之前开发的项目demo发布到Linux环境下,并让它正常运行起来. 发布思路: 使用Maven将项目打包为.jar 将项目的.jar和项目所有依赖的jar包都复制到Linux下 创建项目启动脚本来启动项目 准备工作: 查询Linux系统机器的Ip地址:方法很简单,在Linux中打开终端输入ifconfig即可查到Ip地址为192.168.35.130: 修改E

java开发问题总结-4-Maven使用问题汇总

Non-resolvable parent POM [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.iflytek.ossp:ossp-resserver-service:1.0.0-SNAPSHOT (C:\Users\moon\Desktop\ossp-resservice-maven\ossp-ress

解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project autotest_fchtgl: Compilation failure的方法

在碰到maven install 发现报错 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project autotest_fchtgl: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on