2012-09-26 1 views
1

내가 메이븐 3.0.4을 사용하여 JBoss의 심 예제를 구축하기 위해 노력하고있어하지만 난이없는 플러그인 오류 받고 있어요 :받는다는-javadoc에 플러그인 및 안전 장치 - 받는다는 - 플러그인 때 빌드 제이보스 심 예

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 

을 누구나 그 일이 일어나는 이유 또는 그 문제를 해결하기 위해 무엇을 할 수 있는지 알고 있습니까? 감사.

편집 :

Settings.XML이 - https://docs.google.com/open?id=0B0kQ0iZ9xNVNR3ZVRW1ldzZielE

pom.xml 파일 - 문서는 말한다 https://docs.google.com/open?id=0B0kQ0iZ9xNVNakhSVEd3djBiUmM

+0

pom.xml 및 settings.xml을 게시 해주세요. –

+0

파일을 코드 서식으로 게시하도록 허용하지 않습니다. – JSeven

+0

상관하지 마십시오. Il은 당신을 위해 그것을 할 것입니다 관리하지 않는 경우. 여기를보세요 : http://stackoverflow.com/editing-help#syntax-highlighting –

답변

1

당, 당신이 당신의 pom.xml에, 빌드 하나의 플러그인 섹션을 선언해야 당신이 경우 명령으로 사용하려면 : 그 그룹 org.codehaus.mojo이기 때문에

<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> 

"오래된"받는다는 - JBoss에 플러그인이 필요하지 않습니다. 하지만 jboss는 org.jboss.as.plugins에 의존합니다.

* EDIT 1 * :

당신은 여기에 몇 가지 예를 찾을 수 있습니다 : http://maven.apache.org/settings.html#Plugin_Groups

* 편집 2 : 당신이 Settings.XML의로를 구성하는 경우이 플러그인을 ommit 수

deploy jboss sar at jboss as 7 error * :

더하기 플러그인을 추가 할 수도 있습니다. 리셉 시방

<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> 
+0

Thnanks! 그것은 효과가 있었다. 플러그인은 org.jboss.as.plugins에 의존하기 때문에 어디에서 jboss를 볼 수 있습니까? – JSeven

+0

당신을 도울 수있어서 기쁩니다 :). 당신은 그것을 여기에서 찾을 수있다 : http://docs.jboss.org/jbossas/7/plugins/maven/latest/examples/deployment-example.html ...하지만 나는 단지 maven + jboss-as + plugin을 봤다. http : //www.google.fr/search?q=maven+jboss-as+plugin –