我收到以下错误
[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
但是这些jar和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 :(得分:0)
一切都很好。您有警告,而不是错误。 此警告与jar的构建方式和上载到存储库有关。它不会影响功能。
我希望这会有所帮助。