Unknown lifecycle phase mvn

2023-12-16 19:08
文章标签 unknown lifecycle phase mvn

本文主要是介绍Unknown lifecycle phase mvn,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

Unknown lifecycle phase “mvn”.

"C:\Program Files\Java\jdk1.8.0_171\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\IDE\IDEA\Springboot-Parent\Springboot -Dmaven.home=D:\IDE\Maven\apache-maven-3.5.3 -Dclassworlds.conf=D:\IDE\Maven\apache-maven-3.5.3\bin\m2.conf -javaagent:D:\IDE\IDEA\ideaIU-2018.1.3.win\lib\idea_rt.jar=63034:D:\IDE\IDEA\ideaIU-2018.1.3.win\bin -Dfile.encoding=UTF-8 -classpath D:\IDE\Maven\apache-maven-3.5.3\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2018.1.3 -s D:\IDE\Maven\apache-maven-3.5.3\conf\settings.xml mvn package
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for top.simba1949:Springboot:jar:1.0-SNAPSHOT
[WARNING] 'parent.relativePath' of POM top.simba1949:Springboot:1.0-SNAPSHOT (D:\IDE\IDEA\Springboot-Parent\Springboot\pom.xml) points at top.simba1949:Springboot-Parent instead of org.springframework.boot:spring-boot-starter-parent, please verify your project structure @ line 12, column 13
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] ----------------------< top.simba1949:Springboot >----------------------
[INFO] Building Springboot 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.485 s
[INFO] Finished at: 2018-07-15T12:11:05+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "mvn". 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/LifecyclePhaseNotFoundExceptionProcess finished with exit code 1

解决方案:

开发环境中继承环境,需要去掉mvn。

这篇关于Unknown lifecycle phase mvn的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/501571

相关文章

Android Jetpact Lifecycle 解析

认识 Lifecycle Lifecycle 是什么 Lifecycle 是 Jetpack 组件库中的一个生命周期感知型组件。在 Lifecycle 出现之前,需要手动从外部宿主(如 Activity、Fragment 或自定义宿主)中将生命周期事件分发到功能组件内部,这势必会造成宿主代码复杂度增加。有了 Lifecycle 的存在,搭建依赖于生命周期变化的业务逻辑变得简单高效,可以用一种统

Java多线程编程模式实战指南:Two-phase Termination模式

文章来源: http://www.infoq.com/cn/articles/java-multithreaded-programming-mode-two-phase-termination?utm_source=infoq&utm_campaign=user_page&utm_medium=link 文章代码地址: https://github.com/Visce

linux下 ping: unknown host www.baidu.com” 解决方法

问题现象 :   ping 和 telnet 都无法正常使用   而nslookup 可以正常解析到域名 $ ping  www.baidu.com  ping: unknown host  www.baidu.com $ telnet baidu.com 80  baidu.com/80: Name or service not known

Servlet mapping specifies an unknown servlet name Action

看一下web.xml中<servlet-mapping>有没有配错

Unknown command: “create-react-app“

在创建react项目时出现报错" Unknown command: "create-react-app" " 解决方法: 配置变量,在要创建的目录下打开控制栏,输入下列命令,回车等待结束即可: npx create-react-app 项目名称   可能遇见的错误: 1. npm error network 'proxy' config is set properly.  S

hive远程调试问题java.net.UnknownHostException: unknown host: master

解决办法如下:在C:\WINDOWS\system32\drivers\etc\hosts文件中添加“如下“信息: 192.x.x.x master 注:之前我有遇到改下project中hdfs-site.xml下的master:10000改为ip:10000就好了,但是今天发现这招失灵了,ε=(´ο`*)))唉。改了这个之后能够sqlContext.sql("show databases

PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0

服务器突然出现这种提示,无法上传文件和图片,怎么解决? PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0 1.因为php.ini中没有设置上传的临时文件,默认为系统的临时文件地址。 2.如果没有权限去读系统的临时文件目录的话就会产生上述错误。 解决的方法就

Android JetPack Lifecycle源码解析

是什么? JetPack Lifecycle是一个页面(Activity/Fragment)生命周期的组件,当你想监听生命周期,那么就可以使用这个组件。 怎么用? 第一种: getLifecycle().addObserver(new LifecycleObserver() {@OnLifecycleEvent(Lifecycle.Event.ON_CREATE)publi

EventBus搭配LifeCycle可能更美味

简要介绍 EventBus:一个用来在组件之间发通知通信的开源库。 LifeCycle:JetPack库中一个能感知生命周期的组件。 Kotlin扩展函数:可以为已经存在的类添加新的方法的黑魔法。 解决的问题 在使用EventBus时,我们每次在需要接受通知的地方,都需要注册和解绑监听函数。类似下面的模板代码: @Overrideprotected void onStart() {s

Spring中SmartLifecycle和Lifecycle的作用和区别

本文基于SpringBoot 2.5.0-M2讲解Spring中Lifecycle和SmartLifecycle的作用和区别,以及如何控制SmartLifecycle的优先级。 并讲解SpringBoot中如何通过SmartLifecycle来启动/停止web容器. SmartLifecycle & Lifecycle作用和区别 SmartLifecycle和Lifecycle作用 都是让开