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>

  • 相关阅读:
    4.22日日常记录
    ajax再接触
    一些小姿势
    打星功能
    悟透javascript读书笔记
    初接触eclipse和前后端调试问题 待续
    python实现后台员工管理系统
    python实现增删改查操作
    python实现6种方法打印九九乘法表
    python实现猜数字游戏
  • 原文地址:https://www.cnblogs.com/duanxz/p/5569595.html
Copyright © 2011-2022 走看看