Commit 0cae2ee8 authored by Francesco Chicchiricco's avatar Francesco Chicchiricco
Browse files

[CRV-305] Standalone artifact

parent c9ac0b3f
......@@ -167,6 +167,36 @@ limitations under the License.
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<deployables>
<deployable>
<location>${project.build.directory}/${project.build.finalName}.war</location>
</deployable>
</deployables>
</configuration>
<executions>
<execution>
<id>install-container</id>
<phase>package</phase>
<goals>
<goal>install</goal>
</goals>
</execution>
<execution>
<id>start-container</id>
<phase>none</phase>
</execution>
<execution>
<id>stop-container</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
<resources>
......
......@@ -376,6 +376,7 @@ limitations under the License.
<module>enduser</module>
<module>ext</module>
<module>choremocks</module>
<module>standalone</module>
</modules>
</project>
This diff is collapsed.
CHOReVOLUTION IdM
Copyright 2015-2017 The CHOReVOLUTION project
This product includes software developed by:
The CHOReVOLUTION project (http://www.chorevolution.eu/).
The following copyright notice(s) were affixed to portions of this code
with which this file is now or was at one time distributed.
==
This product includes software developed by the AngularJS UI Bootstrap project.
Copyright (c) 2012-2016 the AngularUI Team, https://github.com/organizations/angular-ui/teams/291112]
==
This product includes software developed by the AngularJS UI Select project.
Copyright (c) 2013-2014 AngularUI
==
This product includes software developed by the Animate.css project.
Copyright (c) 2016 Daniel Eden
==
This product includes software developed by the AOP Alliance (Java/J2EE AOP standards).
==
This product includes software developed by the Bootbox.js project.
Copyright (C) 2011-2015 by Nick Payne nick@kurai.co.uk
==
This product includes software developed by the Bootstrap project.
Copyright (c) 2011-2016 Twitter, Inc.
==
This product includes software developed by the bootstrap-select project.
Copyright (c) 2013-2015 bootstrap-select]
==
This product includes software developed by the Modernizr project.
Copyright (C) 2016
==
This product includes software developed by the Jackson project.
==
This product includes software developed by the Java Uuid Generator (JUG) project.
==
This product includes software developed by the Google Guava project.
Copyright (c) 2016 The Guava Authors.
==
This product includes software developed by the Wicket - jQuery UI project.
Copyright 2012-2013 Sebastien Briquet
==
This product includes software developed by the JAXB project.
Copyright (c) 2013-2016 The JAXB project.
==
This product includes software developed by the HikariCP project.
==
This product includes the Javascript syntax highlighter.
Copyright (c) 2006, Ivan Sagalaev
==
This product includes software developed by the Metrics project.
Copyright (c) 2010-2014 Coda Hale, Yammer.com
==
This product includes software developed by the Swagger project.
Copyright 2016 SmartBear Software
==
This product includes software developed by the Ionicons project.
Copyright (c) 2016 Drifty (http://drifty.com/)
==
This product includes software developed by the slimScroll project.
Copyright (c) 2011 Piotr Rochala (http://rocha.la)
==
This product includs software developed by Oracle.
Copyright (c) 2012-2013 Oracle and/or its affiliates. All rights reserved.
==
This product includes software developed by the Java Community Process (https://jcp.org/en/jsr/detail?id=181).
Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved.
==
This product includes software developed by the Bean Validation Project (http://beanvalidation.org).
Copyright (c) Red Hat, Inc., Emmanuel Bernard
==
This product includes software developed by the JAX-RS project.
Copyright (c) 2014, Oracle Corporation and/or its affiliates. All rights reserved.
==
This product includes software developed by the SAAJ Standard Implementation (https://saaj.java.net/).
Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved.
==
This product includes software developed by the JAX-WS project.
Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
==
This product includes software developed by the Joda Time project.
Copyright (c) 2002-2016 Joda.org. All Rights Reserved.
==
This product includes the jQuery Core JavaScript Library.
Copyright 2007, 2016 jQuery Foundation and other contributors.
==
This product includes software developed by the jquery.cookie project.
Copyright 2014 Klaus Hartl
==
This product includes the jQuery UI JavaScript Library.
Copyright 2007, 2015 jQuery Foundation and other contributors.
==
This product includes software developed by the jQuery++ project.
Copyright (C) 2012 Bitovi
==
This product includes software developed by the jsPlumb project.
Copyright (c) 2010 - 2014 jsPlumb, http://jsplumbtoolkit.com/
==
This product includes software developed by the Kendo UI project.
Copyright (c) 2014-2015 Telerik]
==
This product includes software developed by the lodash project.
Copyright jQuery Foundation and other contributors <https://jquery.org/>]
==
This product includes software developed by Terracotta. Inc.
Ehcache source code and documentation are Copyright (c) Terracotta, Inc.
==
This product includes software developed by the SERP Project.
Copyright (c) 2002-2007, A. Abram White http://serp.sourceforge.net/
All rights reserved.
==
This product includes software developed by the ConnId project.
Copyright 2008-2009 Sun Microsystems, Inc. All rights reserved.
Copyright 2011-2016 Tirasa S.r.l. All rights reserved.
==
This product includes software developed by the Activiti BPM Platform project.
==
This product includes AspectJ (>= 1.52) software developed by the Eclipse
Software Foundation.
==
This product includes software developed by the Legion of the Bouncy Castle.
Copyright (c) 2000-2016 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org)
==
This product includes software developed by the Stax 2 Extension API Project.
==
This product includes software developed by the Woodstox Project.
==
This project includes software developed by the Jasypt project.
Copyright (c) 2014 The JASYPT team. All Rights Reserved
==
This product includes softare developed by the Javassist project.
Copyright (C) 1999- by Shigeru Chiba, All rights reserved.
==
This product includes software developed by the MyBatis project.
==
This product includes software developed by the Shibboleth project.
==
This product includes software developed by the ASM project.
Copyright (c) 2000-2011 INRIA, France Telecom
All rights reserved.
==
This product includes software developed by Terracotta. Inc.
Quartz Scheduler source code and documentation are Copyright (c) Terracotta, Inc.
==
This product includes software developed by the Reflections project.
==
This products includes software developed by the Simple Logging Facade for Java (SLF4J) project.
Copyright (c) 2004-2016 QOS.ch.
==
This product includes software developed by SpringSource.
Copyright (c) 2004-2016 SpringSource
All rights reserved.
==
This product includes software developed by the spin.js project.
Copyright (c) 2011-2015 Felix Gnass [fgnass at gmail dot com]
==
This product includes software developed by the FileSaver.js project.
Copyright (c) 2015 Carlos A. Gomes.
==
This product includes software developed by the AngularJS project.
Copyright (c) 2014-2016 Google, Inc. http://angular.io
==
This product includes software developed by the Angular Translate project.
Copyright (c) <2014> <pascal.precht@gmail.com>
==
This product includes software developed by the Bootstrap File Input project.
Copyright (c) 2014 - 2016, Kartik Visweswaran Krajee.com All rights reserved.
==
This product contains unmodified binary redistributions for H2 database engine,
which is dual licensed and available under a modified version of the MPL 1.1 (Mozilla Public License) or under the
(unmodified) EPL 1.0 (Eclipse Public License).
An original copy of the license agreement can be found at: http://www.h2database.com/html/license.html
==
This product includes software developed by the Select2 project.
Copyright (c) 2012-2015 Kevin Brown, Igor Vaynberg, and Select2 contributors
==
This product includes software developed by the SnakeYAML project.
==
This product includes software developed by the Web Services Description Language for Java project.
Copyright (c) Dice.
All Rights Reserved.
==
This product includes software developed by the X-editable project.
Copyright (c) 2012 Vitaliy Potapov
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2017 The CHOReVOLUTION project
Licensed 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.
-->
<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>
<parent>
<groupId>eu.chorevolution.idm</groupId>
<artifactId>syncope</artifactId>
<version>1.0.1-SNAPSHOT</version>
</parent>
<name>CHOReVOLUTION IdM: Standalone Distribution</name>
<artifactId>idm-standalone</artifactId>
<packaging>jar</packaging>
<properties>
<rootpom.basedir>${basedir}/..</rootpom.basedir>
<conf.directory>${CATALINA_HOME}/webapps/syncope/WEB-INF/classes</conf.directory>
<connid.location>file:bundles</connid.location>
<log.directory>${sys:catalina.home}/logs</log.directory>
<work.dir>${project.build.directory}/standalone</work.dir>
</properties>
<dependencies>
<dependency>
<groupId>eu.chorevolution.idm</groupId>
<artifactId>core</artifactId>
<version>${project.version}</version>
<type>war</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>eu.chorevolution.idm</groupId>
<artifactId>console</artifactId>
<version>${project.version}</version>
<type>war</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>eu.chorevolution.idm</groupId>
<artifactId>enduser</artifactId>
<version>${project.version}</version>
<type>war</type>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>prepare-standalone</id>
<goals>
<goal>run</goal>
</goals>
<phase>verify</phase>
<configuration>
<target>
<mkdir dir="${work.dir}" />
<!-- legal stuff -->
<copy file="${project.build.outputDirectory}/README" todir="${work.dir}" />
<copy file="LICENSE" todir="${work.dir}" />
<copy file="NOTICE" todir="${work.dir}" />
<!-- Unzip Tomcat and remove docs and examples from webapps (space saving) -->
<unzip src="${settings.localRepository}/org/codehaus/cargo/cargo-container-archives/tomcat-${tomcat.version}.zip" dest="${work.dir}" />
<delete dir="${work.dir}/apache-tomcat-${tomcat.version}/webapps/docs" />
<delete dir="${work.dir}/apache-tomcat-${tomcat.version}/webapps/examples" />
<!-- local bundles directory -->
<mkdir dir="${work.dir}/apache-tomcat-${tomcat.version}/bundles"/>
<!-- Syncope core -->
<copy todir="${work.dir}/apache-tomcat-${tomcat.version}/webapps/syncope">
<fileset dir="../core/target/syncope" includes="**/*" />
</copy>
<copy todir="${work.dir}/apache-tomcat-${tomcat.version}/webapps/syncope/WEB-INF/classes" overwrite="true">
<fileset dir="${project.build.outputDirectory}/core" />
</copy>
<!-- Syncope console -->
<copy todir="${work.dir}/apache-tomcat-${tomcat.version}/webapps/syncope-console">
<fileset dir="../console/target/syncope-console" includes="**/*" />
</copy>
<copy todir="${work.dir}/apache-tomcat-${tomcat.version}/webapps/syncope-console/WEB-INF/classes" overwrite="true">
<fileset dir="${project.build.outputDirectory}/console" />
</copy>
<!-- Syncope enduser -->
<copy todir="${work.dir}/apache-tomcat-${tomcat.version}/webapps/syncope-enduser">
<fileset dir="../enduser/target/syncope-enduser" includes="**/*" />
</copy>
<copy todir="${work.dir}/apache-tomcat-${tomcat.version}/webapps/syncope-enduser/WEB-INF/classes" overwrite="true">
<fileset dir="${project.build.outputDirectory}/enduser" />
</copy>
<!-- Tomcat shared libraries: H2, groovy, StAX2 API, Woodstox -->
<copy file="${settings.localRepository}/com/h2database/h2/${h2.version}/h2-${h2.version}.jar" todir="${work.dir}/apache-tomcat-${tomcat.version}/lib" />
<copy file="${settings.localRepository}/org/codehaus/groovy/groovy-all/${groovy.version}/groovy-all-${groovy.version}.jar" todir="${work.dir}/apache-tomcat-${tomcat.version}/lib" />
<copy todir="${work.dir}/apache-tomcat-${tomcat.version}/lib">
<fileset dir="${work.dir}/apache-tomcat-${tomcat.version}/webapps/syncope/WEB-INF/lib" includes="stax2-api-*.jar" />
<fileset dir="${work.dir}/apache-tomcat-${tomcat.version}/webapps/syncope/WEB-INF/lib" includes="woodstox-core-asl-*.jar" />
</copy>
<!-- Other custom Tomcat resources -->
<copy file="src/main/resources/context.xml" todir="${work.dir}/apache-tomcat-${tomcat.version}/conf" overwrite="true" />
<copy file="src/main/resources/setenv.sh" todir="${work.dir}/apache-tomcat-${tomcat.version}/bin" />
<copy file="src/main/resources/setenv.bat" todir="${work.dir}/apache-tomcat-${tomcat.version}/bin" />
<replace file="${work.dir}/apache-tomcat-${tomcat.version}/conf/server.xml" token="8080" value="${cargo.servlet.port}" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<outputDirectory>${work.dir}/apache-tomcat-${tomcat.version}/bundles</outputDirectory>
<useBaseVersion>true</useBaseVersion>
<artifactItems>
<artifactItem>
<groupId>eu.chorevolution.idm</groupId>
<artifactId>connid-federation-server</artifactId>
<version>${connid.federationserver.version}</version>
<classifier>bundle</classifier>
</artifactItem>
</artifactItems>
</configuration>
<executions>
<execution>
<id>set-bundles</id>
<phase>verify</phase>
<goals>
<goal>copy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/assemble/standalone-zip.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-standalone-zip</id>
<phase>verify</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>../core/src/main/resources</directory>
<excludes>
<exclude>provisioning.properties</exclude>
</excludes>
<targetPath>core</targetPath>
<filtering>true</filtering>
</resource>
<resource>
<directory>../core/src/main/resources/domains</directory>
<includes>
<include>MasterContent.xml</include>
</includes>
<targetPath>core/domains</targetPath>
<filtering>true</filtering>
</resource>
<resource>
<directory>../core/src/test/resources</directory>
<includes>
<include>provisioning.properties</include>
</includes>
<targetPath>core</targetPath>
<filtering>true</filtering>
</resource>
<resource>
<directory>../core/src/test/resources/domains</directory>
<includes>
<include>Master.properties</include>
</includes>
<targetPath>core/domains</targetPath>
<filtering>true</filtering>
</resource>
<resource>
<directory>../console/src/main/resources</directory>
<targetPath>console</targetPath>
<includes>
<include>log4j2.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>../console/src/test/resources</directory>
<targetPath>console</targetPath>
<includes>
<include>console.properties</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>../enduser/src/main/resources</directory>
<targetPath>enduser</targetPath>
<includes>
<include>log4j2.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>../enduser/src/test/resources</directory>
<targetPath>enduser</targetPath>
<includes>
<include>enduser.properties</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/assemble</directory>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2017 The CHOReVOLUTION project
Licensed 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