blob: f540716607bafedcf1aa28bdb2b9e1a60d7a26fd [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">
<parent>
<groupId>npanday</groupId>
<artifactId>npanday-project</artifactId>
<version>1.2</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>npanday-installer</artifactId>
<packaging>pom</packaging>
<name>NPanday Windows Installer</name>
<scm>
<connection>scm:svn:https://npanday.svn.codeplex.com/svn/releases/npanday-1.2/misc/npanday-installer</connection>
<developerConnection>scm:svn:https://npanday.svn.codeplex.com/svn/releases/npanday-1.2/misc/npanday-installer</developerConnection>
<url>https://npanday.svn.codeplex.com/svn/releases/npanday-1.2/misc/npanday-installer</url>
</scm>
<dependencies>
<dependency>
<groupId>npanday.visualstudio</groupId>
<artifactId>NPanday.VisualStudio.Addin</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>Microsoft.VisualStudio.CommandBars</groupId>
<artifactId>Microsoft.VisualStudio.CommandBars</artifactId>
</exclusion>
<exclusion>
<groupId>EnvDTE</groupId>
<artifactId>EnvDTE</artifactId>
</exclusion>
<exclusion>
<groupId>EnvDTE80</groupId>
<artifactId>EnvDTE80</artifactId>
</exclusion>
<exclusion>
<groupId>Extensibility</groupId>
<artifactId>Extensibility</artifactId>
</exclusion>
<exclusion>
<groupId>VSLangProj</groupId>
<artifactId>VSLangProj</artifactId>
</exclusion>
<exclusion>
<groupId>VSLangProj80</groupId>
<artifactId>VSLangProj80</artifactId>
</exclusion>
<exclusion>
<groupId>VsWebSite.Interop</groupId>
<artifactId>VsWebSite.Interop</artifactId>
</exclusion>
<exclusion>
<groupId>Microsoft.Build.Engine</groupId>
<artifactId>Microsoft.Build.Engine</artifactId>
</exclusion>
</exclusions>
<type>library</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0</version>
<executions>
<execution>
<id>repository</id>
<phase>generate-resources</phase>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>npanday</groupId>
<artifactId>npanday-repository-builder</artifactId>
<version>${project.version}</version>
<type>tar.gz</type>
<classifier>bin</classifier>
</artifactItem>
</artifactItems>
</configuration>
<goals>
<goal>unpack</goal>
</goals>
</execution>
<execution>
<id>addin</id>
<phase>generate-resources</phase>
<configuration>
<outputDirectory>${project.build.directory}/addin</outputDirectory>
<includeTypes>library</includeTypes>
<stripVersion>true</stripVersion>
</configuration>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>${basedir}/src/main/groovy/generateWxs.groovy</source>
</configuration>
</execution>
</executions>
</plugin>
<!-- For the NPanday types -->
<plugin>
<groupId>npanday.plugin</groupId>
<artifactId>maven-compile-plugin</artifactId>
<version>1.1</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>npanday.plugin</groupId>
<artifactId>wix-maven-plugin</artifactId>
<version>${project.version}</version>
<configuration>
<extensions>
<extension>WixNetFxExtension</extension>
<extension>WixUtilExtension</extension>
<extension>WixUIExtension</extension>
</extensions>
</configuration>
<executions>
<execution>
<id>create-wixobj-files</id>
<phase>prepare-package</phase>
<goals>
<goal>candle</goal>
</goals>
<configuration>
<sourceFiles>
<sourceFile>${project.build.directory}/npanday.wxs</sourceFile>
</sourceFiles>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
<execution>
<id>create-msi-files</id>
<goals>
<goal>light</goal>
</goals>
<configuration>
<objectFiles>
<objectFile>${project.build.directory}/npanday.wixobj</objectFile>
</objectFiles>
<outputFile>${project.build.directory}/NPanday-${project.version}.msi</outputFile>
</configuration>
</execution>
</executions>
</plugin>
<!-- TODO: this should be built into the wix plugin, and consider making a packaging type -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>attach-msi</id>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/NPanday-${project.version}.msi</file>
<type>msi</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>