Add opensaml 3.1.1 bundle

Project: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/servicemix-bundles/commit/58c31448
Tree: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/tree/58c31448
Diff: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/diff/58c31448

Branch: refs/heads/master
Commit: 58c31448367293ece779631dc5ddb26ff6b64e92
Parents: 06e3e64
Author: Daniel Kulp <[email protected]>
Authored: Wed Jun 17 11:43:12 2015 -0400
Committer: Daniel Kulp <[email protected]>
Committed: Wed Jun 17 11:47:06 2015 -0400

----------------------------------------------------------------------
 opensaml-3.1.1/central/OpenSAMLStartStaging.xml |    5 +
 opensaml-3.1.1/central/PrepareOpenSAML.sh       |   99 ++
 opensaml-3.1.1/central/README.txt               |    1 +
 opensaml-3.1.1/central/output_deps.txt          | 1116 ++++++++++++++++++
 opensaml-3.1.1/central/removeRepos.xsl          |   14 +
 opensaml-3.1.1/pom.xml                          |  195 +++
 .../src/main/resources/OSGI-INF/bundle.info     |   12 +
 pom.xml                                         |    1 +
 8 files changed, 1443 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/58c31448/opensaml-3.1.1/central/OpenSAMLStartStaging.xml
----------------------------------------------------------------------
diff --git a/opensaml-3.1.1/central/OpenSAMLStartStaging.xml 
b/opensaml-3.1.1/central/OpenSAMLStartStaging.xml
new file mode 100644
index 0000000..efbc85b
--- /dev/null
+++ b/opensaml-3.1.1/central/OpenSAMLStartStaging.xml
@@ -0,0 +1,5 @@
+<promoteRequest>
+    <data>
+        <description>Start Staging OpenSAML</description>
+    </data>
+</promoteRequest>

http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/58c31448/opensaml-3.1.1/central/PrepareOpenSAML.sh
----------------------------------------------------------------------
diff --git a/opensaml-3.1.1/central/PrepareOpenSAML.sh 
b/opensaml-3.1.1/central/PrepareOpenSAML.sh
new file mode 100644
index 0000000..8f70203
--- /dev/null
+++ b/opensaml-3.1.1/central/PrepareOpenSAML.sh
@@ -0,0 +1,99 @@
+#!/bin/sh
+
+
+PARENT_VER=8
+OPENSAML_VER=3.1.1
+JAVASUPPORT_VER=7.1.1
+SPRINGEXT_VER=5.1.1
+
+
+download()
+{
+BASEURL=https://build.shibboleth.net/nexus/content/repositories/releases
+COMPONENTS="opensaml-core
+    opensaml-messaging-api
+    opensaml-messaging-impl
+    opensaml-parent
+opensaml-profile-api
+opensaml-profile-impl
+opensaml-saml-api
+opensaml-saml-impl
+opensaml-security-api
+opensaml-security-impl
+opensaml-soap-api
+opensaml-soap-impl
+opensaml-storage-api
+opensaml-storage-impl
+opensaml-xacml-api
+opensaml-xacml-impl
+opensaml-xacml-saml-api
+opensaml-xacml-saml-impl
+opensaml-xmlsec-api
+opensaml-xmlsec-impl
+"
+
+
+for component in $COMPONENTS
+do
+   wget -e robots=off --no-check-certificate -np -r -nH 
"$BASEURL/org/opensaml/$component/$OPENSAML_VER/"
+done
+
+wget -e robots=off --no-check-certificate -np -r -nH 
"$BASEURL/net/shibboleth/parent-v3/$PARENT_VER/"
+wget -e robots=off --no-check-certificate -np -r -nH 
"$BASEURL/net/shibboleth/utilities/java-support/$JAVASUPPORT_VER/"
+wget -e robots=off --no-check-certificate -np -r -nH 
"$BASEURL/net/shibboleth/ext/spring-extensions/$SPRINGEXT_VER/"
+
+find . -name "index.html" | xargs rm
+}
+
+# remove the repository entries
+removeRepositories()
+{
+POMS="
+ 
nexus/content/repositories/releases/org/opensaml/opensaml-parent/$OPENSAML_VER/opensaml-parent-$OPENSAML_VER.pom
+ 
nexus/content/repositories/releases/net/shibboleth/utilities/java-support/$JAVASUPPORT_VER/java-support-$JAVASUPPORT_VER.pom
+ 
nexus/content/repositories/releases/net/shibboleth/parent-v3/$PARENT_VER/parent-v3-$PARENT_VER.pom"
+
+for pom in $POMS
+do
+xsltproc -o $pom removeRepos.xsl $pom
+rm $pom.asc*
+rm $pom.sha1
+rm $pom.md5
+
+md5 -q < $pom > $pom.md5
+shasum $pom  | colrm 42 > $pom.sha1
+
+gpg --detach-sign -a $pom
+done
+
+}
+
+
+#test
+testPoms()
+{
+cp -a nexus/content/repositories/releases/* ~/.m2/repository/
+find . -name "*.pom" -exec mvn -N -f {} dependency:tree \; | tee 
output_deps.txt | grep BUILD
+}
+
+
+download
+removeRepositories
+testPoms
+
+echo "Check up and look for failures"
+read -p "Press any key to continue... " -n1 -s
+echo "Use the commented out commands in the script to do the rest"
+
+
+USERNAMEPASSWORD=dkulp:XXXXXXXXXX
+
+#Open a staging repo
+#curl -X POST -d @OpenSAMLStartStaging.xml -u $USERNAMEPASSWORD -H 
"Content-Type:application/xml" -v 
https://oss.sonatype.org/service/local/staging/profiles/49d3626a5c71/start
+
+#In the XML returned from above is the repo id that is needed
+#REPO_ID=orgopensaml-1013
+#cd nexus/content/repositories/releases/
+# Upload all the artifacts to that repo
+#find . -type f -exec curl -v -u $USERNAMEPASSWORD --upload-file {} 
https://oss.sonatype.org/service/local/staging/deployByRepositoryId/$REPO_ID/{} 
\;
+# Login to oss and close the repo

http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/58c31448/opensaml-3.1.1/central/README.txt
----------------------------------------------------------------------
diff --git a/opensaml-3.1.1/central/README.txt 
b/opensaml-3.1.1/central/README.txt
new file mode 100644
index 0000000..47035e2
--- /dev/null
+++ b/opensaml-3.1.1/central/README.txt
@@ -0,0 +1 @@
+These are scripts that can be used to help sync the OpenSAML stuff from the 
Shibboleth repo to central.  They download the artifacts, strip the 
repositories entries out, double check that the dependencies can be found, then 
prepares things for staging. 

Reply via email to