blob: e488b6c5832b050aac6126cd2bb7c4df3b505a81 [file] [log] [blame]
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>${groupId}</groupId>
<version>${version}</version>
<artifactId>${artifactId}</artifactId>
<packaging>jar</packaging>
<!-- change these to the appropriate values -->
<name>My Apex Application Configuration</name>
<description>My Apex Application Configuration Description</description>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<properties>
<apex.apppackage.groupid>${groupId}</apex.apppackage.groupid>
<apex.apppackage.name>myapexapp</apex.apppackage.name>
<apex.apppackage.minversion>1.0.0</apex.apppackage.minversion>
<apex.apppackage.maxversion>1.9999.9999</apex.apppackage.maxversion>
<apex.appconf.classpath>classpath/*</apex.appconf.classpath>
<apex.appconf.files>files/*</apex.appconf.files>
<apex.appconf.app>app/*</apex.appconf.app>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<downloadSources>true</downloadSources>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.7</source>
<target>1.7</target>
<debug>true</debug>
<optimize>false</optimize>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>target/deps</outputDirectory>
<includeScope>runtime</includeScope>
</configuration>
</execution>
<execution>
<id>unpack</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>jar</type>
<includes>META-INF/MANIFEST.MF</includes>
<outputDirectory>target</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>conf-package-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>${project.artifactId}-apexconf</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/assemble/confPackage.xml</descriptor>
</descriptors>
<archiverConfig>
<defaultDirectoryMode>0755</defaultDirectoryMode>
</archiverConfig>
<archive>
<manifestEntries>
<DT-App-Package-Group-Id>${apex.apppackage.groupid}</DT-App-Package-Group-Id>
<DT-App-Package-Name>${apex.apppackage.name}</DT-App-Package-Name>
<DT-App-Package-Min-Version>${apex.apppackage.minversion}</DT-App-Package-Min-Version>
<DT-App-Package-Max-Version>${apex.apppackage.maxversion}</DT-App-Package-Max-Version>
<DT-Conf-Package-Name>${project.artifactId}</DT-Conf-Package-Name>
<DT-Conf-Package-Display-Name>${project.name}</DT-Conf-Package-Display-Name>
<DT-Conf-Package-Description>${project.description}</DT-Conf-Package-Description>
<Class-Path>${apex.appconf.classpath}</Class-Path>
<Files>${apex.appconf.files}</Files>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>package</phase>
<configuration>
<target>
<move file="${project.build.directory}/${project.artifactId}-apexconf.jar"
tofile="${project.build.directory}/${project.artifactId}.apc"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>