Improve excludes rules for Maven metadata 11/33911/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 2 Feb 2016 15:07:51 +0000 (10:07 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 2 Feb 2016 15:09:23 +0000 (10:09 -0500)
The exclusion rules were missing the files maven-metadata.xml. This
update improves the rules to catch them.

Change-Id: I6eff0fec59b63ceb85218a76f37fa2fe2b086435
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/autorelease/include-raw-autorelease-maven-deploy.sh

index 41f344ff228b1df12d9983e20fd5819649488fbe..eb614b23b3dc9be556353f3fced9292e8c0a732a 100644 (file)
@@ -28,8 +28,7 @@ mkdir -p m2repo/org/opendaylight/
 (IFS='
 '
 for m in `xmlstarlet sel -N x=http://maven.apache.org/POM/4.0.0 -t -m '//x:modules' -v '//x:module' ../../../../pom.xml`; do
-    rsync -avz --exclude 'maven-metadata-local.xml' \
-               --exclude 'maven-metadata-*' \
+    rsync -avz --exclude 'maven-metadata*' \
                --exclude '_remote.repositories' \
                --exclude 'resolver-status.properties' \
                "/tmp/r/org/opendaylight/$m" m2repo/org/opendaylight/
@@ -37,8 +36,7 @@ done)
 
 # Add exception for integration project since they release under the
 # integration top-level project.
-rsync -avz --exclude 'maven-metadata-local.xml' \
-           --exclude 'maven-metadata-*' \
+rsync -avz --exclude 'maven-metadata*' \
            --exclude '_remote.repositories' \
            --exclude 'resolver-status.properties' \
            "/tmp/r/org/opendaylight/integration" m2repo/org/opendaylight/