[maven-debian-helper] 02/03: Ensure the target directories exist before generating the maven-metadata-local.xml files

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Dec 19 23:45:37 UTC 2016


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository maven-debian-helper.

commit c38eacec9f710caa54adacf26ea4abb966c8bfe9
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon Dec 19 23:33:07 2016 +0100

    Ensure the target directories exist before generating the maven-metadata-local.xml files
---
 debian/changelog                       | 2 ++
 share/maven-debian-helper/copy-repo.sh | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 968d137..6916a73 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ maven-debian-helper (2.1.3) UNRELEASED; urgency=medium
   * Team upload.
   * Build the plugin metadata for the maven-replacer-plugin when copying
     the Maven repository.
+  * Ensure the target directories exist before generating
+    the maven-metadata-local.xml files.
   * Always ignore maven-docck-plugin
 
   [ Christopher Hoskin ]
diff --git a/share/maven-debian-helper/copy-repo.sh b/share/maven-debian-helper/copy-repo.sh
index 5c96672..3891aee 100755
--- a/share/maven-debian-helper/copy-repo.sh
+++ b/share/maven-debian-helper/copy-repo.sh
@@ -94,6 +94,7 @@ for groupId in $PLUGIN_GROUPS; do
   fi
 
   # plugin group metadata
+  mkdir -p $DEST_REPO/$GROUP/
   cat > $DEST_REPO/$GROUP/$METADATA_NAME <<EOF
 <metadata>
   <plugins>
@@ -122,6 +123,7 @@ EOF
 
   # plugin version metadata
   find_group_artifact_ids $GROUP | while read artifactId; do
+    mkdir -p $DEST_REPO/$GROUP/$artifactId/
     cat > $DEST_REPO/$GROUP/$artifactId/$METADATA_NAME <<EOF
 <metadata>
   <groupId>$groupId</groupId>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-debian-helper.git



More information about the pkg-java-commits mailing list