| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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. |
| --> |
| <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>${groupId}</groupId> |
| <artifactId>${rootArtifactId}</artifactId> |
| <version>${version}</version> |
| </parent> |
| |
| <name>Apache Syncope sample project - FIT</name> |
| <groupId>${groupId}</groupId> |
| <artifactId>${artifactId}</artifactId> |
| <packaging>war</packaging> |
| |
| <properties> |
| <spring.profiles.active>embedded</spring.profiles.active> |
| <exec.skip>true</exec.skip> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>com.h2database</groupId> |
| <artifactId>h2</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.syncope.fit</groupId> |
| <artifactId>syncope-fit-build-tools</artifactId> |
| <version>${syncope.version}</version> |
| <type>war</type> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-install-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <inherited>false</inherited> |
| <configuration> |
| <failOnMissingWebXml>false</failOnMissingWebXml> |
| </configuration> |
| <executions> |
| <execution> |
| <id>default-war</id> |
| <phase>none</phase> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <inherited>true</inherited> |
| <executions> |
| <execution> |
| <id>addFlowableTestContent</id> |
| <phase>prepare-package</phase> |
| <configuration> |
| <target> |
| <taskdef resource="net/sf/antcontrib/antcontrib.properties" |
| classpathref="maven.plugin.classpath"/> |
| |
| <if> |
| <not> |
| <available file="../core/target/test-classes/backup/MasterContent.xml"/> |
| </not> |
| <then> |
| <mkdir dir="../core/target/test-classes/backup"/> |
| <copy file="../core/target/test-classes/domains/MasterContent.xml" |
| todir="../core/target/test-classes/backup"/> |
| </then> |
| </if> |
| <if> |
| <available file="../core/target/syncope/WEB-INF/lib/flowable-engine-${flowable.version}.jar"/> |
| <then> |
| <xslt basedir="../core/target/test-classes/backup" |
| includes="MasterContent.xml" |
| destdir="../core/target/test-classes/domains" |
| extension=".xml" |
| force="true" |
| style="../core/src/test/resources/addFlowableToContent.xsl"/> |
| </then> |
| </if> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>setupEmbeddedConf</id> |
| <phase>package</phase> |
| <configuration> |
| <target> |
| <delete dir="../core/target/syncope/WEB-INF/classes/domains"/> |
| <copy todir="../core/target/syncope/WEB-INF/classes/domains"> |
| <fileset dir="../core/target/test-classes/domains"/> |
| </copy> |
| <copy file="../core/target/test-classes/core-embedded.properties" |
| todir="../core/target/syncope/WEB-INF/classes" |
| overwrite="true"/> |
| <copy file="../core/target/test-classes/core-all.properties" |
| todir="../core/target/syncope/WEB-INF/classes" |
| overwrite="true"/> |
| |
| <copy file="../console/target/test-classes/console-embedded.properties" |
| todir="../console/target/syncope-console/WEB-INF/classes" |
| overwrite="true"/> |
| |
| <copy file="../enduser/target/test-classes/enduser-embedded.properties" |
| todir="../enduser/target/syncope-enduser/WEB-INF/classes" |
| overwrite="true"/> |
| |
| <copy file="../wa/target/test-classes/wa-embedded.properties" |
| todir="../wa/target/syncope-wa/WEB-INF/classes" |
| overwrite="true"/> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>ant-contrib</groupId> |
| <artifactId>ant-contrib</artifactId> |
| <version>20020829</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <inherited>true</inherited> |
| <executions> |
| <execution> |
| <id>default-cli</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <executable>${JAVA_HOME}/bin/java</executable> |
| <arguments> |
| <argument>-jar</argument> |
| <argument>${basedir}/../sra/target/syncope-sra.jar</argument> |
| <argument>-Dreactor.netty.http.server.accessLogEnabled=true</argument> |
| </arguments> |
| <environmentVariables> |
| <LOADER_PATH>${basedir}/../sra/target/test-classes</LOADER_PATH> |
| <SPRING_PROFILES_ACTIVE>cas</SPRING_PROFILES_ACTIVE> |
| </environmentVariables> |
| <async>true</async> |
| <asyncDestroyOnShutdown>true</asyncDestroyOnShutdown> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.cargo</groupId> |
| <artifactId>cargo-maven3-plugin</artifactId> |
| <inherited>true</inherited> |
| <configuration> |
| <container> |
| <containerId>tomcat9x</containerId> |
| <zipUrlInstaller> |
| <url>https://repo1.maven.org/maven2/org/apache/tomcat/tomcat/${tomcat.version}/tomcat-${tomcat.version}.zip</url> |
| <downloadDir>${settings.localRepository}/org/codehaus/cargo/cargo-container-archives</downloadDir> |
| <extractDir>${project.build.directory}/cargo/extract</extractDir> |
| </zipUrlInstaller> |
| <timeout>300000</timeout> |
| <log>${cargo.log}</log> |
| <output>${cargo.output}</output> |
| <dependencies> |
| <dependency> |
| <groupId>com.h2database</groupId> |
| <artifactId>h2</artifactId> |
| </dependency> |
| </dependencies> |
| </container> |
| <configuration> |
| <properties> |
| <cargo.jvmargs> |
| -Dspring.profiles.active=${spring.profiles.active} |
| -XX:+CMSClassUnloadingEnabled -Xmx1024m -Xms512m</cargo.jvmargs> |
| </properties> |
| </configuration> |
| <deployables> |
| <deployable> |
| <groupId>org.apache.syncope.fit</groupId> |
| <artifactId>syncope-fit-build-tools</artifactId> |
| <type>war</type> |
| <properties> |
| <context>syncope-fit-build-tools</context> |
| </properties> |
| </deployable> |
| <deployable> |
| <location>../core/target/syncope</location> |
| <properties> |
| <context>syncope</context> |
| </properties> |
| </deployable> |
| <deployable> |
| <location>../console/target/syncope-console</location> |
| <properties> |
| <context>syncope-console</context> |
| </properties> |
| </deployable> |
| <deployable> |
| <location>../enduser/target/syncope-enduser</location> |
| <properties> |
| <context>syncope-enduser</context> |
| </properties> |
| </deployable> |
| <deployable> |
| <location>../wa/target/syncope-wa</location> |
| <properties> |
| <context>syncope-wa</context> |
| </properties> |
| </deployable> |
| </deployables> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>embedded</id> |
| |
| <properties> |
| <exec.skip>false</exec.skip> |
| </properties> |
| |
| <build> |
| <defaultGoal>clean verify cargo:run</defaultGoal> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>all</id> |
| |
| <properties> |
| <spring.profiles.active>embedded,all</spring.profiles.active> |
| </properties> |
| |
| <build> |
| <defaultGoal>clean verify cargo:run</defaultGoal> |
| </build> |
| </profile> |
| </profiles> |
| </project> |