NutzCN Logo
问答 nutzwk maven 下载粗错
发布于 2656天前 作者 Cancerce1l 1602 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

改了镜像库的mirror of标签,日志也显示有尝试jfrog.nutz.cn,但是下载失败?

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for cn.wizzer.app:wk-web:war:4.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.nutz:nutz-plugins-views:jar -> duplicate declaration of version ${nutz-version} @ cn.wizzer:wk-parent:4.0.1-SNAPSHOT, D:\ideaRepo\NutzWk\pom.xml, line 104, column 21
[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 wk-web 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-war-plugin/2.6/maven-war-plugin-2.6.pom
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-war-plugin/2.6/maven-war-plugin-2.6.pom
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-war-plugin/2.6/maven-war-plugin-2.6.pom (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-plugins/27/maven-plugins-27.pom
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-plugins/27/maven-plugins-27.pom (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-war-plugin/2.6/maven-war-plugin-2.6.jar
Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-war-plugin/2.6/maven-war-plugin-2.6.jar (0 B at 0.0 KB/sec)
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/cn/wizzer/wk-framework/4.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata cn.wizzer:wk-framework:4.0.1-SNAPSHOT/maven-metadata.xml from/to nutzcn-snapshots (https://jfrog.nutz.cn/artifactory/snapshots): Received fatal alert: handshake_failure
[WARNING] Failure to transfer cn.wizzer:wk-framework:4.0.1-SNAPSHOT/maven-metadata.xml from https://jfrog.nutz.cn/artifactory/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of nutzcn-snapshots has elapsed or updates are forced. Original error: Could not transfer metadata cn.wizzer:wk-framework:4.0.1-SNAPSHOT/maven-metadata.xml from/to nutzcn-snapshots (https://jfrog.nutz.cn/artifactory/snapshots): Received fatal alert: handshake_failure
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/cn/wizzer/wk-framework/4.0.1-SNAPSHOT/wk-framework-4.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.837 s
[INFO] Finished at: 2017-08-08T13:31:56+08:00
[INFO] Final Memory: 10M/157M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project wk-web: Could not resolve dependencies for project cn.wizzer.app:wk-web:war:4.0.1-SNAPSHOT: Failed to collect dependencies at cn.wizzer:wk-framework:jar:4.0.1-SNAPSHOT: Failed to read artifact descriptor for cn.wizzer:wk-framework:jar:4.0.1-SNAPSHOT: Could not transfer artifact cn.wizzer:wk-framework:pom:4.0.1-SNAPSHOT from/to nutzcn-snapshots (https://jfrog.nutz.cn/artifactory/snapshots): Received fatal alert: handshake_failure -> [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
10 回复

按照这个修改过了。日志显示,irog.nutz.cn下载也失败了。

肯定没改对咯

这样是错误的吗?

  <mirrors>
    <!-- mirror
     | Specifies a repository mirror site to use instead of a given repository. The repository that
     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
     |
    <mirror>
      <id>mirrorId</id>
      <mirrorOf>repositoryId</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://my.repository.com/repo/path</url>
    </mirror>
     -->
    <mirror>
        <id>local_mirror</id>
        <mirrorOf>central</mirrorOf>
        <name>local_mirror</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>
  </mirrors>


<profile>
            <id>nexus</id>
            <repositories>
                <repository>
                    <id>nexus_public</id>
                    <url>http://maven.aliyun.com/nexus/content/groups/public</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                    <enabled>true</enabled>
                </snapshots>    
            </repository>
        </repositories>
        <pluginRepositories>
            <pluginRepository>
                <id>nexus_public</id>
				<!--http://172.16.30.20:8044/nexus/content/groups/public/-->
                <url>http://maven.aliyun.com/nexus/content/groups/public</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
             </pluginRepository>
        </pluginRepositories>
    </profile>
  </profiles>
	<activeProfiles>
	    <activeProfile>nexus</activeProfile>
	</activeProfiles>

看上去没错, mvn -U package , 强制更新一下

另外, 你没看wk-wiki里面的说明?? 要先执行 mvn install的

这是install 的出错信息,找不到原因....

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for cn.wizzer:wk-framework:jar:4.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.nutz:nutz-plugins-views:jar -> duplicate declaration of version ${nutz-version} @ cn.wizzer:wk-parent:4.0.1-SNAPSHOT, D:\ideaRepo\NutzWk\pom.xml, line 104, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for cn.wizzer.app:wk-web:war:4.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.nutz:nutz-plugins-views:jar -> duplicate declaration of version ${nutz-version} @ cn.wizzer:wk-parent:4.0.1-SNAPSHOT, D:\ideaRepo\NutzWk\pom.xml, line 104, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for cn.wizzer.app:wk-app:pom:4.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.nutz:nutz-plugins-views:jar -> duplicate declaration of version ${nutz-version} @ cn.wizzer:wk-parent:4.0.1-SNAPSHOT, D:\ideaRepo\NutzWk\pom.xml, line 104, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for cn.wizzer:wk-parent:pom:4.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.nutz:nutz-plugins-views:jar -> duplicate declaration of version ${nutz-version} @ line 104, column 21
[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] Reactor Build Order:
[INFO] 
[INFO] NutzWk
[INFO] wk-framework
[INFO] wk-app
[INFO] wk-web
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building NutzWk 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ wk-parent ---
[INFO] Installing D:\ideaRepo\NutzWk\pom.xml to C:\Users\Cc\.m2\repository\cn\wizzer\wk-parent\4.0.1-SNAPSHOT\wk-parent-4.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building wk-framework 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ wk-framework ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\ideaRepo\NutzWk\wk-framework\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ wk-framework ---
[INFO] Compiling 36 source files to D:\ideaRepo\NutzWk\wk-framework\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] NutzWk ............................................. SUCCESS [  0.396 s]
[INFO] wk-framework ....................................... FAILURE [  1.457 s]
[INFO] wk-app ............................................. SKIPPED
[INFO] wk-web ............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.081 s
[INFO] Finished at: 2017-08-08T14:14:27+08:00
[INFO] Final Memory: 13M/222M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project wk-framework: Fatal error compiling: 无效的目标发行版: 1.8 -> [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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :wk-framework

改过什么?? nutzwk里面的东西不需要改动就能跑的

没改过东西。手贱clean了依赖,然后竟然没报错...不知道原因。运行成功了。感谢。

添加回复
请先登陆
回到顶部