zoukankan      html  css  js  c++  java
  • maven问题

    pom.xml

    ...
    </dependencies>
        <repositories>
            <repository>
                <id>sf-nexus</id>
                <name>sf-nexus</name>
                <url>http://10.202.34.32:8081/nexus/content/groups/public</url>
            </repository>
            <repository>
                <id>central</id>
                <name>central</name>
                <url>http://repo1.maven.org/maven2</url>
            </repository>
        </repositories>
        <distributionManagement>
            <repository>
                <id>nexus-releases</id>
                <name>Local Nexus Releases Repository</name>
                <url>http://10.202.34.32:8081/nexus/content/repositories/releases</url>
                <uniqueVersion>false</uniqueVersion>
            </repository>
            <snapshotRepository>
                <id>nexus-snapshot</id>
                <name>Local Nexus Snapshots Repository</name>
                <url>http://10.202.34.32:8081/nexus/content/repositories/snapshots</url>
                <uniqueVersion>false</uniqueVersion>
            </snapshotRepository>
        </distributionManagement>
        <build>
    
    ...
    ...

    D:shivaomcscodecache>mvn package
    [INFO] Scanning for projects...
    [WARNING]
    [WARNING] Some problems were encountered while building the effective model for com.sf.omcs:omcs-cache:jar:0.0.1-SNAPSHO
    T
    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ com.sf.omcs:omcs:0.
    0.1-SNAPSHOT, D:shivaomcscodepom.xml, line 188, 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 cache 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/24/maven-parent-24.pom
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 01:03 min
    [INFO] Finished at: 2016-06-08T11:47:20+08:00
    [INFO] Final Memory: 10M/150M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Plugin org.apache.maven.plugins:maven-dependency-plugin:2.9 or one of its dependencies could not be resolved: Fa
    iled to read artifact descriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:2.9: Could not transfer artifa
    ct org.apache.maven:maven-parent:pom:24 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.ap
    ache.org:443 [repo.maven.apache.org/23.235.43.215] failed: Read timed out -> [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

    D:shivaomcscodecache>

    镜像修改如下后,问题解决:

    <repository>
    <id>central</id>
    <name>central</name>
    <url>http://repo.maven.apache.org/maven2</url>
    </repository>

  • 相关阅读:
    装饰器函数(一)
    面向对象的初阶复习
    内置函数/反射/内置方法(单例类面)
    property特殊属性/类方法/静态方法
    多态/封装
    接口类抽象类
    初始继承之顺序/深度优先及广度优先
    类涉及的空间关系及组合(可变项地址面)
    <head></head>
    让IE6 IE7 IE8 IE9 IE10 IE11支持Bootstrap的解决方法
  • 原文地址:https://www.cnblogs.com/duanxz/p/5569595.html
Copyright © 2011-2022 走看看