Maven打包时抛出should not point at files within the project directory …异常
Maven打包时抛出should not point at files within the project directory …异常
项目中通过 Maven 引入本地包后打包时抛出 should not point at files within the project directory … 警告
更多精彩
- 更多技术博客,请移步 asing1elife’s blog
具体问题
- 在项目中引入本地包
<dependency><groupId>ppts.model</groupId><artifactId>ppts-model</artifactId><version>1.0-SNAPSHOT</version><scope>system</scope><systemPath>${basedir}/../lib/ppts-model-1.0-SNAPSHOT.jar</systemPath>
</dependency>
- 在项目进行 package 打包时,抛出以下异常,且并没有引入对应 jar 包
[WARNING] 'dependencies.dependency.systemPath' for ts.core:ts-core:jar should not point at files within the project directory, ${basedir}/../lib/ts-core-1.0.jar will be unresolvable by dependent projects @ line 97, column 19
解决方式
- 移除本地包依赖中的
<scope/>
和<systemPath/>
<dependency><groupId>ppts.model</groupId><artifactId>ppts-model</artifactId><version>1.0-SNAPSHOT</version>
</dependency>
- 通过 maven-install-plugin 插件对 jar 包进行安装
<phase>clean</phase>
表示该 jar 包会在执行 clean 操作时引入
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-install-plugin</artifactId><version>2.5.2</version><executions><execution><id>install-ppts-model</id><phase>clean</phase><configuration><file>${basedir}/../lib/ppts-model-1.0-SNAPSHOT.jar</file><repositoryLayout>default</repositoryLayout><groupId>ppts.model</groupId><artifactId>ppts-model</artifactId><version>1.0-SNAPSHOT</version><packaging>jar</packaging><generatePom>true</generatePom></configuration><goals><goal>install-file</goal></goals></execution></executions>
</plugin>
Maven打包时抛出should not point at files within the project directory …异常相关推荐
- linux的android工作室,Android工作室在启动时抛出错误,linux机器
我只是将我的Android Studio从1.5升级到2.3,我只是解压缩文件夹并复制到下载文件夹中,现在当我启动android studio时,我收到了此消息:Android工作室在启动时抛出错误, ...
- idea中 maven打包时时报错User setting file does not exist C:\Users\lenevo\.m2\setting.xml,
第一种错误 :idea中 maven打包时时报错User setting file does not exist C:\Users\lenevo\.m2\setting.xml, 解决方案如下:将ma ...
- AES加密时抛出java.security.InvalidKeyException:#160;Illegal#160;key#160;size#160;or#160;def...
原文:AES加密时抛出java.security.InvalidKeyException: Illegal key size or def 使用AES加密时,当密钥大于128时,代码会抛出 java. ...
- PHP 安装 扩展时 抛出 /usr/local/Cellar/php@7.1/7.1.25/pecl 异常解决
PHP 安装 扩展时 抛出 /usr/local/Cellar/php@7.1/7.1.25/pecl 异常解决 参考文章: (1)PHP 安装 扩展时 抛出 /usr/local/Cellar/ph ...
- 利用MAVEN打包时,如何包含更多的资源文件
首先,来看下MAVENx项目标准的目录结构: 一般情况下,我们用到的资源文件(各种xml,properites,xsd文件等)都放在src/main/resources下面,利用maven打包时,ma ...
- android 数组指针异常,Android JSON解析Json数组是[]在解析时抛出空指针异常,如何以正确的方式写入?...
我有复杂的API,我解析并显示在列表视图中,我将努力解析JSONArray.Here我将在斗争之后Json数组这是在帖子json对象"tags_name":["Activ ...
- Maven打包时去掉项目版本号
Maven打包时去掉项目版本号 Maven打包后,jar或war文件名里带有版本号信息,如projectname0.0.1-SNAPSHOT.jar等,怎么去掉呢? 解决办法: 打开项目pom.xml ...
- Maven打包时出现程序包不存在和test相关报错
Maven打包时出现程序包不存在和test相关报错 1.程序包不存在的问题 例如打包失败后报错情况如下: 程序可编译执行,但是打包存在问题.通过查看maven列表可以看到相关依赖包也导入成功,可能是m ...
- 错误记录一:线程通信时抛出Exception in thread “Thread-0” java.lang.IllegalMonitorStateException异常
错误记录一:线程通信时抛出Exception in thread "Thread-0" java.lang.IllegalMonitorStateException异常 完整异常: ...
最新文章
- Struts2-result类型
- Java Iterator 接口简介和简单用法.
- oracle学习之三--多表查询
- Educational Codeforces Round 80 (Rated for Div. 2) E. Messenger Simulator 思维 + 树状数组
- 专题突破一之分块——Untitled Problem II,Balanced Lineup,[ioi2009]Regions
- 《白日梦想家》观后感
- python re.split_python re模块re.split将字符串分割后返回列表
- (王道408考研数据结构)第七章查找-第二节3:分块查找
- 反序列化时恢复transient字段
- nginx 负载均衡proxy 配置
- C#读取excel 找不到可安装的ISAM
- 南宁公交有两个应用付费通道,互不通用
- CAD制图软件中动态块功能的使用技巧
- 阿里云GIS曾志明:空间数据中台是什么,怎么用
- Windows动态链接库DLL和静态库的原理以及创建方法
- 中国云计算的十年江湖
- html检测正则表达式,正则表达式在线测试工具
- Idempotent Consumer
- Word合并所有段落再按字数划分段落
- 斯人已去,因荣永存(下)
热门文章
- 【转载】shell实例手册
- 水晶报表下将数字转换成金额大写的公式
- 直接通过ADO操作Access数据库(修改版)
- 大数据之-Hadoop3.x_MapReduce_二次排序案例---大数据之hadoop3.x工作笔记0116
- AndroidStudio_从Eclipse到AndroidStudio开发工具_认识使用AndroidStudio_导入用eclipse开发的工程---Android原生开发工作笔记69
- 分布式系统认证方案_分布式系统认证方案_Spring Security OAuth2.0认证授权---springcloud工作笔记136
- 通过kubeadm的方式以及二进制包的方式安装k8s的对比总结---K8S_Google工作笔记0016
- STM32工作笔记0067---SPI接口原理与配置
- STM32工作笔记001---认识开发板资源-以正点原子战舰版开发板为例
- java零碎要点---struts2中redirect和redirectAction的区别