2 # @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
3 ##############################################################################
4 # Copyright (c) 2015 The Linux Foundation and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
12 # Assuming that mvn deploy created the hide/from/pom/files/stage directory.
13 cd hide/from/pom/files
14 mkdir -p m2repo/org/opendaylight/
18 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
19 rsync -avz --exclude 'maven-metadata*' \
20 --exclude '_remote.repositories' \
21 --exclude 'resolver-status.properties' \
22 "stage/org/opendaylight/$m" m2repo/org/opendaylight/
25 # Add exception for integration project since they release under the
26 # integration top-level project.
27 rsync -avz --exclude 'maven-metadata*' \
28 --exclude '_remote.repositories' \
29 --exclude 'resolver-status.properties' \
30 "stage/org/opendaylight/integration" m2repo/org/opendaylight/
32 mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.6.2:deploy-staged-repository \
33 -DrepositoryDirectory="`pwd`/m2repo" \
34 -DnexusUrl=https://nexus.opendaylight.org/ \
35 -DstagingProfileId="425e43800fea70" \
36 -DserverId="opendaylight.staging" \
38 -gs $GLOBAL_SETTINGS_FILE | tee $WORKSPACE/deploy-staged-repository.log