| <?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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.stratos</groupId> |
| <artifactId>stratos</artifactId> |
| <version>4.1.4</version> |
| <relativePath>../../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>stratos-distribution</artifactId> |
| <packaging>jar</packaging> |
| <name>Apache Stratos - Distribution</name> |
| <description>Apache Stratos Manager Distribution</description> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.rampart</groupId> |
| <artifactId>rampart</artifactId> |
| <version>${rampart.mar.version}</version> |
| <type>mar</type> |
| </dependency> |
| <dependency> |
| <groupId>bouncycastle</groupId> |
| <artifactId>bcprov-jdk15</artifactId> |
| <version>132</version> |
| </dependency> |
| <dependency> |
| <groupId>org.wso2.carbon</groupId> |
| <artifactId>org.wso2.carbon.mediator.bridge</artifactId> |
| <version>${carbon.kernel.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.activemq</groupId> |
| <artifactId>activemq-client</artifactId> |
| <version>5.10.0</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-j2ee-management_1.1_spec</artifactId> |
| <version>1.0.1</version> |
| </dependency> |
| <dependency> |
| <groupId>org.fusesource.hawtbuf</groupId> |
| <artifactId>hawtbuf</artifactId> |
| <version>1.9</version> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.paho</groupId> |
| <artifactId>mqtt-client</artifactId> |
| <version>0.4.0</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.stratos</groupId> |
| <artifactId>org.apache.stratos.cep300.extension</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-jta_1.1_spec</artifactId> |
| <version>1.1.1</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.stratos</groupId> |
| <artifactId>org.wso2.carbon.ui</artifactId> |
| <version>${carbon.ui.stratos.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>maven-buildnumber-plugin</artifactId> |
| <version>0.9.4</version> |
| <configuration> |
| <format>{0,date,dd MMM yyyy}</format> |
| <items> |
| <item>timestamp</item> |
| </items> |
| <doCheck>false</doCheck> |
| <doUpdate>false</doUpdate> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>validate</phase> |
| <goals> |
| <goal>create</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <inherited>false</inherited> |
| <executions> |
| <execution> |
| <id>2-unpack-wso2carbon</id> |
| <phase>package</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.wso2.carbon</groupId> |
| <artifactId>wso2carbon-core</artifactId> |
| <version>${carbon.kernel.version}</version> |
| <type>zip</type> |
| <overWrite>true</overWrite> |
| <outputDirectory>target</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>1-run-ant</id> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <copy todir="target/wso2carbon-core-4.2.0/dbscripts/identity" overwrite="false"> |
| <fileset |
| dir="${basedir}/../p2-profile-gen/target/wso2carbon-core-4.2.0/dbscripts/identity/"/> |
| </copy> |
| <path id="h2.classpath"> |
| <path refid="maven.compile.classpath"/> |
| </path> |
| <echo message="########### Adding identity , identity/application-mgt tables to WSO2Carbon DB ##############"/> |
| <sql driver="org.h2.Driver" |
| url="jdbc:h2:${basedir}/target/wso2carbon-core-4.2.0/repository/database//WSO2CARBON_DB" |
| userid="wso2carbon" password="wso2carbon" autocommit="true" onerror="continue"> |
| <classpath> |
| <path refid="h2.classpath"/> |
| </classpath> |
| <fileset |
| file="target/wso2carbon-core-4.2.0/dbscripts/identity/application-mgt/h2.sql"/> |
| </sql> |
| <sql driver="org.h2.Driver" |
| url="jdbc:h2:${basedir}/target/wso2carbon-core-4.2.0/repository/database/WSO2CARBON_DB" |
| userid="wso2carbon" password="wso2carbon" autocommit="true" onerror="continue"> |
| <classpath> |
| <path refid="h2.classpath"/> |
| </classpath> |
| <fileset file="target/wso2carbon-core-4.2.0/dbscripts/identity/h2.sql"/> |
| </sql> |
| </tasks> |
| </configuration> |
| </execution> |
| <execution> |
| <id>clean_target</id> |
| <phase>install</phase> |
| <configuration> |
| <tasks> |
| <delete dir="target/archive-tmp"/> |
| <delete dir="target/dependency-maven-plugin-markers"/> |
| <delete dir="target/maven-archiver"/> |
| <delete dir="target/wso2carbon-core-${carbon.kernel.version}"/> |
| <delete file="target/${project.artifactId}-${project.version}.jar"/> |
| <delete dir="target/sources"/> |
| <delete dir="target/database"/> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>default</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>4-dist</id> |
| <phase>package</phase> |
| <goals> |
| <goal>attached</goal> |
| </goals> |
| <configuration> |
| <finalName>${stratos.distribution.name}-${project.version}</finalName> |
| <filters> |
| <filter>${basedir}/src/assembly/filter.properties</filter> |
| </filters> |
| <descriptors> |
| <descriptor>${basedir}/src/assembly/bin.xml</descriptor> |
| </descriptors> |
| <appendAssemblyId>false</appendAssemblyId> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>fix_configuration</id> |
| <activation> |
| <property> |
| <name>build</name> |
| <value>box</value> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>1-pre_dist</id> |
| <phase>test</phase> |
| <goals> |
| <goal>attached</goal> |
| </goals> |
| <configuration> |
| <finalName>${stratos.distribution.name}-${project.version}</finalName> |
| <filters> |
| <filter>${basedir}/src/assembly/filter.properties</filter> |
| </filters> |
| <descriptors> |
| <descriptor>${basedir}/src/assembly/dist.xml</descriptor> |
| </descriptors> |
| <appendAssemblyId>false</appendAssemblyId> |
| </configuration> |
| </execution> |
| <execution> |
| <id>4-dist</id> |
| <phase>package</phase> |
| <goals> |
| <goal>attached</goal> |
| </goals> |
| <configuration> |
| <finalName>${stratos.distribution.name}-${project.version}</finalName> |
| <filters> |
| <filter>${basedir}/src/assembly/filter.properties</filter> |
| </filters> |
| <descriptors> |
| <descriptor>${basedir}/src/assembly/bin.xml</descriptor> |
| </descriptors> |
| <appendAssemblyId>false</appendAssemblyId> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |