Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SavvasMisaghMoayyed committed May 12, 2015
1 parent 59145f1 commit d6c7784
Show file tree
Hide file tree
Showing 4 changed files with 437 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
.idea
target/
*.iml
94 changes: 94 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to Apereo under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Apereo 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 the following location:
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.
-->
<project name="idp" default="deploy" basedir=".">

<taskdef resource="net/sf/antcontrib/antcontrib.properties" />

<!-- ******************* PROPERTIES ************************* -->
<property environment="env" />
<property name="build.target.dir" value="target" />
<property name="catalina.home" value="${env.CATALINA_HOME}" />
<property name="jetty.home" value="${env.JETTY_HOME}" />
<property name="tomcat.log.patterns" value="**/*.log" />
<property name="useJetty" value="false"/>

<!-- ******************* MAVEN PROPERTIES******************** -->
<condition property="mavenExecutableFile" value="mvn.cmd" else="mvn">
<os family="windows" />
</condition>
<var name="mavenExecutable" value="${env.M2_HOME}\bin\${mavenExecutableFile}"/>
<available file="${mavenExecutable}" property="maven.exec.exists" />

<if>
<not>
<isset property="${maven.exec.exists}" />
</not>
<then>
<var name="mavenExecutable" value="${env.MAVEN_HOME}\bin\${mavenExecutableFile}"/>
<available file="${mavenExecutable}" property="maven.exec.exists" />
</then>
</if>
<fail unless="${maven.exec.exists}" message="Cannot determine the maven location ${mavenExecutable} through M2_HOME/MAVEN_HOME env vars."/>

<!-- ********************* TARGETS *************************** -->

<target name="clean" description="Clean deployed artifacts and logs">
<exec dir="${basedir}" executable="${mavenExecutable}">
<arg value="clean" />
</exec>

</target>

<target name="compile" description="Compile artifacts" depends="clean">
<exec dir="${basedir}" executable="${mavenExecutable}">
<arg value="compile" />
</exec>
</target>

<target name="copy" depends="package">
<copy overwrite="true"
todir="/opt/shibboleth-idp/webapp/WEB-INF/lib"
file="target/shib-extensions.jar"
verbose="true"
/>
<copy overwrite="true"
todir="${env.CATALINA_HOME}/webapps/idp/WEB-INF/lib"
file="target/shib-extensions.jar"
verbose="true"
/>

</target>

<target name="package" description="Package src artifacts and prepare for deployment" depends="clean">
<exec dir="${basedir}" executable="${mavenExecutable}">
<arg value="install" />
</exec>
</target>

<target name="deploy" depends="copy" description="Clean, package and deploy artifacts" />

<target name="help" description="Prints instructions on how to run the build.">
<echo message="Use 'ant -projecthelp' to see all available commands" />
</target>

</project>

271 changes: 271 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
<?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">
<modelVersion>4.0.0</modelVersion>

<groupId>edu.uchicago.identity</groupId>
<artifactId>shibidp-extensions</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.plugin.compiler}</version>
<configuration>
<source>${project.build.sourceVersion}</source>
<target>${project.build.targetVersion}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven.plugin.jar}</version>
<configuration>
<finalName>shib-extensions</finalName>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-core</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-messaging-api</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-messaging-impl</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-profile-api</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-profile-impl</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-saml-api</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-saml-impl</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-security-api</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-security-impl</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-soap-api</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-soap-impl</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-storage-api</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-storage-impl</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-xmlsec-api</artifactId>
<version>${opensaml.version}</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-xmlsec-impl</artifactId>
<version>${opensaml.version}</version>
</dependency>

<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-attribute-api</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-attribute-filter-api</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-attribute-filter-impl</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-attribute-resolver-api</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-attribute-resolver-impl</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-attribute-resolver-spring</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-attribute-filter-spring</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-authn-api</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-authn-impl</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-cas-api</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-cas-impl</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-profile-api</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-profile-impl</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-profile-spring</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-saml-api</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-saml-impl</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-session-api</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-session-impl</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-ui</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-core</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-consent</artifactId>
<version>${idp.version}</version>
</dependency>
<dependency>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-schema</artifactId>
<version>${idp.version}</version>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
</dependencies>

<properties>
<idp.version>3.1.1</idp.version>
<guava.version>18.0</guava.version>
<opensaml.version>3.1.1</opensaml.version>
<maven.plugin.jar>2.6</maven.plugin.jar>
<maven.plugin.compiler>3.3</maven.plugin.compiler>
<project.build.sourceVersion>1.8</project.build.sourceVersion>
<project.build.targetVersion>1.8</project.build.targetVersion>
</properties>

<repositories>
<repository>
<id>shib-release</id>
<url>https://build.shibboleth.net/nexus/content/groups/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>shib-snapshot</id>
<url>https://build.shibboleth.net/nexus/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>central</id>
<url>http://repo1.maven.org/maven2</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</project>
Loading

0 comments on commit d6c7784

Please sign in to comment.