企业版SpringCloud的BladeXAvue联合版用eclipse导入后报错

Blade 未结 2 1675
javahuan
javahuan 剑圣 2020-12-19 23:00

image.png
但是我用elipse导入开源版的springcluod版的bladex,项目没有报错 
image.png
最后我把blade-common 单独抽出来运行,发现把开源版的pom.xml 文件中内容替换到企业版中就不报错了,但是这只是一个blade-common,怎么让
企业版所有模块都不报错
另外我下的最新的企业版的是2.7.0
image.png
之前下在开源版的是2.8.0
image.png
开源版本比最新企业版版本高,两个里面pom文件的内容也不一样

2条回答
  • 2020-12-20 11:27

    开源版和企业版的版本线是不一样的,企业版2.7.0你如果要和开源版对比,可以把它看成3.7.0。

    另外你需要把报错提示发一下,否则无法帮你找原因。盲猜是没法访问到bladex的nexus私服,没法下载依赖所以出错了,但具体原因还要看你的报错信息才能判断。

    另外你还需要把之前开源版的项目先移除,防止有缓存导致影响,都移除后再倒入bladex

    0 讨论(0)
  • 2020-12-20 15:18

    我maven bladex报如下错误
    image.png

    [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 报如下错误
    image.png

    [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

    我是在本地电脑上面跑的,当然本地电脑也是连接外网的

    作者追问:2020-12-21 11:49

    看报错已经可以确定是连不上bladex私服导致的问题,为什么改成开源版的就行了是因为开源版的依赖是在maven中央库的,被阿里云映射可以直接下载到。bladex私服没法访问是你本地maven的配置问题,具体解决办法可以看下这个帖子的步骤:https://sns.bladex.cn/q-762.html

    0 讨论(0)
提交回复