选择【Run As】-【Maven build】的时候,报:
[INFO] Scanning for projects…[INFO]
[INFO] BUILD FAILURE[INFO]
[INFO] Total time: 0.109s[INFO] Finished at: Wed Apr 13 11:04:20 CST 2011[INFO] Final Memory: 1M/4M[INFO]
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-site, site, post-site, site-deploy,
pre-clean, clean, post-clean. -> [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
eclipse安装的maven插件是m2eclipse,在控制台使用命令mvn compile并未报错。后在pom.xml文件<build>标签里面加 上<defaultGoal>compile</defaultGoal>即可。
其实使用命令行时就已经指定了phase,而使用m2eclipse的【Run As】-【Maven build】时并未为其指定goal或phase,所以才报这个错误。
相关推荐
mvn install单独jar到仓库使用方法举例
java word写入poi比较繁琐。...mvn install:install-file -Dmaven.test.skip=true -Dfile=D:\.m2\wordgo-2.0.jar -DgroupId=com.github.qrpcode -DartifactId=wordgo -Dversion=2.0 -Dpackaging=jar
主要介绍了Maven发布封装到中央仓库时候报错:no default secret key,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
spring-petclinic-master运行mvn install报错:Failed to execute goal io.spring.javaformat:spring-javaformat-maven-plugin:0.0.19:validate (default) on project spring-petclinic: Formatting violations ...
mvn archetype:create -DgroupId=packageName -DartifactId=projectName 2. 创建Maven的Web项目: mvn archetype:create -DgroupId=packageName -DartifactId=webappName -...
mapreduce创建代码项目mvn原型:generate -DarchetypeGroupId = org.apache.maven.archetypes -DgroupId = org.conan.mymahout -DartifactId = myPro -DpackageName = org.conan.mymahout -Dversion = 1.0-SNAPSHOT ...
下载之后再maven的bin目录下使用mvn命令:mvn install:install-file -Dfile=F:\apache-maven-3.5.3\mylib\olap4j-0.9.7.309-JS-3.jar -DgroupId=org.olap4j -DartifactId=olap4j-0.9.7.309-JS-3 -Dversion=0.9.7.309...
mvn install:install-file -DgroupId=org.hyperic -DartifactId=sigar-dist -Dversion=1.6.3.82 -Dpackaging=jar -Dfile=C:\Users\XXXXX\Desktop\sigar-dist-1.6.3.82.zip mvn install:install-file -DgroupId=org....
mvn install:install-file -Dfile=D:\xxxx\Dm7JdbcDriver15.jar -DgroupId=com.dm -DartifactId=dmJDBC -Dversion=7.6.15 -Dpackaging=jar mvn install:install-file -Dfile=D:\xxxx\Dm7JdbcDriver16.jar -...
docker部署:mvn docker:build & java -jar 物理机部署:mvn install & java -jar 技术栈 Spring-Boot Spring-Cloud Spring-Cloud-Gateway Spring-Cloud-Sleuth(对业务侵入性较大,建议替换到 Skywalking ) Sentinel...
ckfinder Jar包,版本2.3,...mvn install:install-file -Dfile=D:\ckfinder2.3\ckfinderplugin-imageresize-2.3.jar -DgroupId=com.ckfinder -DartifactId=ckfinderplugin-imageresize -Dversion=2.3 -Dpackaging=jar
mvn install:install-file -D groupId=org.zenika.widget -D artifactId=gwt-datepicker -D version=r29 -D packaging=jar -D file=C:\gwt-datepicker-r29.jar 命令参数详解: mvn install:install-file: maven 安装...
mvn archetype:create :创建 Maven 项目 mvn compile :编译源代码 mvn test-compile :编译测试代码 mvn test : 运行应用程序中的单元测试 mvn site : 生成项目相关信息的网站 mvn clean :清除目标目录中的生成...
下载之后再maven的bin目录下使用mvn命令:mvn install:install-file -Dfile=F:\apache-maven-3.5.3\mylib\olap4j-0.9.7.309-JS-3.jar -DgroupId=org.olap4j -DartifactId=olap4j-0.9.7.309-JS-3 -Dversion=0.9.7.309...
WePay Java SDK 该API实现了WePay API的v2。... mvn release:perform mvn clean deploy; mvn release:clean; mvn release:prepare; mvn release:perform如何使用首先,熟悉其API的工作方式(请参见上面
mvn clean install compile -Dmaven.test.skip=true -fn mvn eclipse:clean mvn eclipse:eclipse mvn eclipse:myeclipse mvn clean install compile -Dmaven.test.skip=true -fn mvn install compile -Dmaven.test....
mvn install:install-file -D groupId=org.zenika.widget -D artifactId=gwt-datepicker -D version=r29 -D packaging=jar -D file=C:\gwt-datepicker-r29.jar 命令参数详解: mvn install:install-file: maven 安装...
Could not resolve dependencies for project org.apache.flink:flink-avro-confluent-registry:jar:1.15.3: Could not find artifact io.confluent:kafka-schema-registry-client:jar:6.2.2 in maven 安装本地...
* 然后建一个Ecllipse项目:my-webapp>mvn eclipse:eclipse * 先写jsp文件 和 web.xml文件 * 接着在src/main/java下写自已的java class文件 * 写pom.xml方件,最关键是添加dependencies * mvn package打包 * ...
敏捷 积极内联协会(AssociaçãoParaense de Aggressive Inline) 清醒 。 该项目是从“ wildfly-jakartaee-webapp-archetype”原型创建的。 JAX-RS 温泉 安装步骤: ... 运行:“ mvn wildfly:undepoy”