forked from community/device-mgt-core
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.
148 lines
6.5 KiB
148 lines
6.5 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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">
|
|
<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>wso2cdm-profile-gen</artifactId>
|
|
<packaging>pom</packaging>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<inherited>false</inherited>
|
|
<executions>
|
|
<execution>
|
|
<id>1-unpack-p2-agent-distribution</id>
|
|
<phase>test</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>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>unpack-equinox-executable</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.eclipse.equinox</groupId>
|
|
<artifactId>org.eclipse.equinox.executable</artifactId>
|
|
<version>3.5.0.v20110530-7P7NFUFFLWUl76mart</version>
|
|
<type>zip</type>
|
|
<overWrite>true</overWrite>
|
|
<outputDirectory>target</outputDirectory>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.wso2.maven</groupId>
|
|
<artifactId>carbon-p2-plugin</artifactId>
|
|
<version>${carbon.p2.plugin.version}</version>
|
|
|
|
<executions>
|
|
<execution>
|
|
<id>2-p2-repo-generation</id>
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
<goal>p2-repo-gen</goal>
|
|
</goals>
|
|
|
|
<configuration>
|
|
<metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
|
|
<artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
|
|
<publishArtifacts>true</publishArtifacts>
|
|
<publishArtifactRepository>true</publishArtifactRepository>
|
|
|
|
<featureArtifacts>
|
|
|
|
<featureArtifactDef>
|
|
org.wso2.carbon:org.wso2.carbon.ndatasource.feature:${carbon.kernal.version}
|
|
</featureArtifactDef>
|
|
</featureArtifacts>
|
|
|
|
</configuration>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>3-p2-profile-generation</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>p2-profile-gen</goal>
|
|
</goals>
|
|
|
|
<configuration>
|
|
<profile>default</profile>
|
|
<metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
|
|
<artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
|
|
<destination>
|
|
${basedir}/target/wso2carbon-core-${carbon.kernal.version}/repository/components
|
|
</destination>
|
|
<deleteOldProfileFiles>true</deleteOldProfileFiles>
|
|
<features>
|
|
<feature>
|
|
<id>org.wso2.carbon.ndatasource.feature.group</id>
|
|
<version>${carbon.kernal.version}</version>
|
|
</feature>
|
|
|
|
<feature>
|
|
<id>org.wso2.carbon.ndatasource.ui.feature.group</id>
|
|
<version>${carbon.kernal.version}</version>
|
|
</feature>
|
|
</features>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<configuration>
|
|
<tasks>
|
|
<replace token="false" value="true"
|
|
dir="target/wso2carbon-core-${carbon.kernal.version}/repository/components">
|
|
<include name="**/bundles.info"/>
|
|
</replace>
|
|
</tasks>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|