Skip to content
Snippets Groups Projects
Commit 1908dd0a authored by Emmanuel Bourg's avatar Emmanuel Bourg
Browse files

Add the debian.hasPackageVersion property in the installed poms when the...

Add the debian.hasPackageVersion property in the installed poms when the --has-package-version option is specified (Closes: #862894)
parent 41743067
No related branches found
No related tags found
No related merge requests found
......@@ -730,6 +730,10 @@ public class SysInstallMojo extends AbstractMojo {
List<String> params = new ArrayList<String>();
params.add("--keep-pom-version");
boolean hasPackageVersion = pomOption != null && pomOption.getHasPackageVersion();
if (hasPackageVersion) {
params.add("--has-package-version");
}
params.add("--package=" + destPackage);
String mavenRulesPath = new File(debianDir, mavenRules).getAbsolutePath();
......@@ -740,7 +744,7 @@ public class SysInstallMojo extends AbstractMojo {
params.add("--published-rules=" + mavenPublishedRulesPath);
getLog().info("Cleaning pom file: " + pomFile + " with options:");
getLog().info("\t--keep-pom-version --package=" + destPackage);
getLog().info("\t--keep-pom-version --package=" + destPackage + (hasPackageVersion ? " --has-package-version" : ""));
getLog().info("\t--rules=" + mavenRulesPath);
getLog().info("\t--ignore-rules=" + mavenIgnoreRulesPath);
getLog().info("\t--published-rules=" + mavenPublishedRulesPath);
......
......@@ -11,6 +11,10 @@ maven-debian-helper (2.1.4) UNRELEASED; urgency=medium
* Update verbiage in copyright holder prompt to be gender-neutral.
Thanks to Tom Mable for the bug report. (Closes: #859012)
[ Emmanuel Bourg ]
* Add the debian.hasPackageVersion property in the installed poms when
the --has-package-version option is specified (Closes: #862894)
-- Christopher Hoskin <mans0954@debian.org> Sun, 08 Jan 2017 21:32:55 +0000
maven-debian-helper (2.1.3) unstable; urgency=medium
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment