构建JBoss Seam示例时缺少maven-javadoc-plugin和failsafe-maven-plugin [英] maven-javadoc-plugin and failsafe-maven-plugin missing when build JBoss Seam examples

查看:114
本文介绍了构建JBoss Seam示例时缺少maven-javadoc-plugin和failsafe-maven-plugin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Maven 3.0.4构建JBoss Seam示例,但是却丢失了插件错误:

I'm trying to build JBoss Seam examples using Maven 3.0.4 but I'm getting missing plugin errors:

juliano.schroeder remoting-helloworld $ mvn jboss-as:deploy
[INFO] Scanning for projects...
[WARNING] The POM for org.jboss.maven.plugins:maven-javadoc-plugin:jar:2.8 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.jboss.maven.plugins:maven-javadoc-plugin:2.8: Plugin org.jboss.maven.plugins:maven-javadoc-plugin:2.8 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.jboss.maven.plugins:maven-javadoc-plugin:jar:2.8
[WARNING] The POM for org.apache.maven.plugins:failsafe-maven-plugin:jar:2.9 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:failsafe-maven-plugin:2.9: Plugin org.apache.maven.plugins:failsafe-maven-plugin:2.9 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:failsafe-maven-plugin:jar:2.9
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloading: https://repository.jboss.org/nexus/content/groups/public-jboss/org/codehaus/mojo/maven-metadata.xml
Downloading: https://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (21 KB at 29.4 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (11 KB at 15.0 KB/sec)
Downloaded: https://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-metadata.xml (1005 B at 0.7 KB/sec)
Downloaded: https://repository.jboss.org/nexus/content/groups/public-jboss/org/codehaus/mojo/maven-metadata.xml (1002 B at 0.7 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.343s
[INFO] Finished at: Wed Sep 26 09:58:26 BRT 2012
[INFO] Final Memory: 8M/19M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'jboss-as' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/juliano.schroeder/.m2/repository), jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/), central (http://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException

任何人都知道为什么会发生这种情况,或者可以采取什么措施加以解决?谢谢.

Anyone knows why that happens or what can be done to fix it? Thanks.

settings.xml- https://docs.google.com/open?id=0B0kQ0iZ9xNVNR3ZVRW1ldzZielE

settings.xml - https://docs.google.com/open?id=0B0kQ0iZ9xNVNR3ZVRW1ldzZielE

pom.xml- https://docs.google.com/open?id=0B0kQ0iZ9xNVNakhSVEd3djBiUmM

推荐答案

按照文档所述,如果要使用它作为命令,则应在pom.xml中的build one中声明一个插件部分:

As per doc says, you should declare a plugin section in build one, in your pom.xml if you want to use it as a command :

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.jboss.as.plugins</groupId>
          <artifactId>jboss-as-maven-plugin</artifactId>
          <version>7.2</version> <!-- or whatever you want -->
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
          <groupId>org.jboss.as.plugins</groupId>
          <artifactId>jboss-as-maven-plugin</artifactId>
          <version>7.2</version> <!-- or whatever you want -->
        </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

旧的" maven-jboss-plugin不需要它,因为它的组是org.codehaus.mojo.但是jboss-as作为一个依赖于org.jboss.as.plugins.

The "old" maven-jboss-plugin don't need it because its group is org.codehaus.mojo. But jboss-as one depends on org.jboss.as.plugins.

*编辑1 * :

您可能会在这里找到一些示例:在jboss上将jboss sar部署为7个错误

You may find some examples here : deploy jboss sar at jboss as 7 error

如果将其配置为settings.xml,则可以省略此插件: http://maven .apache.org/settings.html#Plugin_Groups

You may ommit this plugin if you configure it into settings.xml : http://maven.apache.org/settings.html#Plugin_Groups

*编辑2 * :

您还可以添加良好的pluginRepository

You may also add the good pluginRepository

<pluginRepositories>
    <pluginRepository>
        <id>jboss-public-repository-group</id>
        <name>JBoss Public Maven Repository Group</name>
        <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
    </pluginRepository>
</pluginRepositories>

这篇关于构建JBoss Seam示例时缺少maven-javadoc-plugin和failsafe-maven-plugin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆