http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException-程序员宅基地

技术标签: Exception  # Java 环境相关问题  

$ mvn -Dmaven.test.skip=true package
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.springboot:test:jar:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 168, column 21
[WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 157, column 21
[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] ------------------------------------------------------------------------
[INFO] Building test 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.293 s
[INFO] Finished at: 2019-01-24T12:25:17+08:00
[INFO] Final Memory: 8M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase ".test.skip=true". 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/LifecyclePhaseNotFoundException


ERROR: Job failed: exit status 1

错误原因:

在 PowerShell 窗口下执行 maven 命令行报错

改为:

mvn clean install package '-Dmaven.test.skip=true'

 

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_37143673/article/details/86625677

智能推荐

java 反编译 调试_eclipse 反编译 jar 中 .class 并打断点调试-程序员宅基地

文章浏览阅读643次。eclipse 反编译 jar中.class 并打断点调试1. 下载工具2. 增加jadeclipse功能把 net.sf.jadclipse_3.3.0.jar复制到eclipse/plugins目录下;jad.exe放到 JAVA_HOME/bin下。3.配置jad路径打开eclipse,windows-->perferences-->java--->jadClips..._eclipse 反编译打不了断点

Visual Studio的SDK配置-程序员宅基地

文章浏览阅读2.4k次。Visual Studio的SDKVisual Studio 6.0自带的SDK是1998年的,目录为C:\Program Files\Microsoft Visual Studio\VC98\,这里简记为VS6SDKDIR。以下为打开vc6菜单tools-&gt;options-&gt;directories. 我们看到Platform为Win32,Show directories ..._vs platformsdk在哪

Java笔记---Hadoop 2.7.1下WordCount程序详解_[hadoop@master mapreduce]$ hadoop jar hadoop-mapre-程序员宅基地

文章浏览阅读1.9w次,点赞7次,收藏21次。一、前言在之前我们已经在 CenOS6.5 下搭建好了 Hadoop2.x 的开发环境。既然环境已经搭建好了,那么现在我们就应该来干点正事嘛!比如来一个Hadoop世界的HelloWorld,也就是WordCount程序(一个简单的单词计数程序)二、WordCount 官方案例的运行 2.1 程序简介WordCount程序是hadoop自带的案例,我们可以在 hadoop..._[hadoop@master mapreduce]$ hadoop jar hadoop-mapreduce-examples-2.7.1.jar wo

2019最新版iOS面试题大全_ios高级面试题2019-程序员宅基地

文章浏览阅读459次。1、设计模式是什么? 你知道哪些设计模式,并简要叙述?设计模式是一种编码经验,就是用比较成熟的逻辑去处理某一种类型的事情。1). MVC模式:Model View Control,把模型 视图 控制器 层进行解耦合编写。2). MVVM模式:Model View ViewModel 把模型 视图 业务逻辑 层进行解耦和编写。3). 单例模式:通过static关键词,声明全局变量。在整个..._ios高级面试题2019

JsonUtil.java-程序员宅基地

文章浏览阅读60次。JsonUtil.javapackage com.xxx.common.util;import java.io.IOException;import org.apache.commons.lang.StringUtils;import org.codehaus.jackson.JsonParseException;import org.codehaus.jackso..._jsonutil.java在哪

Gerrit代码审核服务器的工作流程和原理_gerrit审核状态为ready,怎么审核为merged-程序员宅基地

文章浏览阅读6.6k次。Gerrit 代码审核服务器的工作流和原理谷歌 Android 开源项目在 Git 的使用上有两个重要的创新,一个是为多版本库协同而引入的 repo,这在之前我们已经详细讨论过。另外一个重要的创新就是 Gerrit —— 代码审核服务器。Gerrit 为 Git 引入的代码审核是强制性的,就是说除非特别的授权设置,向 Git 版本库的推送(Push)必须要经过 Gerrit 服务器,修订必_gerrit审核状态为ready,怎么审核为merged

随便推点

Android安全之DM-verity中的Device Mapper机制分析-程序员宅基地

文章浏览阅读9k次,点赞6次,收藏39次。我们想法:能不能将多个硬盘,映射成一个逻辑的硬盘,那样我们程序就不用关心复杂的地址问题了,也不用关系是哪个device了? DM-raid技术RAID全称为独立磁盘冗余阵列(Redundant Array of Independent Disks) 将某个地址段的数据进行加密,只有授权方式才可访问,比如FDE。 DM-crypt技术访问存储介质上的数据时,校验下是否被篡改过

apache=>DokuWiki 安装-程序员宅基地

文章浏览阅读306次。checking for APR... noconfigure: error: APR not found.解决办法:1.下载所需软件包:[code=&amp;quot;java&amp;quot;]wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz wget http://archive.apache...

crio电压采集 labview_LabVIEW与cRIO入门.pdf-程序员宅基地

文章浏览阅读702次。 和 CompactRIO LabVIEW入门指南注 新用户可通过LabVIEW 入门指南了解LabVIEW 基本信息和相关术语。本..._labview crio

13. 试用vSphere 6(二):使用vSphere Client 6.0管理ESXi主机-程序员宅基地

文章浏览阅读2.3k次。一、VMware vSphere 6(RC版)安装配置系列文章:1、试用vSphere 6(一):安装ESXi 6 RC版2、试用vSphere 6(二):使用vSphere Client 6.0管理ESXi主机3、试用vSphere 6(三):安装vCenter 6(独立数据库)之:域控服务器安装与配置4、试用vSphere 6(三):安装vCenter 6(独立数据_vsphere client 6

使用gb2312乱码,utf-8正常-程序员宅基地

文章浏览阅读4.9k次。问题:使用gb2312编码会导致在终端输出和网页输出都是乱码,使用utf-8则不会。原因:jsp使用的编码方式是gb2312,这个编码方式决定了jsp页面所有显示文字的编码方式,包括text组件中输入的内容。对于get方法,请求参数是直接拼接在url后面的,而这个参数的编码应该也是由jsp使用的编码方式决定的。这些参数到达tomcat后,会首先经过一次解码,这个过程是程序不能干预的,发生在servlet所有的操作进行之前。而tomcat8之后默认的编码方式是utf-8,两个编码方式的不一致就导致了乱码。._gb2312乱码

Android AudioRecord 流程分析_android record_audio-程序员宅基地

文章浏览阅读1.7k次。Android 4.4KitKat AudioRecord 流程分析   Android是架构分为三层:底层 Linux Kernel中间层 主要由C++实现 (Android 60%源码都是C++实现)应用层 主要由JAVA开发的应..._android record_audio

推荐文章

热门文章

相关标签