maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csta...@apache.org
Subject [5/5] git commit: Made the tests run only when -Ptests is specified. The tests will still compile, but not execute, unless this profile is enabled.
Date Tue, 08 Jul 2014 08:40:26 GMT
Made the tests run only when -Ptests is specified. The tests will still compile, but not execute,
unless this profile is enabled.


Project: http://git-wip-us.apache.org/repos/asf/maven-indexer/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-indexer/commit/a11321c4
Tree: http://git-wip-us.apache.org/repos/asf/maven-indexer/tree/a11321c4
Diff: http://git-wip-us.apache.org/repos/asf/maven-indexer/diff/a11321c4

Branch: refs/heads/master
Commit: a11321c49a911556d481ab249b9bd266872e69f4
Parents: afcd5cc
Author: Martin Todorov <carlspring@gmail.com>
Authored: Tue Jul 1 16:39:10 2014 +0100
Committer: Martin Todorov <carlspring@gmail.com>
Committed: Tue Jul 1 16:39:10 2014 +0100

----------------------------------------------------------------------
 indexer-examples/README.md |  5 +++--
 indexer-examples/pom.xml   | 39 ++++++++++++++++++++++++++++++++++++++-
 2 files changed, 41 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/a11321c4/indexer-examples/README.md
----------------------------------------------------------------------
diff --git a/indexer-examples/README.md b/indexer-examples/README.md
index 4d31151..de4dc7a 100644
--- a/indexer-examples/README.md
+++ b/indexer-examples/README.md
@@ -7,12 +7,13 @@ Try following steps:
 
 ```
 $ cd indexer-examples
-$ mvn clean test
+$ mvn clean test -Ptests
   ... first run will take few minutes to download the index, and then will run showing some
output
-$ mvn test
+$ mvn test -Ptests
   ... (no clean goal!) second run will finish quickly, as target folder will already contain
an up-to-date index
 ```
 
+Please, note that the tests in this module will only compile by default; the will not be
executed, unless you activate the profile (-Ptests).
 
 Have fun,  
 ~t~
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/a11321c4/indexer-examples/pom.xml
----------------------------------------------------------------------
diff --git a/indexer-examples/pom.xml b/indexer-examples/pom.xml
index 5691e95..c401813 100644
--- a/indexer-examples/pom.xml
+++ b/indexer-examples/pom.xml
@@ -33,7 +33,21 @@ under the License.
     This module contains Maven Indexer usage examples.
   </description>
 
-  <!-- IMPORTANT! * WHEN YOU CHANGE DEPS MAKE SURE TO UPDATE SHADE CONFIG! * DON'T FORGET
OTHERWISE YOU ARE RENDERING CLI 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.17</version>
+
+        <configuration>
+          <skipTests>true</skipTests>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <!-- IMPORTANT! * WHEN YOU CHANGE DEPS MAKE SURE TO UPDATE SHADE CONFIG! * DON'T FORGET
OTHERWISE YOU ARE RENDERING CLI
     UNWORKABLE! -->
 
   <dependencies>
@@ -85,4 +99,27 @@ under the License.
       </dependency>
   </dependencies>
 
+  <profiles>
+    <profile>
+      <id>tests</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <version>2.17</version>
+
+            <configuration>
+              <skipTests>false</skipTests>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
 </project>


Mime
View raw message