Repository: servicemix-bundles Updated Branches: refs/heads/master f20f6fdb6 -> e3a667993
Create bundle for opensaml 3.3.0 Project: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/repo Commit: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/commit/e3a66799 Tree: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/tree/e3a66799 Diff: http://git-wip-us.apache.org/repos/asf/servicemix-bundles/diff/e3a66799 Branch: refs/heads/master Commit: e3a667993d8d795b873167309e59f2e07d3ae452 Parents: f20f6fd Author: Daniel Kulp <[email protected]> Authored: Tue Mar 14 10:16:36 2017 -0400 Committer: Daniel Kulp <[email protected]> Committed: Tue Mar 14 10:16:36 2017 -0400 ---------------------------------------------------------------------- opensaml-3.3.0/central/OpenSAMLStartStaging.xml | 5 + opensaml-3.3.0/central/PrepareOpenSAML.sh | 100 +++++++++++ opensaml-3.3.0/central/README.txt | 1 + opensaml-3.3.0/central/removeRepos.xsl | 14 ++ opensaml-3.3.0/pom.xml | 177 +++++++++++++++++++ .../src/main/resources/OSGI-INF/bundle.info | 12 ++ pom.xml | 1 + 7 files changed, 310 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/e3a66799/opensaml-3.3.0/central/OpenSAMLStartStaging.xml ---------------------------------------------------------------------- diff --git a/opensaml-3.3.0/central/OpenSAMLStartStaging.xml b/opensaml-3.3.0/central/OpenSAMLStartStaging.xml new file mode 100644 index 0000000..efbc85b --- /dev/null +++ b/opensaml-3.3.0/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/e3a66799/opensaml-3.3.0/central/PrepareOpenSAML.sh ---------------------------------------------------------------------- diff --git a/opensaml-3.3.0/central/PrepareOpenSAML.sh b/opensaml-3.3.0/central/PrepareOpenSAML.sh new file mode 100644 index 0000000..ed24c49 --- /dev/null +++ b/opensaml-3.3.0/central/PrepareOpenSAML.sh @@ -0,0 +1,100 @@ +#!/bin/sh + + +PARENT_VER=10 +OPENSAML_VER=3.3.0 +JAVASUPPORT_VER=7.3.0 +SPRINGEXT_VER=5.3.0 + + +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 + nexus/content/repositories/releases/net/shibboleth/ext/spring-extensions/$SPRINGEXT_VER/spring-extensions-$SPRINGEXT_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/e3a66799/opensaml-3.3.0/central/README.txt ---------------------------------------------------------------------- diff --git a/opensaml-3.3.0/central/README.txt b/opensaml-3.3.0/central/README.txt new file mode 100644 index 0000000..47035e2 --- /dev/null +++ b/opensaml-3.3.0/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. http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/e3a66799/opensaml-3.3.0/central/removeRepos.xsl ---------------------------------------------------------------------- diff --git a/opensaml-3.3.0/central/removeRepos.xsl b/opensaml-3.3.0/central/removeRepos.xsl new file mode 100644 index 0000000..391e7ab --- /dev/null +++ b/opensaml-3.3.0/central/removeRepos.xsl @@ -0,0 +1,14 @@ +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" + xmlns:mvn="http://maven.apache.org/POM/4.0.0"> + <xsl:template match="mvn:repositories"/> + <xsl:template match="mvn:pluginRepositories"/> + + <xsl:template match="*|@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> + + + +</xsl:stylesheet> http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/e3a66799/opensaml-3.3.0/pom.xml ---------------------------------------------------------------------- diff --git a/opensaml-3.3.0/pom.xml b/opensaml-3.3.0/pom.xml new file mode 100644 index 0000000..412e7ef --- /dev/null +++ b/opensaml-3.3.0/pom.xml @@ -0,0 +1,177 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + --> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.servicemix.bundles</groupId> + <artifactId>bundles-pom</artifactId> + <version>12</version> + <relativePath>../bundles-pom/pom.xml</relativePath> + </parent> + + <groupId>org.apache.servicemix.bundles</groupId> + <artifactId>org.apache.servicemix.bundles.opensaml</artifactId> + <version>3.3.0_1-SNAPSHOT</version> + <packaging>bundle</packaging> + <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name> + <description>This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.</description> + + <scm> + <connection>scm:git:https://git-wip-us.apache.org/repos/asf/servicemix-bundles.git</connection> + <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/servicemix-bundles.git</developerConnection> + <url>https://git-wip-us.apache.org/repos/asf?p=servicemix-bundles.git</url> + <tag>HEAD</tag> + </scm> + + <properties> + <pkgGroupId>org.opensaml</pkgGroupId> + <pkgArtifactId>opensaml</pkgArtifactId> + <pkgVersion>3.3.0</pkgVersion> + <servicemix.osgi.export> + org.opensaml*;version="${pkgVersion}";-split-package:=merge-first, + net.shibboleth.utilities*;version="${pkgVersion}";-split-package:=merge-first + </servicemix.osgi.export> + <servicemix.osgi.import.pkg> + javax.servlet;resolution:=optional, + javax.servlet.http;resolution:=optional, + org.bouncycastle*;resolution:=optional, + org.apache.velocity*;resolution:=optional, + org.joda.time*;version="[2.2,3)", + org.cryptacular*;resolution:=optional, + org.apache.http*;resolution:=optional, + com.beust.jcommander*;resolution:=optional, + javax.annotation;version="[1,4)", + * + </servicemix.osgi.import.pkg> + <servicemix.osgi.private.pkg> + schema;-split-package:=merge-first, + templates;-split-package:=merge-first, + net.shibboleth.utilities.java.support* + </servicemix.osgi.private.pkg> + </properties> + <dependencies> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-core</artifactId> + <version>${pkgVersion}</version> + </dependency> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-profile-api</artifactId> + <version>${pkgVersion}</version> + </dependency> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-saml-api</artifactId> + <version>${pkgVersion}</version> + </dependency> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-xmlsec-api</artifactId> + <version>${pkgVersion}</version> + </dependency> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-security-impl</artifactId> + <version>${pkgVersion}</version> + </dependency> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-security-api</artifactId> + <version>${pkgVersion}</version> + </dependency> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-xmlsec-impl</artifactId> + <version>${pkgVersion}</version> + </dependency> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-xacml-impl</artifactId> + <version>${pkgVersion}</version> + </dependency> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-xacml-api</artifactId> + <version>${pkgVersion}</version> + </dependency> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-saml-impl</artifactId> + <version>${pkgVersion}</version> + </dependency> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-xacml-saml-impl</artifactId> + <version>${pkgVersion}</version> + </dependency> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-xacml-saml-api</artifactId> + <version>${pkgVersion}</version> + </dependency> + + + + <!-- sources --> + <dependency> + <groupId>${pkgGroupId}</groupId> + <artifactId>opensaml-core</artifactId> + <version>${pkgVersion}</version> + <classifier>sources</classifier> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <artifactSet> + <includes> + <include>${pkgGroupId}:*</include> + </includes> + </artifactSet> + <filters> + <filter> + <artifact>${pkgGroupId}:${pkgArtifactId}</artifact> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </filter> + </filters> + <promoteTransitiveDependencies>true</promoteTransitiveDependencies> + <createDependencyReducedPom>true</createDependencyReducedPom> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/e3a66799/opensaml-3.3.0/src/main/resources/OSGI-INF/bundle.info ---------------------------------------------------------------------- diff --git a/opensaml-3.3.0/src/main/resources/OSGI-INF/bundle.info b/opensaml-3.3.0/src/main/resources/OSGI-INF/bundle.info new file mode 100644 index 0000000..079b28b --- /dev/null +++ b/opensaml-3.3.0/src/main/resources/OSGI-INF/bundle.info @@ -0,0 +1,12 @@ +\u001B[1mSYNOPSIS\u001B[0m + ${project.description} + + Original Maven URL: + \u001B[33mmvn:${pkgGroupId}/${pkgArtifactId}/${pkgVersion}\u001B[0m + +\u001B[1mDESCRIPTION\u001B[0m + OpenSAML is a set of open source Java libraries meant to support developers working with the Security Assertion + Markup Language (SAML). OpenSAML 1, supports SAML 1.0 and 1.1, but is not compatible with OpenSAML 2. + +\u001B[1mSEE ALSO\u001B[0m + \u001B[36mhttps://spaces.internet2.edu/display/OpenSAML/Home\u001B[0m \ No newline at end of file http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/e3a66799/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 2f943e0..a29a936 100644 --- a/pom.xml +++ b/pom.xml @@ -56,6 +56,7 @@ <module>retrofit-2.2.0</module> <module>hystrix-1.5.10</module> <module>hystrix-event-stream-1.5.10</module> + <modeul>opensaml-3.3.0</module> </modules> </project>
