但是我用elipse导入开源版的springcluod版的bladex,项目没有报错
最后我把blade-common 单独抽出来运行,发现把开源版的pom.xml 文件中内容替换到企业版中就不报错了,但是这只是一个blade-common,怎么让
企业版所有模块都不报错
另外我下的最新的企业版的是2.7.0
之前下在开源版的是2.8.0
开源版本比最新企业版版本高,两个里面pom文件的内容也不一样
我maven bladex报如下错误
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Failure to find org.springblade.platform:blade-bom:pom:2.7.0.RELEASE in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced @ line 46, column 25
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.springblade:BladeX:2.7.0.RELEASE (D:\lcsysdb2\bladex\pom.xml) has 1 error
[ERROR] Non-resolvable import POM: Failure to find org.springblade.platform:blade-bom:pom:2.7.0.RELEASE in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced @ line 46, column 25 -> [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/display/MAVEN/UnresolvableModelException
maven bladex-common 报如下错误
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-common:${bladex.project.version}, D:\lcsysdb2\bladex\blade-common\pom.xml, line 14, column 14
[ERROR] Non-resolvable import POM: Failure to find org.springblade.platform:blade-bom:pom:2.7.0.RELEASE in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced @ org.springblade:BladeX:2.7.0.RELEASE, D:\lcsysdb2\bladex\pom.xml, line 46, column 25
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-core-launch:jar is missing. @ org.springblade:blade-common:${bladex.project.version}, D:\lcsysdb2\bladex\blade-common\pom.xml, line 18, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-core-auto:jar is missing. @ org.springblade:blade-common:${bladex.project.version}, D:\lcsysdb2\bladex\blade-common\pom.xml, line 22, column 21
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.springblade:blade-common:2.7.0.RELEASE (D:\lcsysdb2\bladex\blade-common\pom.xml) has 3 errors
[ERROR] Non-resolvable import POM: Failure to find org.springblade.platform:blade-bom:pom:2.7.0.RELEASE in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced @ org.springblade:BladeX:2.7.0.RELEASE, D:\lcsysdb2\bladex\pom.xml, line 46, column 25 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-core-launch:jar is missing. @ org.springblade:blade-common:${bladex.project.version}, D:\lcsysdb2\bladex\blade-common\pom.xml, line 18, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-core-auto:jar is missing. @ org.springblade:blade-common:${bladex.project.version}, D:\lcsysdb2\bladex\blade-common\pom.xml, line 22, column 21
[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/display/MAVEN/UnresolvableModelException
我是在本地电脑上面跑的,当然本地电脑也是连接外网的
看报错已经可以确定是连不上bladex私服导致的问题,为什么改成开源版的就行了是因为开源版的依赖是在maven中央库的,被阿里云映射可以直接下载到。bladex私服没法访问是你本地maven的配置问题,具体解决办法可以看下这个帖子的步骤:https://sns.bladex.cn/q-762.html
扫一扫访问 Blade技术社区 移动端