我正在尝试使用 maven 使用 maven-nar-plugin 构建本机“C”项目。我收到以下错误:
[WARNING] The POM for org.apache.maven.plugins:maven-nar-plugin:jar:2.1-SNAPSHOT is missing, no dependency information available
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.sec.mediascoop:mediascoop:1.0-SNAPSHOT (D:\source\metadata\mediascoop\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.apache.maven.plugins:maven-nar-plugin:2.1-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.apache.maven.plugins:maven-nar-plugin:jar:2.1-SNAPSHOT -> [Help 2]
以下是我的 pom 文件中的相关部分:
<project>
...
<packaging>nar</packaging>
...
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-nar-plugin</artifactId>
<version>2.1-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<layout>NarLayout20</layout>
<libraries>
<library>
<type>shared</type>
</library>
</libraries>
</configuration>
</plugin>
</plugins>
</build>
更多信息:
- 我正在使用 Maven 版本 3.0.5
- 我也看不到中央存储库
maven-nar-plugin
中的 - 我看到它可用@ http://duns.github.io/maven-snapshots/。我不知道如何告诉 maven 看这里。默认情况下,它正在查看 (2)。