我想擺脫以下警告,同時在一個項目叫mvn site:site
HOWTO擺脫稱爲Maven站點[警告]過時的API
[INFO] Generating "About" report.
[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
[INFO] Generating "Issue Tracking" report.
[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
[INFO] Generating "PMD Report" report.
[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Generating "Continuous Integration" report.
[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
[INFO] Generating "Source Repository" report.
[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
[INFO] Generating "Project License" report.
[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
[INFO] Generating "CPD Report" report.
[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
我的聚甲醛的部分看起來像這樣的:
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.4</version>
<reportSets>
<reportSet>
<reports>
<report>index</report>
<report>cim</report>
<report>issue-tracking</report>
<report>license</report>
<report>scm</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</reporting>
我mvn --version
返回以下輸出:
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_10
Java home: /opt/jdk1.6.0_10/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-41-generic" arch: "i386" Family: "unix"
Unluck ily,我無法找到正在呼叫更新的正確插件。更新/遷移到maven-3.x目前不是一種選擇。
你爲什麼叫MVN網站站點,而不是mvn網站?此外,爲什麼更新Maven 3.0沒有選擇? MVN 2.2.1和3.0.4之間唯一的巨大差別是似乎正在建設中的網站生成部分。 – khmarbaise
mvn網站:到目前爲止,網站顯示的是相同的警告。 Maven目前無法遷移,因爲我的公司受這個版本的政策約束。 – Rob