我想编译netty,但是当我运行mvn install
时,它会报告此错误:
[INFO] ------------------------------------------------------------------------
[INFO] Building The Netty Project 4.0.0.Alpha1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.jboss.maven.plugins:maven-jdocbook-plugin:jar:2.2.1 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
我找到maven-jdocbook-plugin的文档,但我找不到安装它的方法。我的maven环境是:
E:\WORKSPACE_SCALA\netty>mvn --version
Apache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800)
Maven home: E:\java\apache-maven-3.0.3\bin\..
Java version: 1.6.0_27, vendor: Sun Microsystems Inc.
Java home: E:\java\jdk1.6\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
如何安装此插件?
答案 0 :(得分:2)
缺少插件的pom,你应该尝试将JBoss插件存储库添加到你的pom.xml中(在< / project>标记之前):
<pluginRepositories>
<pluginRepository>
<id>JBoss Repo</id>
<url>https://repository.jboss.org/nexus/content/repositories/releases</url>
<name>JBoss Repo</name>
</pluginRepository>
</pluginRepositories>
您可能还需要将其添加到工件存储库中:
<repositories>
<repository>
<id>JBoss Repo</id>
<url>https://repository.jboss.org/nexus/content/repositories/releases</url>
<name>JBoss Repo</name>
</repository>
</repositories>