aboutsummaryrefslogtreecommitdiffstats
path: root/buildhelpers/pom.xml
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-03-23 11:57:28 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-03-24 09:51:59 +0200
commit7b1a91f9ece0d38c74886383df3ee29d354592f8 (patch)
tree071ff5ca5ca7dfb8ee4f50da8788940b046dcf05 /buildhelpers/pom.xml
parent7abb4b536dc07ed19c7a1942da68fe5bb00ce4fa (diff)
downloadvaadin-framework-7b1a91f9ece0d38c74886383df3ee29d354592f8.tar.gz
vaadin-framework-7b1a91f9ece0d38c74886383df3ee29d354592f8.zip
Build vaadin-buildhelpers with maven
Change-Id: I1b67fdc7d32d57f98bca78dba4fa190950b94507
Diffstat (limited to 'buildhelpers/pom.xml')
-rw-r--r--buildhelpers/pom.xml202
1 files changed, 202 insertions, 0 deletions
diff --git a/buildhelpers/pom.xml b/buildhelpers/pom.xml
new file mode 100644
index 0000000000..3eefb66d1b
--- /dev/null
+++ b/buildhelpers/pom.xml
@@ -0,0 +1,202 @@
+<?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>
+ <parent>
+ <groupId>com.vaadin</groupId>
+ <artifactId>vaadin-root</artifactId>
+ <version>7.7.0-SNAPSHOT</version>
+ </parent>
+ <groupId>com.vaadin</groupId>
+ <artifactId>vaadin-buildhelpers</artifactId>
+ <name>vaadin-buildhelpers</name>
+ <packaging>jar</packaging>
+
+ <properties>
+ <relnotes.tickets.file>${project.build.directory}/generated-resources/releasenotes/release-notes-tickets.html</relnotes.tickets.file>
+ <relnotes.authors.file>${project.build.directory}/generated-resources/releasenotes/release-notes-authors.html</relnotes.authors.file>
+ <webcontent.dir>${project.build.outputDirectory}/WebContent/</webcontent.dir>
+ <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
+ </properties>
+
+ <organization>
+ <name>Vaadin Ltd</name>
+ </organization>
+ <url>https://vaadin.com/</url>
+ <description>Vaadin build helpers</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>${commons-io.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-cli</groupId>
+ <artifactId>commons-cli</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>com.vaadin</groupId>
+ <artifactId>vaadin-sass-compiler</artifactId>
+ <version>${vaadin.sass.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.carrotsearch</groupId>
+ <artifactId>smartsprites</artifactId>
+ <version>0.2.10</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.5</version>
+ <executions>
+ <execution>
+ <phase>initialize</phase>
+ <id>parse-version</id>
+ <goals>
+ <goal>parse-version</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>filter-release-notes</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <loadfile property="release-notes-tickets" srcFile="${relnotes.tickets.file}"
+ failonerror="false" />
+ <loadfile property="release-notes-authors" srcFile="${relnotes.authors.file}"
+ failonerror="false" />
+ <copy todir="${webcontent.dir}">
+ <fileset dir="src/main/templates/">
+ <patternset>
+ <include name="release-notes.html" />
+ </patternset>
+ </fileset>
+ <filterchain>
+ <expandproperties />
+ <replacetokens begintoken="@" endtoken="@">
+ <token key="version" value="${project.version}" />
+ </replacetokens>
+ <replacetokens begintoken="@" endtoken="@">
+ <token key="version-minor"
+ value="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}" />
+ </replacetokens>
+ <replacetokens begintoken="@" endtoken="@">
+ <token key="builddate" value="${maven.build.timestamp}" />
+ </replacetokens>
+ <replacetokens begintoken="@" endtoken="@">
+ <token key="release-notes-tickets" value="${release-notes-tickets}" />
+ </replacetokens>
+ <replacetokens begintoken="@" endtoken="@">
+ <token key="release-notes-authors" value="${release-notes-authors}" />
+ </replacetokens>
+ </filterchain>
+ </copy>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <index>false</index>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/*.properties</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>release-build</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.4.0</version>
+ <executions>
+ <execution>
+ <id>fetch-release-notes-tickets</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <classpathScope>compile</classpathScope>
+ <executable>${java.home}/bin/java</executable>
+ <arguments>
+ <argument>-Dvaadin.version=${project.version}</argument>
+ <argument>-classpath</argument>
+ <classpath />
+
+ <argument>com.vaadin.buildhelpers.FetchReleaseNotesTickets</argument>
+ </arguments>
+ <outputFile>${relnotes.tickets.file}</outputFile>
+ </configuration>
+ </execution>
+ <execution>
+ <id>fetch-release-notes-authors</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <classpathScope>compile</classpathScope>
+ <executable>${java.home}/bin/java</executable>
+ <arguments>
+ <argument>-Dvaadin.version=${project.version}</argument>
+ <argument>-classpath</argument>
+ <classpath />
+
+ <argument>com.vaadin.buildhelpers.FetchReleaseNotesAuthors</argument>
+ </arguments>
+ <outputFile>${relnotes.authors.file}</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>