dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #37627
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19213: Added dev maven profile. Invoking the dev profile skips tests and disabled compression of war art...
------------------------------------------------------------
revno: 19213
committer: Halvdan Hoem Grelland <halvdanhg@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2015-05-30 18:42:44 +0200
message:
Added dev maven profile. Invoking the dev profile skips tests and disabled compression of war artifact for speedier dev builds.
modified:
dhis-2/build-nocompr.sh
dhis-2/dhis-web/pom.xml
dhis-2/pom.xml
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/build-nocompr.sh'
--- dhis-2/build-nocompr.sh 2015-01-12 12:52:58 +0000
+++ dhis-2/build-nocompr.sh 2015-05-30 16:42:44 +0000
@@ -1,7 +1,7 @@
#!/bin/sh
# Requires maven to be on the classpath
-# Skips test phase
+# Invokes the dev profile which skips tests and disables compression of war artifacts for a speedy build
-mvn clean install -DskipTests=true -DuseWarCompression=false
-mvn clean install -DskipTests=true -DuseWarCompression=false -f dhis-web/pom.xml
+mvn clean install -Pdev
+mvn clean install -Pdev -f dhis-web/pom.xml
=== modified file 'dhis-2/dhis-web/pom.xml'
--- dhis-2/dhis-web/pom.xml 2015-05-08 20:54:18 +0000
+++ dhis-2/dhis-web/pom.xml 2015-05-30 16:42:44 +0000
@@ -30,6 +30,16 @@
<module>dhis-web-apps</module>
<module>dhis-web-portal</module>
</modules>
+
+ <profiles>
+ <profile>
+ <id>dev</id>
+ <properties>
+ <useWarCompression>false</useWarCompression>
+ </properties>
+ </profile>
+ </profiles>
+
<build>
<plugins>
<plugin>
@@ -43,7 +53,7 @@
<compress>${useWarCompression}</compress>
</archive>
</configuration>
- </plugin>
+ </plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
=== modified file 'dhis-2/pom.xml'
--- dhis-2/pom.xml 2015-05-30 15:34:33 +0000
+++ dhis-2/pom.xml 2015-05-30 16:42:44 +0000
@@ -155,6 +155,22 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>dev</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.16</version>
+ <configuration>
+ <skipTests>true</skipTests>
+ <excludedGroups>org.hisp.dhis.IntegrationTest</excludedGroups>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<build>