Package: maven-debian-helper
Severity: important
Tags: patch

Hi,

When using dh to build a package using Maven, the build crashes because 
maven.pm looks
for maven-debian-plugin in maven-repo. This plugin was renamed to 
debian-maven-plugin
in 1.5.1, maven.pm still uses the old name.

Please see attached patch.

Regards,

Jakub

>From 432d49041fe64e3487574803b3868ab2a4495f50 Mon Sep 17 00:00:00 2001
From: Jakub Adam <jakub.a...@ktknet.cz>
Date: Sat, 4 May 2013 13:25:04 +0200
Subject: [PATCH] maven.pm: Rename maven-debian-plugin -> debian-maven-plugin

Fixes crash during maven invocation, plugin was renamed in 1.5.1.
---
 share/perl/maven.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/perl/maven.pm b/share/perl/maven.pm
index 0c17ac6..adfaed0 100644
--- a/share/perl/maven.pm
+++ b/share/perl/maven.pm
@@ -91,13 +91,13 @@ sub install {
 	$this->doit_in_builddir(@{$this->{maven_cmd}},
 		"-Ddebian.package=$this->{package}",
 		"-Dinstall.to.usj=true",
-		"org.debian.maven:maven-debian-plugin:$maven_debian_version:install");
+		"org.debian.maven:debian-maven-plugin:$maven_debian_version:install");
 	$this->doit_in_builddir("mh_resolve_dependencies", "--non-interactive",
 		"--offline", "-p$this->{package}", @resolvedep_args);
 	if ($this->{doc_package}) {
 		$this->doit_in_builddir(@{$this->{maven_cmd}},
 			"-Ddebian.package=$this->{doc_package}",
-			"org.debian.maven:maven-debian-plugin:$maven_debian_version:install-doc");
+			"org.debian.maven:debian-maven-plugin:$maven_debian_version:install-doc");
 		doit("cp","debian/$this->{package}.substvars",
 			"debian/$this->{doc_package}.substvars");
 		# clean up generated docs
-- 
1.7.10.4

__
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