Java Maven站点命令失败:查找pmd插件:I don';我不需要它
这是我的pom文件报告部分:Java Maven站点命令失败:查找pmd插件:I don';我不需要它,java,jakarta-ee,maven-2,build-process,Java,Jakarta Ee,Maven 2,Build Process,这是我的pom文件报告部分: <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.7</v
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>surefire-report-maven-plugin</artifactId>
<inherited>true</inherited>
<reportSets>
<reportSet>
<reports>
<report>report-only</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.4</version>
<inherited>true</inherited>
<configuration>
<formats>
<format>html</format>
<format>xml</format>
</formats>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.1</version>
<inherited>true</inherited>
<configuration>
<xmlOutput>true</xmlOutput>
<effort>Max</effort>
<!-- <visitors> FindDeadLocalStores,UnreadFields</visitors>-->
<debug>true</debug>
<relaxed>false</relaxed>
<includeTests>true</includeTests>
<threshold>Low</threshold>
<findbugsXmlOutput>true</findbugsXmlOutput>
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
</configuration>
</plugin>
</plugins>
</reporting>
它给了我以下错误:
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> Failed to resolve artifact, possibly
> due to a repository list that is not appropriate
> org.apache.maven.plugins:maven-pmd-plugin:pom:2.6-SNAPSHOT
> from the specified remote
> repositories: central
> (http://repo1.maven.org/maven2),
> aaa-yyy
> (http://nexus.yyy.com/nexus/content/groups/public-all)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven
> with the -e switch [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri Mar 04 09:44:43 CST 2011
> [INFO] Final Memory: 8M/24M
> [INFO]
> ------------------------------------------------------------------------
我不想使用maven pmd插件。我只需要以下报告来查找bug、surefire、cobertura、java文档、变更日志。但是,当我运行maven站点时,我得到了Java NCS,我不需要它。当我运行maven站点时,如何排除生成的Java NCS?我不明白这种依赖性来自何处。。你能发布整个pom.xml,mb来给出某种提示吗..通常Maven输出缺少的依赖项来自哪个工件-这应该在错误输出上面的行中。。。
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> Failed to resolve artifact, possibly
> due to a repository list that is not appropriate
> org.apache.maven.plugins:maven-pmd-plugin:pom:2.6-SNAPSHOT
> from the specified remote
> repositories: central
> (http://repo1.maven.org/maven2),
> aaa-yyy
> (http://nexus.yyy.com/nexus/content/groups/public-all)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven
> with the -e switch [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri Mar 04 09:44:43 CST 2011
> [INFO] Final Memory: 8M/24M
> [INFO]
> ------------------------------------------------------------------------