dangdangdotcom / dubbox

Dubbox now means Dubbo eXtensions, and it adds features like RESTful remoting, Kyro/FST serialization, etc to the Dubbo service framework.
http://dangdangdotcom.github.io/dubbox
Apache License 2.0
4.89k stars 2.06k forks source link

dubbox2.8.4 为啥不能打包成功 #392

Open van-scott opened 5 years ago

van-scott commented 5 years ago

1、执行mvn clean install 然后执行, 打包失败 PS D:\Projects\dubbox-dubbox-2.8.4\dubbo-admin> mvn clean install [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.alibaba:dubbo-admin:war:2.8.4 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ com.alibaba:dubbo-parent:2.8.4, D:\Projects\dubbox-dubbox-2.8.4\pom.xml, line 480, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building dubbo-admin 2.8.4 [INFO] ------------------------------------------------------------------------ Downloading: http://jrepo2.yypm.com/nexus/content/groups/public/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml Downloading: http://jrepo2.yypm.com/nexus/content/repositories/releases/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml Downloading: http://jrepo2.yypm.com/nexus/content/repositories/snapshots/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-source-plugin/maven-metadata.xml from/to nexus-public-repo (http://jrepo2.yypm.com/nexus/content/groups/public): Connect to jrepo2.yypm.com:80 [jrepo2.yypm.com/113.108.231.170, jrepo2.yypm.com/122.13.215.240] failed: Connection refused: connect [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-source-plugin/maven-metadata.xml from/to yy-plugin-releases (http://jrepo2.yypm.com/nexus/content/repositories/releases): Connect to jrepo2.yypm.com:80 [jrepo2.yypm.com/113.108.231.170, jrepo2.yypm.com/122.13.215.240] failed: Connection refused: connect [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-source-plugin/maven-metadata.xml from/to yy-plugin-snapshots (http://jrepo2.yypm.com/nexus/content/repositories/snapshots): Connect to jrepo2.yypm.com:80 [jrepo2.yypm.com/113.108.231.170, jrepo2.yypm.com/122.13.215.240] failed: Connection refused: connect Downloading: http://jrepo2.yypm.com/nexus/content/groups/public/com/alibaba/dubbo/2.8.4/dubbo-2.8.4.pom Downloading: http://jrepo2.yypm.com/nexus/content/repositories/releases/com/alibaba/dubbo/2.8.4/dubbo-2.8.4.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.999 s [INFO] Finished at: 2018-11-30T19:45:01+08:00 [INFO] Final Memory: 11M/245M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project dubbo-admin: Could not resolve dependencies for project com.alibaba:dubbo-admin:war:2.8.4: Failed to collect dependencies at com.alibaba:dubbo:jar:2.8.4: Failed to read artifact descriptor for com.alibaba:dubbo:jar:2.8.4: Could not transfer artifact com.alibaba:dubbo:pom:2.8.4 from/to nexus-public-repo (http://jrepo2.yypm.com/nexus/content/groups/public): Connect to jrepo2.yypm.com:80 [jrepo2.yypm.com/113.108.231.170, jrepo2.yypm.com/122.13.215.240] failed: Connection refused: connect -> [Help 1] [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/DependencyResolutionException PS D:\Projects\dubbox-dubbox-2.8.4\dubbo-admin>

xianbing819 commented 5 years ago

mvn命令加上参数 -DskipTests 或 -Dmaven.test.skip=true 忽略测试代码

mycill commented 4 years ago

mvn命令加上参数 -DskipTests 或 -Dmaven.test.skip=true 忽略测试代码 不行啊

mycill commented 4 years ago

同求,本地仓库有2.8.4,maven依赖也有,就是Failed to collect dependencies at com.alibaba:dubbo:jar:2.8.4: Failed to read artifact descriptor for com.alibaba:dubbo:jar:2.8.4: Failure to find com.alibaba:dubbo-parent:pom:2.8.4 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

xianbing819 commented 4 years ago

打包成功

xianbing819 commented 4 years ago

jdk8+maven3.6.2 可以试下 mvn install -U