aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/pom.xml
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2014-03-19 01:11:58 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2014-03-19 01:11:58 +0100
commita1c5bea32ce799174f2aa27bab70d7003778dccc (patch)
tree7e38f2799de9399193c46918559e5029c1053fdb /sonar-server/pom.xml
parentafc627cb8e982d63f98a01eb5830a00f9ec081ce (diff)
downloadsonarqube-a1c5bea32ce799174f2aa27bab70d7003778dccc.tar.gz
sonarqube-a1c5bea32ce799174f2aa27bab70d7003778dccc.zip
Execute grunt from Maven, without requiring to manually install node/npm
Diffstat (limited to 'sonar-server/pom.xml')
-rw-r--r--sonar-server/pom.xml42
1 files changed, 39 insertions, 3 deletions
diff --git a/sonar-server/pom.xml b/sonar-server/pom.xml
index 58ed486ff6d..e4a27b17fa1 100644
--- a/sonar-server/pom.xml
+++ b/sonar-server/pom.xml
@@ -1,5 +1,6 @@
<?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">
+<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>org.codehaus.sonar</groupId>
@@ -249,7 +250,41 @@
</execution>
</executions>
</plugin>
-
+ <plugin>
+ <groupId>com.github.eirslett</groupId>
+ <artifactId>frontend-maven-plugin</artifactId>
+ <version>0.0.14</version>
+ <executions>
+ <execution>
+ <phase>generate-resources</phase>
+ <id>install node and npm</id>
+ <goals>
+ <goal>install-node-and-npm</goal>
+ </goals>
+ <configuration>
+ <nodeVersion>v0.10.26</nodeVersion>
+ <npmVersion>1.4.3</npmVersion>
+ </configuration>
+ </execution>
+ <execution>
+ <phase>generate-resources</phase>
+ <id>npm install</id>
+ <goals>
+ <goal>npm</goal>
+ </goals>
+ <configuration>
+ <arguments>install</arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <phase>generate-resources</phase>
+ <id>grunt build</id>
+ <goals>
+ <goal>grunt</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId>
@@ -268,7 +303,8 @@
<jsDestinationFolder>${project.build.directory}/${project.build.finalName}/javascripts</jsDestinationFolder>
<contextFolder>${basedir}/src/main/webapp/</contextFolder>
<wroFile>${basedir}/wro.xml</wroFile>
- <wroManagerFactory>ro.isdc.wro.extensions.manager.standalone.GoogleStandaloneManagerFactory</wroManagerFactory>
+ <wroManagerFactory>ro.isdc.wro.extensions.manager.standalone.GoogleStandaloneManagerFactory
+ </wroManagerFactory>
<ignoreMissingResources>false</ignoreMissingResources>
</configuration>
</plugin>