Bug#799003: maven-dependency-plugin: FTBFS: project has been declared multiple times in mojo with goal: analyze-report
Hector Oron
zumbi at debian.org
Thu Oct 29 23:52:47 UTC 2015
On Mon, Sep 14, 2015 at 09:46:58PM +0100, Chris Lamb wrote:
> maven-dependency-plugin fails to build from source in unstable/amd64:
>
> [..]
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'project has been declared
> multiple times in mojo with goal: analyze-report (implementation:
> org.apache.maven.plugin.dependency.AnalyzeReportMojo)'
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 13 seconds
> [INFO] Finished at: Mon Sep 14 08:10:47 GMT-12:00 2015
> [INFO] Final Memory: 27M/933M
> [INFO]
> ------------------------------------------------------------------------
> /usr/share/cdbs/1/class/maven.mk:93: recipe for target 'mvn-build'
> failed
> make: *** [mvn-build] Error 1
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
>
> [..]
A potential tested fix follows...
--- maven-dependency-plugin-2.7.orig/src/main/java/org/apache/maven/plugin/dependency/AnalyzeReportMojo.java
+++ maven-dependency-plugin-2.7/src/main/java/org/apache/maven/plugin/dependency/AnalyzeReportMojo.java
@@ -56,6 +56,7 @@ public class AnalyzeReportMojo
* The Maven project to analyze.
*/
@Component
+ @Parameter( defaultValue = "${project}", readonly = true )
private MavenProject project;
/**
Thanks to Emmanuel Bourg for the proposed fix
Cheers,
--
Hector Oron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20151030/6b2ec291/attachment-0001.sig>
More information about the pkg-java-maintainers
mailing list