2015-10-15 27 views
0

没有依赖信息我收到以下错误对罐子的POM缺少可用

[WARNING] The POM for com.westgroup.caesar.uuid:wguuidJava:jar:1.0 is missing, no dependency information available 
[WARNING] The POM for charliedog:argv:jar:0.0.1 is missing, no dependency information available 
[WARNING] The POM for com.oracle:classes12:jar:10.1.0.5.0 is missing, no dependency information available 

但这些罐和POM文件被下载到从中央存储库的Nexus我的本地库。当我运行命令mvn clean install时,出现上述错误。

Maven的settings.xml文件:

<server> 
    <id>releases</id> 
    <username>abc</username> 
    <password>abc</password> 
</server> 
<server> 
    <id>snapshots</id> 
    <username>abc</username> 
    <password>abc</password> 
</server> 
<server> 
    <id>thirdparty</id> 
    <username>abc</username> 
    <password>abc</password> 
</server> 
<mirror> 
    <id>nexus-public-snapshots</id> 
    <mirrorOf>public-snapshots</mirrorOf> 
    <url>http://maven.int.westgroup.com:8081/nexus/content/groups/public-snapshots</url> 
</mirror> 
<mirror> 
    <id>nexus</id> 
    <mirrorOf>*</mirrorOf> 
    <name>Nexus Public Mirror</name> 
    <url>http://maven.int.westgroup.com:8081/nexus/content/groups/public</url> 
</mirror> 
<mirror> 
    <id>nexus-third-party</id> 
    <mirrorOf>third-party</mirrorOf> 
    <url>http://maven.int.westgroup.com:8081/nexus/content/repositories/thirdparty/</url> 
</mirror> 
<profiles> 
    <profile> 
     <id>development</id> 
     <repositories> 
      <repository> 
       <id>central</id> 
       <url>http://central</url> 
       <releases> 
        <enabled>true</enabled> 
       </releases> 
       <snapshots> 
        <enabled>true</enabled> 
       </snapshots> 
      </repository> 
     </repositories> 
     <pluginRepositories> 
      <pluginRepository> 
       <id>central</id> 
       <url>http://central</url> 
       <releases> 
        <enabled>true</enabled> 
       </releases> 
       <snapshots> 
        <enabled>true</enabled> 
       </snapshots> 
      </pluginRepository> 
     </pluginRepositories> 
    </profile> 
    <profile> 
      <!--this profile will allow snapshots to be searched when activated--> 
     <id>public-snapshots</id> 
     <repositories> 
      <repository> 
       <id>public-snapshots</id> 
       <url>http://public-snapshots</url> 
       <releases> 
        <enabled>true</enabled> 
       </releases> 
       <snapshots> 
        <enabled>true</enabled> 
       </snapshots> 
      </repository> 
     </repositories> 
     <pluginRepositories> 
      <pluginRepository> 
       <id>public-snapshots</id> 
       <url>http://public-snapshots</url> 
       <releases> 
        <enabled>true</enabled> 
       </releases> 
       <snapshots> 
        <enabled>true</enabled> 
       </snapshots> 
      </pluginRepository> 
     </pluginRepositories> 
    </profile> 
    <profile> 
      <!--this profile will allow snapshots to be searched when activated--> 
     <id>third-party</id> 
     <repositories> 
      <repository> 
       <id>third-party</id> 
       <url>http://thirdparty</url> 
       <releases> 
        <enabled>true</enabled> 
       </releases> 
       <snapshots> 
        <enabled>true</enabled> 
       </snapshots> 
      </repository> 
     </repositories> 
     <pluginRepositories> 
      <pluginRepository> 
       <id>third-party</id> 
       <url>http://thirdparty</url> 
       <releases> 
        <enabled>true</enabled> 
       </releases> 
       <snapshots> 
        <enabled>true</enabled> 
       </snapshots> 
      </pluginRepository> 
     </pluginRepositories> 
    </profile> 
</profiles> 

    <!-- activeProfiles 
    | List of profiles that are active for all builds. 
    |--> 
<activeProfiles> 
    <activeProfile>development</activeProfile> 
    <activeProfile>public-snapshots</activeProfile> 
    <activeProfile>third-party</activeProfile> 
</activeProfiles> 

我已经上传这些缺失的罐子到的Nexus仓库到第三方库。

wguuidJava jar and pom file in my local repository

可否请你让我知道如果我错过任何配置在settings.xml文件?

回答

0

一切都很好。您有警告,而不是错误。 此警告与如何构建jar并将其上传到存储库有关。它不影响功能。

我希望这会有所帮助。

+1

我遇到了同样的问题,虽然它可能注册为警告maven构建仍然失败。 –

+0

检查日志。警告不应该使构建失败。你可能在那里有一个隐藏的错误... –

相关问题