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

Attachment: signature.asc
Description: Digital signature

__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to