Fixing distribution pom

revert-70aa11f8
Geeth Munasinghe 10 years ago
parent 60eb7a7a77
commit cde8456f8d

@ -3,270 +3,259 @@
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">
<parent>
<groupId>org.wso2.carbon</groupId>
<artifactId>wso2cdm-parent</artifactId>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<parent>
<groupId>org.wso2.carbon</groupId>
<artifactId>wso2cdm-parent</artifactId>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>wso2emm</artifactId>
<packaging>jar</packaging>
<name>WSO2 Connected Device Manager (CDM) - Distribution</name>
<description>WSO2 Connected Device Manager (CDM) Distribution</description>
<modelVersion>4.0.0</modelVersion>
<artifactId>wso2emm</artifactId>
<packaging>jar</packaging>
<name>WSO2 Connected Device Manager (CDM) - Distribution</name>
<description>WSO2 Connected Device Manager (CDM) Distribution</description>
<dependencies>
<dependency>
<groupId>org.apache.shindig</groupId>
<artifactId>shindig-server</artifactId>
<version>2.5.0-beta5</version>
<type>war</type>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
<version>2.2</version>
</dependency>
</dependencies>
<dependencies>
<dependency>
<groupId>org.apache.shindig</groupId>
<artifactId>shindig-server</artifactId>
<version>2.5.0-beta5</version>
<type>war</type>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
<version>2.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>${maven-buildnumber-plugin.version}</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>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>${maven-buildnumber-plugin.version}</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>
<!--<version>${maven-dependency-plugin.version}</version>-->
<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.kernal.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>target</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.shindig</groupId>
<artifactId>shindig-server</artifactId>
<version>2.5.0-beta5</version>
<type>war</type>
<overWrite>true</overWrite>
<outputDirectory>target/shindig</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<!--<version>${maven-dependency-plugin.version}</version>-->
<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.kernal.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>target</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.shindig</groupId>
<artifactId>shindig-server</artifactId>
<version>2.5.0-beta5</version>
<type>war</type>
<overWrite>true</overWrite>
<outputDirectory>target/shindig</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<!--<version>${maven-antrun-plugin.version}</version>-->
<executions>
<execution>
<id>3-extract-docs-from-components</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<property name="tempdir" value="target/docs-temp"/>
<property name="jardir" value="target/jars"/>
<property name="shindig.version" value="2.5.0-beta5"/>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<!--<version>${maven-antrun-plugin.version}</version>-->
<executions>
<execution>
<id>3-extract-docs-from-components</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<property name="tempdir" value="target/docs-temp"/>
<property name="jardir" value="target/jars"/>
<property name="shindig.version" value="2.5.0-beta5"/>
<mkdir dir="${tempdir}"/>
<mkdir dir="${tempdir}/wso2emm-${project.version}/repository/components"/>
<unzip dest="${tempdir}">
<fileset dir="target">
<include name="wso2emm-${project.version}.zip"/>
</fileset>
</unzip>
<copy todir="target/wso2carbon-core-${carbon.kernal.version}/repository/components"
overwrite="true">
<fileset dir="${tempdir}/wso2emm-${project.version}/repository/components"></fileset>
</copy>
<!--testing -->
<unzip src="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar"
dest="${jardir}/shindig-common-${shindig.version}">
<patternset>
<exclude name="**/shindig.properties"/>
</patternset>
</unzip>
<copy file="src/repository/conf/shindig.properties"
todir="${jardir}/shindig-common-${shindig.version}"/>
<delete file="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar"/>
<zip destfile="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar"
basedir="${jardir}/shindig-common-${shindig.version}"/>
<delete>
<fileset dir="target/shindig/WEB-INF/lib" includes="slf4j*"/>
</delete>
<copy file="src/repository/resources/shindig/index.jsp"
todir="target/shindig"/>
<mkdir dir="${tempdir}"/>
<mkdir dir="${tempdir}/wso2emm-${project.version}/repository/components"/>
<unzip dest="${tempdir}">
<fileset dir="target">
<include name="wso2emm-${project.version}.zip"/>
</fileset>
</unzip>
<copy todir="target/wso2carbon-core-${carbon.kernal.version}/repository/components"
overwrite="true">
<fileset
dir="${tempdir}/wso2emm-${project.version}/repository/components"></fileset>
</copy>
<!--testing -->
<unzip src="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar"
dest="${jardir}/shindig-common-${shindig.version}">
<patternset>
<exclude name="**/shindig.properties"/>
</patternset>
</unzip>
<copy file="src/repository/conf/shindig.properties"
todir="${jardir}/shindig-common-${shindig.version}"/>
<delete file="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar"/>
<zip destfile="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar"
basedir="${jardir}/shindig-common-${shindig.version}"/>
<delete>
<fileset dir="target/shindig/WEB-INF/lib" includes="slf4j*"/>
</delete>
<copy file="src/repository/resources/shindig/index.jsp"
todir="target/shindig"/>
<!--
<zip destfile="target/ROOT.war"
basedir="target/shindig" />
-->
<concat destfile="target/wso2carbon-core-${carbon.kernal.version}/repository/log4j.properties">
og4j.logger.net.sf.ehcache=ERROR
</concat>
<concat destfile="target/wso2carbon-core-${carbon.kernal.version}/repository/log4j.properties">
og4j.logger.net.sf.ehcache=ERROR
</concat>
<delete file="target/wso2emm-${project.version}.zip"/>
<delete dir="${tempdir}"/>
</tasks>
</configuration>
</execution>
<execution>
<id>copy_modules_apps</id>
<phase>package</phase>
<configuration>
<tasks>
<copy todir="target/wso2carbon-core-${carbon.kernal.version}/modules"
overwrite="true">
<fileset dir="src/repository/modules"></fileset>
</copy>
<copy todir="target/wso2carbon-core-${carbon.kernal.version}/repository/deployment/server/jaggeryapps"
overwrite="true">
<fileset dir="../apps"></fileset>
</copy>
<delete file="target/wso2emm-${project.version}.zip"/>
<delete dir="${tempdir}"/>
</tasks>
</configuration>
</execution>
<execution>
<id>copy_modules_apps</id>
<phase>package</phase>
<configuration>
<tasks>
<copy todir="target/wso2carbon-core-${carbon.kernal.version}/modules"
overwrite="true">
<fileset dir="src/repository/modules"></fileset>
</copy>
<!-- -->
<copy todir="target/wso2carbon-core-${carbon.kernal.version}/repository/deployment/server/jaggeryapps"
overwrite="true">
<fileset dir="../apps"></fileset>
</copy>
<!-- -->
<copy todir="target/wso2carbon-core-${carbon.kernal.version}/repository/components/plugins"
overwrite="true">
<fileset dir="src/repository/components/patches/apimgt"></fileset>
</copy>
<copy todir="target/wso2carbon-core-${carbon.kernal.version}/repository/components/patches/patch0001"
overwrite="true">
<fileset dir="src/repository/plugins"></fileset>
</copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>clean_target</id>
<phase>install</phase>
<configuration>
<tasks>
<delete dir="target/jars"/>
<delete dir="target/*.xml"/>
<delete dir="target/archive-tmp"/>
<delete dir="target/dependency-maven-plugin-markers"/>
<delete dir="target/maven-archiver"/>
<delete dir="target/wso2carbon-core-${carbon.kernal.version}"/>
<delete file="target/wso2emm-${project.version}.jar"/>
<delete dir="target/sources"/>
<delete dir="target/site"/>
<delete dir="target/antrun"/>
<delete dir="src/site"/>
<delete dir="target/shindig"/>
<delete dir="target/jaxwebapps"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<copy todir="target/wso2carbon-core-${carbon.kernal.version}/repository/components/plugins"
overwrite="true">
<fileset dir="src/repository/components/patches/apimgt"></fileset>
</copy>
<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>
<filters>
<filter>${basedir}/src/assembly/filter.properties</filter>
</filters>
<descriptors>
<descriptor>${basedir}/src/assembly/dist.xml</descriptor>
</descriptors>
</configuration>
</execution>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>clean_target</id>
<phase>install</phase>
<configuration>
<tasks>
<delete dir="target/jars"/>
<delete dir="target/*.xml"/>
<delete dir="target/archive-tmp"/>
<delete dir="target/dependency-maven-plugin-markers"/>
<delete dir="target/maven-archiver"/>
<delete dir="target/wso2carbon-core-${carbon.kernal.version}"/>
<delete file="target/wso2emm-${project.version}.jar"/>
<delete dir="target/sources"/>
<delete dir="target/site"/>
<delete dir="target/antrun"/>
<delete dir="src/site"/>
<delete dir="target/shindig"/>
<delete dir="target/jaxwebapps"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<execution>
<id>2-dist</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
<configuration>
<filters>
<filter>${basedir}/src/assembly/filter.properties</filter>
</filters>
<descriptors>
<descriptor>${basedir}/src/assembly/bin.xml</descriptor>
<!--
<descriptor>${basedir}/src/assembly/docs.xml</descriptor>
-->
</descriptors>
</configuration>
</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>
<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>
<filters>
<filter>${basedir}/src/assembly/filter.properties</filter>
</filters>
<descriptors>
<descriptor>${basedir}/src/assembly/bin.xml</descriptor>
<!--
<descriptor>${basedir}/src/assembly/docs.xml</descriptor>
-->
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>auto-clean</id>
<phase>initialize</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>auto-clean</id>
<phase>initialize</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

Loading…
Cancel
Save