servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject servicemix-bundles git commit: Start working on an OpenSAML 3.1.0 bundle needed for WSS4J 2.1
Date Fri, 13 Mar 2015 18:13:38 GMT
Repository: servicemix-bundles
Updated Branches:
  refs/heads/master 7a10ebebf -> 4b2810739


Start working on an OpenSAML 3.1.0 bundle needed for WSS4J 2.1


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

Branch: refs/heads/master
Commit: 4b2810739ae5ca28ecd6d9dd950f32d7489ff035
Parents: 7a10ebe
Author: Daniel Kulp <dkulp@apache.org>
Authored: Fri Mar 13 14:13:01 2015 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Fri Mar 13 14:13:01 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/servicemix-bundles/blob/4b281073/opensaml-3.1.0/central/OpenSAMLStartStaging.xml
----------------------------------------------------------------------
diff --git a/opensaml-3.1.0/central/OpenSAMLStartStaging.xml b/opensaml-3.1.0/central/OpenSAMLStartStaging.xml
new file mode 100644
index 0000000..efbc85b
--- /dev/null
+++ b/opensaml-3.1.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/4b281073/opensaml-3.1.0/central/PrepareOpenSAML.sh
----------------------------------------------------------------------
diff --git a/opensaml-3.1.0/central/PrepareOpenSAML.sh b/opensaml-3.1.0/central/PrepareOpenSAML.sh
new file mode 100644
index 0000000..1ce3220
--- /dev/null
+++ b/opensaml-3.1.0/central/PrepareOpenSAML.sh
@@ -0,0 +1,99 @@
+#!/bin/sh
+
+
+PARENT_VER=8
+OPENSAML_VER=3.1.0
+JAVASUPPORT_VER=7.1.0
+SPRINGEXT_VER=5.1.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"
+
+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/4b281073/opensaml-3.1.0/central/README.txt
----------------------------------------------------------------------
diff --git a/opensaml-3.1.0/central/README.txt b/opensaml-3.1.0/central/README.txt
new file mode 100644
index 0000000..47035e2
--- /dev/null
+++ b/opensaml-3.1.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/4b281073/opensaml-3.1.0/central/removeRepos.xsl
----------------------------------------------------------------------
diff --git a/opensaml-3.1.0/central/removeRepos.xsl b/opensaml-3.1.0/central/removeRepos.xsl
new file mode 100644
index 0000000..391e7ab
--- /dev/null
+++ b/opensaml-3.1.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/4b281073/opensaml-3.1.0/pom.xml
----------------------------------------------------------------------
diff --git a/opensaml-3.1.0/pom.xml b/opensaml-3.1.0/pom.xml
new file mode 100644
index 0000000..85b5773
--- /dev/null
+++ b/opensaml-3.1.0/pom.xml
@@ -0,0 +1,195 @@
+<?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-SNAPSHOT</version>
+        <relativePath>../bundles-pom/pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.apache.servicemix.bundles</groupId>
+    <artifactId>org.apache.servicemix.bundles.opensaml</artifactId>
+    <version>3.1.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.1.0</pkgVersion>
+        <servicemix.osgi.export>
+             org.opensaml*;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,
+            *
+        </servicemix.osgi.import.pkg>
+        <!--servicemix.osgi.import.pkg>
+            javax.crypto,
+            javax.net,
+            javax.net.ssl,
+            javax.security.auth.x500,
+
+            javax.xml.datatype,
+            javax.xml.namespace,
+            javax.xml.parsers,
+            javax.xml.transform,
+            javax.xml.transform.dom,
+            javax.xml.transform.stream,
+            javax.xml.validation,
+            net.jcip.annotations;resolution:=optional,
+            org.apache.xml.security*;version="[1.5,3)",
+            org.owasp.esapi*;resolution:=optional,
+            org.slf4j;resolution:=optional,
+            org.w3c.dom*,
+            org.xml.sax
+        </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/4b281073/opensaml-3.1.0/src/main/resources/OSGI-INF/bundle.info
----------------------------------------------------------------------
diff --git a/opensaml-3.1.0/src/main/resources/OSGI-INF/bundle.info b/opensaml-3.1.0/src/main/resources/OSGI-INF/bundle.info
new file mode 100644
index 0000000..079b28b
--- /dev/null
+++ b/opensaml-3.1.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


Mime
View raw message