Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.foo.www</groupId>
<artifactId>fe-package</artifactId>
<version>0.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>platform-view</artifactId>
<packaging>content-package</packaging>
<name>${project.groupId} - ${project.artifactId}</name>
<description>
</description>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>exec-npm-install</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
<workingDirectory>${basedir}</workingDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>exec-bower-install</id>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>bower</executable>
<arguments>
<argument>install</argument>
</arguments>
<workingDirectory>${basedir}</workingDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
</plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>initialize-node</id>
<phase>compile</phase>
</execution>
<execution>
<id>build</id>
<phase>compile</phase>
</execution>
<execution>
<id>build-integration-tests</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${grunt.executable}</executable>
<arguments>
<argument>--host=http://${www.host}:${www.port}/</argument>
<argument>test</argument>
</arguments>
</configuration>
</execution>
</executions>
<configuration>
<executable>maven</executable>
<workingDirectory>../platform-view</workingDirectory>
</configuration>
</plugin>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment