should not point at files within the project directory

本文介绍在使用达梦数据库进行国产化项目时,如何通过Maven正确引入和管理数据库驱动jar包,避免打包时的路径依赖问题,实现项目的顺利部署。
# 情景
前两天,我这边在做国产化,引入的是达梦数据库,然而网上的教程还要写入驱动jar的绝对路径
但是打包maven的时候不行啊,后来在网上查找相关报错信息的解决方案

于是

# 解决
1. maven环境 需要做好环境变量配置
2. 进入maven安装的bin目录
3. mvn install:install-file -DgroupId=com.rap -DartifactId=rap-project -Dversion=2.0.1  -Dpackaging=jar -Dfile=C:\Users\uld\Desktop\rap-service-2.0.1.jar

4. 对应如下
    <groupId>com.rap</groupId>
    <artifactId>rap-project</artifactId>
    <version>2.0.1</version>

 

帮忙解读: Some problems were encountered while building the effective model for com.eastrobot:robot-aia:war:1.0 'dependencies.dependency.systemPath' for com.eastrobot.robotsuite:robot-base:jar should not point at files within the project directory, ${project.basedir}/src/main/webapp/WEB-INF/lib/robot-base-2.1.jar will be unresolvable by dependent projects @ line 106, column 25 'dependencies.dependency.systemPath' for com.eastrobot.robotsuite:robot-face:jar should not point at files within the project directory, ${project.basedir}/src/main/webapp/WEB-INF/lib/robot-face-1.0.jar will be unresolvable by dependent projects @ line 113, column 25 'dependencies.dependency.systemPath' for com.eastrobot.robotsuite:robotnerve-api:jar should not point at files within the project directory, ${project.basedir}/src/main/webapp/WEB-INF/lib/robotnerve-api-1.0.1.jar will be unresolvable by dependent projects @ line 120, column 25 'dependencies.dependency.systemPath' for com.eastrobot:robot-aia-jdk6:jar should not point at files within the project directory, ${project.basedir}/src/main/webapp/WEB-INF/lib/robot-aia-jdk6-1.0.jar will be unresolvable by dependent projects @ line 127, column 25 'dependencies.dependency.systemPath' for com.incesoft.ibotsdk:ibotsdk-api:jar should not point at files within the project directory, ${project.basedir}/src/main/webapp/WEB-INF/lib/ibotsdk-api-1.0.9.jar will be unresolvable by dependent projects @ line 134, column 25 'dependencies.dependency.systemPath' for com.incesoft.ibotsdk:ibotsdk:jar should not point at files within the project directory, ${project.basedir}/src/main/webapp/WEB-INF/lib/ibotsdk-1.0.9.jar will be unresolvable by dependent projects @ line 141, column 25 'dependencies.dependency.systemPath' for aiaitframework:aiaitframework:jar should not point at files within the project directory, ${basedir}/src/main/webapp/WEB-INF/lib/aiaitframework.jar will be unresolvable by dependent projects @ line 295, column 25 'dependencies.dependency.systemPath' for jcifs:jcifs:jar should not point at files within the project directory, ${basedir}/src/main/webapp/WEB-INF/lib/jcifs-1.3.12.jar will be unresolvable by dependent projects @ line 303, column 25 'dependencies.dependency.version' for org.projectlombok:lombok:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 331, column 22 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 13, column 21 It is highly recommended to fix these problems because they threaten the stability of your build. For this reason, future Maven versions might no longer support building such malformed projects.
08-09
Some problems were encountered while building the effective model for financialService:financialService:jar:0.0.1-SNAPSHOT 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: mysql:mysql-connector-java:jar -> version 8.0.19 vs (?) @ line 535, column 21 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: net.coobird:thumbnailator:jar -> duplicate declaration of version 0.4.8 @ line 542, column 21 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: commons-codec:commons-codec:jar -> version 1.9 vs 1.10 @ line 553, column 21 'dependencies.dependency.systemPath' for com.icbc:hsm-software-share:jar should not point at files within the project directory, ${project.basedir}/jar/hsm-software-share-1.0.5.jar will be unresolvable by dependent projects @ line 590, column 25 'dependencies.dependency.systemPath' for com.icbc:icbc-api-sdk-cop-io:jar should not point at files within the project directory, ${project.basedir}/jar/icbc-api-sdk-cop-io.jar will be unresolvable by dependent projects @ line 598, column 25 'dependencies.dependency.systemPath' for com.icbc:icbc-api-sdk-cop:jar should not point at files within the project directory, ${project.basedir}/jar/icbc-api-sdk-cop.jar will be unresolvable by dependent projects @ line 606, column 25 'dependencies.dependency.systemPath' for com.icbc:icbc-ca:jar should not point at files within the project directory, ${project.basedir}/jar/icbc-ca.jar will be unresolvable by dependent projects @ line 614, column 25 It is highly recommended to fix these problems because they threaten the stability of your build. For this reason, future Maven versions might no longer support building such malformed projects. 这是什么错
06-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值