maven打包报错You have to use a classifier to attach supplemental artifacts to the project instead of rep

maven打包报错You have to use a classifier to attach supplemental artifacts to the project instead of replacing them.

[WARNING]JAR will be empty - no content was marked for inclusion!15:51:40 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.1.1:jar (default-jar) on project whqtest: You have to use a classifier to attach supplemental artifacts to the project instead of replacing them. -> [Help 1]

两种情况
1.whqtest项目中没有源码(src/main目录中),这种情况创建一个类就行了

2.所在目录结构比较特殊,比如jenkins从windows迁移过来后,没有修改为linux目录结构,仍然是D:/xxx/xxx。
此种情况,git命令执行正常,但maven识别有问题,会找不到,所以导致该错误。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/416630.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

第一次绩效评估

评估结果如下: 第一名:谢梦雨 第二名:田会 第三名:王凤彬 第四名:张贺转载于:https://www.cnblogs.com/xtwz/p/7025874.html

前端学习(2439):jsonbin-init的使用

const str {"id":1253585734669959168} console.log(JSONbig.parse(str)) console.log(JSON.parse(str).id.toString()) const data JSON.stringify(str) console.log(JSONbig.parse(data)) console.log(JSONbig.stringify(data))

OpenJDK8基础类库包清单

包中文描述英文描述java.applet提供创建小程序所需的类,以及小程序用于与其小程序上下文进行通信的类。Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context.java.awt包含用于创建用户界面…

《C#高级编程》笔记系列第三弹

我们在开发WinForm时,经常会看到partial关键字,比如,我们新建一个Windows Form时,后台代码自动添加如下: 1 public partial class Form1 : Form2 {3 public Form1()4 {5 InitializeComponent();6 …

linux下node-sass安装失败

报错 Downloading binary from https://github.com/sass/node-sass/releases/download/v4.11.0/linux-x64-72_binding.node Cannot download “https://github.com/sass/node-sass/releases/download/v4.11.0/linux-x64-72_binding.node”: 原因 v4.11.0版本没有linux-x64-7…

Hadoop生态系统学习路线

主要介绍Hadoop家族产品,经常使用的项目包含Hadoop, Hive, Pig, HBase, Sqoop, Mahout, Zookeeper, Avro, Ambari, Chukwa。新添加的项目包含,YARN, Hcatalog, Oozie, Cassandra, Hama, Whirr, Flume, Bigtop, Crunch, Hue等。从2011年開始。中国进入大数…

前端学习(2440):axios处理文章数据

request.js <template> <div class"artical-container"><!--卡片--><el-card class"filter-card"><div slot"header" class"clearfix"><!--面包屑导航--><el-breadcrumb separator-class&quo…

nginx负载分发情况日志输出

加上最后的“"$upstream_addr"’”部分即可 log_format main $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" "$ups…

Maven--命令

1.打印出所有的 Java 系统属性和环境变量 1 mvn help:system 2.清理输出目录 target/ 1 mvn clean 3.编译项目主代码 1 mvn compile 4.测试类单元测试 参考&#xff1a;http://blog.csdn.net/dongfengkuayue/article/details/45969517 1 mvn test 5.打包 1 mvn package 6.安装 …

贪吃蛇小游戏源码再回顾

<!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><title>游戏初始化界面</title><style>body {m…

idea2020.03打开项目注释变为显示模式,大于等于等符号也变为中文符号

新版的idea2020.03方法上的注释变为左侧一个长竖线&#xff0c;右侧直接是展示模式的内容&#xff0c; 大于等于等符号变为对应的全角符号≤≥&#xff1d;≠&#xff0c;感觉好奇怪。 怎么让他显示回去呢&#xff1f; 解决办法 File——Close Project 进入idea启动页面&#…

快速排序2

算法&#xff1a; 1、从数列中挑出一个元素&#xff0c;称为 "基准"&#xff08;pivot&#xff09;&#xff0c; 2、重新排序数列&#xff0c;所有元素比基准值小的摆放在基准前面&#xff0c;所有元素比基准值大的摆在基准的后面&#xff08;相同的数可以到任一边&a…

前端学习(2442):解决跨域问题

1.同源策略如下&#xff1a; URL说明是否允许通信http://www.a.com/a.js http://www.a.com/b.js同一域名下允许http://www.a.com/lab/a.js http://www.a.com/script/b.js同一域名下不同文件夹允许http://www.a.com:8000/a.js http://www.a.com/b.js同一域名&#xff0c;不同端…

idea2020.03 lombok异常

提示找不到lombok生成的那些getter和setter方法。 解决办法 插件lombok升级到最新版本&#xff0c;不行就卸载安装下&#xff0c;当前版本为0.32-EAP 项目依赖的lombok升级到1.18.16版本。 File——Invalidate Cache / Restart&#xff08;清除IDEA缓存&#xff0c;重启&#x…

【bzoj3224】普通平衡树——treap

我的第一道treap题目&#xff0c;treap的模版题。 代码是对着hzw的敲的&#xff0c;一边敲一边理解。。。 主要是熟悉一下treap的各种基本操作&#xff0c;详细细节看代码。 #include<cstdio> #include<iostream> #include<cstring> #include<cstdlib>…

md5加密 兼容.netcore5

md5加密 支持.netcore5 using System; using System.Security.Cryptography; namespace MyApp.HelloWorld {class Program{static void Main(string[] args){Console.WriteLine(MD5Encrypt("123456"));Console.WriteLine("Hello World!");}/// <su…

【转载】安卓开发者在使用deepin15.4时可能会遇到的问题

本文转载自&#xff1a;https://bbs.deepin.org/forum.php?modviewthread&tid138244&extra 1、在你安装好Android Studio前别忘了先安装default-jdk2、终端提示&#xff1a;Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettingsgasp 解决方法&#xff1a…

.net core linux安装

手动安装 https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-scripted-manual#manual-install 进入.net core 5.0 https://dotnet.microsoft.com/download/dotnet/5.0 再点击linux x64版本下载 https://download.visualstudio.microsoft.com/download/pr/7f736160-…