Maven导入nutzboot-starter-nutz-dao:2.2-SNAPSHOT包失败,缺少该版本的包,
提示
Dependency 'org.nutz:nutzboot-starter-nutz-dao:2.2-SNAPSHOT' not found less... (Ctrl+F1)
Inspects a Maven model for resolution problems.
问答
Maven导入nutzboot-starter-nutz-dao:2.2-SNAPSHOT包失败,缺少该版本的包
标签:
nutzwk
16 回复
<mirrors>
<mirror>
<id>nutzcn</id>
<mirrorOf>central</mirrorOf>
<name>super mavem mirror for nutz users</name>
<url>https://jfrog.nutz.cn/artifactory/snapshots</url>
</mirror>
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://115.29.238.140:8081/nexus/content/repositories/releases/</url>
</mirror>
<mirror>
<id>uk</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>
</mirrors>
maven配置
执行mvn install 报错
[INFO] Building Wk-Nb-Dubbo 5.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading from nutzcn: https://jfrog.nutz.cn/artifactory/snapshots/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Wk-Nb-Dubbo ........................................ FAILURE [ 0.885 s]
[INFO] wk-framework ....................................... SKIPPED
[INFO] wk-app ............................................. SKIPPED
[INFO] wk-model ........................................... SKIPPED
[INFO] wk-common .......................................... SKIPPED
[INFO] wk-nb-service-sys .................................. SKIPPED
[INFO] wk-nb-service-cms .................................. SKIPPED
[INFO] wk-nb-service-wx ................................... SKIPPED
[INFO] wk-nb-web-platform ................................. SKIPPED
[INFO] wk-nb-web-api ...................................... SKIPPED
[INFO] wk-nb-task ......................................... SKIPPED
[INFO] wk-wiki ............................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.165 s
[INFO] Finished at: 2018-05-29T11:04:10+08:00
[INFO] Final Memory: 11M/116M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.4: Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:2.4 from/to nutzcn (https://jfrog.nutz.cn/artifactory/snapshots): Failed to transfer file: https://jfrog.nutz.cn/artifactory/snapshots/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom. Return code is: 409, ReasonPhrase: Conflict. -> [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/PluginResolutionException
请问该如何解决?兽总大佬
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://115.29.238.140:8081/nexus/content/repositories/releases/</url>
</mirror>
把型号改成central
<mirror>
<id>nutzcn</id>
<mirrorOf>central</mirrorOf>
<name>super mavem mirror for nutz users</name>
<url>https://jfrog.nutz.cn/artifactory/snapshots</url>
</mirror>
这句是哪里抄来的? 怎么用快照库映射中央库, 删掉
再次修改成central,还是报同样的问题
D:\>cd D:\NutzWk-nutzboot-dubbo
D:\NutzWk-nutzboot-dubbo>mvn install
[INFO] Scanning for projects...
Downloading from nutz-snapshots: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-parent/2.2-SNAPSHOT/maven-metadata.xml
Downloaded from nutz-snapshots: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-parent/2.2-SNAPSHOT/maven-metadata.xml (579 B at 1.4 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Wk-Nb-Dubbo
[INFO] wk-framework
[INFO] wk-app
[INFO] wk-model
[INFO] wk-common
[INFO] wk-nb-service-sys
[INFO] wk-nb-service-cms
[INFO] wk-nb-service-wx
[INFO] wk-nb-web-platform
[INFO] wk-nb-web-api
[INFO] wk-nb-task
[INFO] wk-wiki
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Wk-Nb-Dubbo 5.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading from nutzcn: https://jfrog.nutz.cn/artifactory/snapshots/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Wk-Nb-Dubbo ........................................ FAILURE [ 1.111 s]
[INFO] wk-framework ....................................... SKIPPED
[INFO] wk-app ............................................. SKIPPED
[INFO] wk-model ........................................... SKIPPED
[INFO] wk-common .......................................... SKIPPED
[INFO] wk-nb-service-sys .................................. SKIPPED
[INFO] wk-nb-service-cms .................................. SKIPPED
[INFO] wk-nb-service-wx ................................... SKIPPED
[INFO] wk-nb-web-platform ................................. SKIPPED
[INFO] wk-nb-web-api ...................................... SKIPPED
[INFO] wk-nb-task ......................................... SKIPPED
[INFO] wk-wiki ............................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.814 s
[INFO] Finished at: 2018-05-29T11:38:45+08:00
[INFO] Final Memory: 11M/115M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.4: Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:2.4 from/to nutzcn (https://jfrog.nutz.cn/artifactory/snapshots): Failed to transfer file: https://jfrog.nutz.cn/artifactory/snapshots/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom. Return code is: 409, ReasonPhrase: Conflict. -> [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/PluginResolutionException
把这个mirror删掉, 哪里抄过来的??
<mirror>
<id>nutzcn</id>
<mirrorOf>central</mirrorOf>
<name>super mavem mirror for nutz users</name>
<url>https://jfrog.nutz.cn/artifactory/snapshots</url>
</mirror>
D:\NutzWk-nutzboot-dubbo>mvn install
[INFO] Scanning for projects...
Downloading from nutz-snapshots: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-parent/2.2-SNAPSHOT/maven-metadata.xml
Downloaded from nutz-snapshots: http://jfrog.nutz.cn/artifactory/snapshots/org/nutz/nutzboot-parent/2.2-SNAPSHOT/maven-metadata.xml (579 B at 1.2 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Wk-Nb-Dubbo
[INFO] wk-framework
[INFO] wk-app
[INFO] wk-model
[INFO] wk-common
[INFO] wk-nb-service-sys
[INFO] wk-nb-service-cms
[INFO] wk-nb-service-wx
[INFO] wk-nb-web-platform
[INFO] wk-nb-web-api
[INFO] wk-nb-task
[INFO] wk-wiki
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Wk-Nb-Dubbo 5.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.maven.plugins:maven-install-plugin:jar:2.4 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Wk-Nb-Dubbo ........................................ FAILURE [ 0.030 s]
[INFO] wk-framework ....................................... SKIPPED
[INFO] wk-app ............................................. SKIPPED
[INFO] wk-model ........................................... SKIPPED
[INFO] wk-common .......................................... SKIPPED
[INFO] wk-nb-service-sys .................................. SKIPPED
[INFO] wk-nb-service-cms .................................. SKIPPED
[INFO] wk-nb-service-wx ................................... SKIPPED
[INFO] wk-nb-web-platform ................................. SKIPPED
[INFO] wk-nb-web-api ...................................... SKIPPED
[INFO] wk-nb-task ......................................... SKIPPED
[INFO] wk-wiki ............................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.466 s
[INFO] Finished at: 2018-05-29T12:59:26+08:00
[INFO] Final Memory: 9M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-install-plugin:jar:2.4 in http://115.29.238.140:8081/nexus/content/repositories/releases/ 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]
[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/PluginResolutionException
还是报错。。尴尬
重新配置3.5.3的Maven后大部分成功了,剩下三个包失败了
Results :
Tests in error:
initializationError(cn.wizzer.test.ApiTest): Lorg/nutz/ioc/impl/PropertiesProxy;
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Wk-Nb-Dubbo 5.0.1-SNAPSHOT ......................... SUCCESS [ 0.789 s]
[INFO] wk-framework ....................................... SUCCESS [ 4.612 s]
[INFO] wk-app ............................................. SUCCESS [ 0.139 s]
[INFO] wk-model ........................................... SUCCESS [ 1.756 s]
[INFO] wk-common .......................................... SUCCESS [ 1.301 s]
[INFO] wk-nb-service-sys .................................. SUCCESS [ 2.188 s]
[INFO] wk-nb-service-cms .................................. SUCCESS [ 0.375 s]
[INFO] wk-nb-service-wx ................................... SUCCESS [ 0.355 s]
[INFO] wk-nb-web-platform ................................. SUCCESS [ 4.820 s]
[INFO] wk-nb-web-api ...................................... FAILURE [ 1.760 s]
[INFO] wk-nb-task ......................................... SKIPPED
[INFO] wk-wiki 5.0.1-SNAPSHOT ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.010 s
[INFO] Finished at: 2018-05-29T14:18:14+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project wk-nb-web-api: There are test failures.
[ERROR]
[ERROR] Please refer to D:\NutzWk-nutzboot-dubbo\wk-app\wk-nb-web-api\target\surefire-reports for the individual test results.
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :wk-nb-web-api
添加回复
请先登陆