Failed to execute goal on project front-architecture: Could not resolve dependencies for project
cn.paohe:front-architecture:jar:0.0.1: Failed to collect dependencies at cn.paohe:front-paohe:jar:1.1.8:
Failed to read artifact descriptor for cn.paohe:front-paohe:jar:1.1.8: Failure to find cn.paohe:
framework-paohe:pom:${paohe.framework.version} in http://183.62.35.227:8081/nexus/content/groups/public/
was cached in the local repository, resolution will not be reattempted until the update interval of nexus
has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project
front-architecture: Could not resolve dependencies for project cn.paohe:front-architecture:jar:0.0.1:
Failed to collect dependencies at cn.paohe:front-paohe:jar:1.1.8
解決:
framework-paohe(Maven項目)的pom文件中使用了Maven變量作爲主項目版本號(${paohe.framework.version}),因此引用此包的子模塊中再使用變量獲取就會產生問題。
因此可以在framework-paohe中使用常量代替變量即可。