forked from community/product-iots
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
278 lines
14 KiB
278 lines
14 KiB
8 years ago
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!--
|
||
|
~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||
|
~
|
||
|
~ WSO2 Inc. 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.
|
||
|
-->
|
||
8 years ago
|
<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">
|
||
8 years ago
|
|
||
|
<parent>
|
||
|
<groupId>org.wso2.iot</groupId>
|
||
|
<artifactId>wso2iot-analytics-parent</artifactId>
|
||
8 years ago
|
<version>3.1.0-SNAPSHOT</version>
|
||
8 years ago
|
<relativePath>../pom.xml</relativePath>
|
||
|
</parent>
|
||
|
|
||
|
<modelVersion>4.0.0</modelVersion>
|
||
|
<artifactId>wso2iot-analytics</artifactId>
|
||
8 years ago
|
<name>WSO2 IoT - Analytics - Product Distribution</name>
|
||
8 years ago
|
<packaging>jar</packaging>
|
||
|
|
||
|
<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>
|
||
8 years ago
|
<version>${carbon.kernel.version}</version>
|
||
8 years ago
|
<type>zip</type>
|
||
|
<overWrite>true</overWrite>
|
||
|
<outputDirectory>target</outputDirectory>
|
||
|
</artifactItem>
|
||
|
</artifactItems>
|
||
|
</configuration>
|
||
|
</execution>
|
||
|
</executions>
|
||
|
</plugin>
|
||
|
|
||
8 years ago
|
<plugin>
|
||
|
<groupId>com.google.code.maven-config-processor-plugin</groupId>
|
||
|
<artifactId>config-processor-maven-plugin</artifactId>
|
||
|
<version>2.6</version>
|
||
|
<executions>
|
||
|
<execution>
|
||
|
<id>change_datasource_config</id>
|
||
|
<phase>package</phase>
|
||
|
<goals>
|
||
|
<goal>process</goal>
|
||
|
</goals>
|
||
|
<configuration>
|
||
|
<failOnMissingXpath>true</failOnMissingXpath>
|
||
|
<transformations>
|
||
|
<transformation>
|
||
|
<input>${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/datasources/master-datasources.xml</input>
|
||
|
<output>../../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/datasources/master-datasources.xml</output>
|
||
|
<config>datasource_config_change.xml</config>
|
||
|
</transformation>
|
||
|
</transformations>
|
||
|
</configuration>
|
||
|
</execution>
|
||
8 years ago
|
<execution>
|
||
|
<id>init-input-adapter-config</id>
|
||
|
<phase>prepare-package</phase>
|
||
|
<goals>
|
||
|
<goal>process</goal>
|
||
|
</goals>
|
||
|
<configuration>
|
||
|
<failOnMissingXpath>true</failOnMissingXpath>
|
||
|
<transformations>
|
||
|
<transformation>
|
||
|
<input>${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/input-event-adapters.xml</input>
|
||
|
<output>../../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/input-event-adapters.xml</output>
|
||
|
<config>input-adapter-change.xml</config>
|
||
|
</transformation>
|
||
|
</transformations>
|
||
|
</configuration>
|
||
|
</execution>
|
||
|
<execution>
|
||
|
<id>init-output-adapter-config</id>
|
||
|
<phase>prepare-package</phase>
|
||
|
<goals>
|
||
|
<goal>process</goal>
|
||
|
</goals>
|
||
|
<configuration>
|
||
|
<failOnMissingXpath>true</failOnMissingXpath>
|
||
|
<transformations>
|
||
|
<transformation>
|
||
|
<input>${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/output-event-adapters.xml</input>
|
||
|
<output>../../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/output-event-adapters.xml</output>
|
||
|
<config>output-adapter-change.xml</config>
|
||
|
</transformation>
|
||
|
</transformations>
|
||
|
</configuration>
|
||
|
</execution>
|
||
8 years ago
|
</executions>
|
||
|
</plugin>
|
||
|
|
||
8 years ago
|
<plugin>
|
||
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||
|
<executions>
|
||
|
<execution>
|
||
|
<id>3-extract-docs-from-components</id>
|
||
|
<phase>package</phase>
|
||
|
<goals>
|
||
|
<goal>run</goal>
|
||
|
</goals>
|
||
|
<configuration>
|
||
|
<tasks>
|
||
8 years ago
|
<property name="tempdir" value="target/docs-temp" />
|
||
|
<mkdir dir="${tempdir}" />
|
||
8 years ago
|
<unzip dest="${tempdir}">
|
||
|
<fileset dir="target">
|
||
8 years ago
|
<include name="${project.artifactId}-${project.version}.zip" />
|
||
8 years ago
|
</fileset>
|
||
|
</unzip>
|
||
8 years ago
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components" overwrite="true">
|
||
8 years ago
|
<fileset dir="${tempdir}/${project.artifactId}-${project.version}/repository/components">
|
||
8 years ago
|
</fileset>
|
||
|
</copy>
|
||
8 years ago
|
<delete file="target/${project.artifactId}-${project.version}.zip" />
|
||
|
<delete dir="${tempdir}" />
|
||
8 years ago
|
</tasks>
|
||
|
</configuration>
|
||
|
</execution>
|
||
|
|
||
|
<execution>
|
||
|
<id>fix-config-issues</id>
|
||
|
<phase>package</phase>
|
||
|
<configuration>
|
||
|
<tasks>
|
||
|
<!-- commenting "GetAllRolesOfUserEnabled" property to fix
|
||
|
https://wso2.org/jira/browse/IDENTITY-3489 -->
|
||
8 years ago
|
<replace file="target/wso2carbon-core-${carbon.kernel.version}/repository/conf/user-mgt.xml" token="<Property name="GetAllRolesOfUserEnabled">true</Property>" value="<!--Property name="GetAllRolesOfUserEnabled">true</Property-->" />
|
||
8 years ago
|
<!-- Move IS UI to configure menu -->
|
||
8 years ago
|
<property name="tempdir2" value="target/identity-ui" />
|
||
|
<mkdir dir="${tempdir2}" />
|
||
8 years ago
|
<unzip src="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/org.wso2.carbon.user.mgt.ui_${identity.jar.version}.jar" dest="${tempdir2}" />
|
||
8 years ago
|
<replace file="${tempdir2}/META-INF/component.xml" token="<parent-menu>identity_menu</parent-menu>" value="<parent-menu>configure_menu</parent-menu>" />
|
||
8 years ago
|
<zip destfile="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/org.wso2.carbon.user.mgt.ui_${identity.jar.version}.jar" basedir="${tempdir2}" />
|
||
|
<unzip src="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/org.wso2.carbon.identity.user.store.configuration.ui_${identity.jar.version}.jar" dest="${tempdir3}" />
|
||
8 years ago
|
<replace file="${tempdir3}/META-INF/component.xml" token="<parent-menu>identity_menu</parent-menu>" value="<parent-menu>configure_menu</parent-menu>" />
|
||
8 years ago
|
<zip destfile="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/org.wso2.carbon.identity.user.store.configuration.ui_${identity.jar.version}.jar" basedir="${tempdir3}" />
|
||
|
<unzip src="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/org.wso2.carbon.security.mgt.ui_${identity.jar.version}.jar" dest="${tempdir4}" />
|
||
8 years ago
|
<replace file="${tempdir4}/META-INF/component.xml" token="<parent-menu>manage_menu</parent-menu>" value="<parent-menu>configure_menu</parent-menu>" />
|
||
8 years ago
|
<zip destfile="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/org.wso2.carbon.security.mgt.ui_${identity.jar.version}.jar" basedir="${tempdir4}" />
|
||
|
<concat destfile="target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/logging-bridge.properties" append="true" fixlastline="true">org.restlet.level=SEVERE
|
||
8 years ago
|
</concat>
|
||
8 years ago
|
<delete dir="${tempdir4}" />
|
||
|
<delete dir="${tempdir3}" />
|
||
|
<delete dir="${tempdir2}" />
|
||
8 years ago
|
</tasks>
|
||
|
</configuration>
|
||
|
<goals>
|
||
|
<goal>run</goal>
|
||
|
</goals>
|
||
|
</execution>
|
||
|
|
||
|
<execution>
|
||
|
<id>clean_target</id>
|
||
|
<phase>install</phase>
|
||
|
<configuration>
|
||
|
<tasks>
|
||
8 years ago
|
<delete dir="target/archive-tmp" />
|
||
|
<delete dir="target/dependency-maven-plugin-markers" />
|
||
|
<delete dir="target/maven-archiver" />
|
||
8 years ago
|
<delete dir="target/wso2carbon-core-${carbon.kernel.version}" />
|
||
8 years ago
|
<delete file="target/${project.artifactId}-${project.version}.jar" />
|
||
|
<delete dir="target/sources" />
|
||
|
<delete dir="target/site" />
|
||
|
<delete dir="src/site" />
|
||
|
<delete dir="target/identity-ui" />
|
||
8 years ago
|
</tasks>
|
||
|
</configuration>
|
||
|
<goals>
|
||
|
<goal>run</goal>
|
||
|
</goals>
|
||
|
</execution>
|
||
|
</executions>
|
||
|
</plugin>
|
||
|
<plugin>
|
||
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||
|
<executions>
|
||
|
<execution>
|
||
|
<id>1-pre-dist</id>
|
||
|
<phase>test</phase>
|
||
|
<!--we are creating a temporary carbon distribution for document extracting purposes during the test phase-->
|
||
|
<goals>
|
||
|
<goal>attached</goal>
|
||
|
</goals>
|
||
|
<configuration>
|
||
|
<appendAssemblyId>false</appendAssemblyId>
|
||
|
<filters>
|
||
|
<filter>${basedir}/src/assembly/filter.properties</filter>
|
||
|
</filters>
|
||
|
<descriptors>
|
||
|
<descriptor>${basedir}/src/assembly/dist.xml</descriptor>
|
||
|
</descriptors>
|
||
|
</configuration>
|
||
|
</execution>
|
||
|
<execution>
|
||
|
<id>2-dist</id>
|
||
|
<phase>package</phase>
|
||
|
<goals>
|
||
|
<goal>attached</goal>
|
||
|
</goals>
|
||
|
<configuration>
|
||
|
<appendAssemblyId>false</appendAssemblyId>
|
||
|
<filters>
|
||
|
<filter>${basedir}/src/assembly/filter.properties</filter>
|
||
|
</filters>
|
||
|
<descriptors>
|
||
|
<descriptor>${basedir}/src/assembly/bin.xml</descriptor>
|
||
|
</descriptors>
|
||
|
</configuration>
|
||
|
</execution>
|
||
|
</executions>
|
||
|
</plugin>
|
||
|
<plugin>
|
||
|
<groupId>org.apache.maven.plugins</groupId>
|
||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||
|
<configuration>
|
||
|
<skip>true</skip>
|
||
|
</configuration>
|
||
|
</plugin>
|
||
|
</plugins>
|
||
|
</build>
|
||
|
<properties>
|
||
|
<identity.jar.version>${carbon.identity.framework.version}</identity.jar.version>
|
||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
|
</properties>
|
||
|
</project>
|