version 问题contains an expression but should be a constant

 

 

maven2 up to maven3的'version' contains an expression but should be a constant 

 

 

这个更改为常量即可重新编译了。

 

今天遇到个问题,连接池的一直连接不到,最后重新尝试了一下代码的,结果证明是连接访问权限问题。

连接访问权限问题。

结论如下:

 

 

问题排查:一个错误引起的pom 异常,进而引起 jar 失败。

'version' contains an expression but should be a constant. @ com.tplink.cdd:person-api:${person-version}, D:\workspace\git_localrepo\access-control\person\person-api\pom.xml, line 13, column 14 Some problems were encountered while building the effective model for com.tplink.cdd:person-core:jar:1.0.0 'version' contains an expression but should be a constant. @ com.tplink.cdd:person-core:${person-version}, D:\workspace\git_localrepo\access-control\person\person-core\pom.xml, line 13, column 14 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.tplink.cdd:vigi-common-eventbus:jar -> duplicate declaration of version (?) @ com.tplink.cdd:person-core:${person-version}, D:\workspace\git_localrepo\access-control\person\person-core\pom.xml, line 74, column 21 Some problems were encountered while building the effective model for com.tplink.cdd:person-port-grpc-client:jar:1.0.0 'version' contains an expression but should be a constant. @ com.tplink.cdd:person-port-grpc-client:${person-version}, D:\workspace\git_localrepo\access-control\person\person-port-grpc-client\pom.xml, line 12, column 14 Some problems were encountered while building the effective model for com.tplink.cdd:person-port-grpc-api:jar:1.0.0 'version' contains an expression but should be a constant. @ com.tplink.cdd:person-port-grpc-api:${person-version}, D:\workspace\git_localrepo\access-control\person\person-port-grpc-api\pom.xml, line 12, column 14 Some problems were encountered while building the effective model for com.tplink.cdd:person-port-grpc-client-crossregion:jar:1.0.0 'version' contains an expression but should be a constant. @ com.tplink.cdd:person-port-grpc-client-crossregion:${person-version}, D:\workspace\git_localrepo\access-control\person\person-port-grpc-client-crossregion\pom.xml, line 12, column 14 Some problems were encountered while building the effective model for com.tplink.cdd:person-port-grpc-server:jar:1.0.0 'version' contains an expression but should be a constant. @ com.tplink.cdd:person-port-grpc-server:${person-version}, D:\workspace\git_localrepo\access-control\person\person-port-grpc-server\pom.xml, line 12, column 14 Some problems were encountered while building the effective model for com.tplink.cdd:person-port-repository-api:jar:1.0.0 'version' contains an expression but should be a constant. @ com.tplink.cdd:person-port-repository-api:${person-version}, D:\workspace\git_localrepo\access-control\person\person-port-repository-api\pom.xml, line 11, column 14 Some problems were encountered while building the effective model for com.tplink.cdd:person-port-repository-mongo:jar:1.0.0 'version' contains an expression but should be a constant. @ com.tplink.cdd:person-port-repository-mongo:${person-version}, D:\workspace\git_localrepo\access-control\person\person-port-repository-mongo\pom.xml, line 11, column 14 Some problems were encountered while building the effective model for com.tplink.cdd:person-port-web:jar:1.0.0 'version' contains an expression but should be a constant. @ com.tplink.cdd:person-port-web:${person-version}, D:\workspace\git_localrepo\access-control\person\person-port-web\pom.xml, line 11, column 14 Some problems were encountered while building the effective model for com.tplink.cdd:person-port-cloud:jar:1.0.0 'version' contains an expression but should be a constant. @ com.tplink.cdd:person-port-cloud:${person-version}, D:\workspace\git_localrepo\access-control\person\person-port-cloud\pom.xml, line 13, column 14 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-16
[ERROR] [ERROR] Some problems were encountered while processing the POMs: [WARNING] 'version' contains an expression but should be a constant. @ com.kmsoft.extend:PLM-EXTEND:${kmcloud.ext.version}, E:\IDEA\plm-ext-main\pom.xml, line 10, column 14 [FATAL] Non-resolvable parent POM for com.kmsoft.extend:plm-taskPlan-server:4.0.2-E1.0: Cannot access aliyunmaven (https://maven.aliyun.com/repository/public) in offline mode and the artifact com.kmsoft.extend:PLM-EXTEND:pom:4.0.2-E1.0 has not been downloaded from it before. and 'parent.relativePath' points at wrong local POM @ line 5, column 13 [WARNING] 'version' contains an expression but should be a constant. @ com.kmsoft.extend:PLM-EXTEND:${kmcloud.ext.version}, E:\IDEA\plm-ext-main\pom.xml, line 10, column 14 [WARNING] 'version' contains an expression but should be a constant. @ com.kmsoft.extend:kmwp-ext-server:${kmcloud.ext.version}, E:\IDEA\plm-ext-main\kmwp-ext-server\pom.xml, line 12, column 14 [WARNING] 'version' contains an expression but should be a constant. @ com.kmsoft.extend:PLM-EXTEND:${kmcloud.ext.version}, E:\IDEA\plm-ext-main\pom.xml, line 10, column 14 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.kmsoft.extend:plm-taskPlan-server:4.0.2-E1.0 (E:\IDEA\plm-ext-main\plm-taskPlan-server\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for com.kmsoft.extend:plm-taskPlan-server:4.0.2-E1.0: Cannot access aliyunmaven (https://maven.aliyun.com/repository/public) in offline mode and the artifact com.kmsoft.extend:PLM-EXTEND:pom:4.0.2-E1.0 has not been downloaded from it before. and 'parent.relativePath' points at wrong local POM @ line 5, column 13 -> [Help 2] [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] h
03-14
maven执行install时出错[ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for com.jzo2o:jzo2o-seata:1.0-SNAPSHOT: Could not find artifact com.jzo2o:jzo2o-parent:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 6, column 13 [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.alibaba.cloud:spring-cloud-starter-alibaba-sentinel:jar -> duplicate declaration of version ${spring-cloud-alibaba.version} @ com.jzo2o:jzo2o-parent:1.0-SNAPSHOT, E:\BaiduNetdiskDownload\jzo2o\jzo2o-framework\jzo2o-parent\pom.xml, line 279, column 25 [WARNING] 'version' contains an expression but should be a constant. @ com.jzo2o:jzo2o-knife4j-web:${project.parent.version}, E:\BaiduNetdiskDownload\jzo2o\jzo2o-framework\jzo2o-knife4j-web\pom.xml, line 14, column 14 [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.alibaba.cloud:spring-cloud-starter-alibaba-sentinel:jar -> duplicate declaration of version ${spring-cloud-alibaba.version} @ line 279, column 25 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.jzo2o:jzo2o-seata:1.0-SNAPSHOT (E:\BaiduNetdiskDownload\jzo2o\jzo2o-framework\jzo2o-seata\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for com.jzo2o:jzo2o-seata:1.0-SNAPSHOT: Could not find artifact com.jzo2o:jzo2o-parent:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 6, column 13 -> [Help 2] [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/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/d
03-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

迅捷的软件产品制作专家

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值