maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1470162 - in /maven/shared/trunk/maven-verifier: pom.xml src/main/java/org/apache/maven/it/Verifier.java
Date Sat, 20 Apr 2013 14:10:56 GMT
Author: olamy
Date: Sat Apr 20 14:10:55 2013
New Revision: 1470162

URL: http://svn.apache.org/r1470162
Log:
[MSHARED-284]
Submitted by Mikolaj Izdebski

Modified:
    maven/shared/trunk/maven-verifier/pom.xml
    maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java

Modified: maven/shared/trunk/maven-verifier/pom.xml
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-verifier/pom.xml?rev=1470162&r1=1470161&r2=1470162&view=diff
==============================================================================
--- maven/shared/trunk/maven-verifier/pom.xml (original)
+++ maven/shared/trunk/maven-verifier/pom.xml Sat Apr 20 14:10:55 2013
@@ -47,7 +47,7 @@
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>maven-shared-utils</artifactId>
-      <version>0.2</version>
+      <version>0.3</version>
     </dependency>
 
     <dependency>

Modified: maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java?rev=1470162&r1=1470161&r2=1470162&view=diff
==============================================================================
--- maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java (original)
+++ maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java Sat
Apr 20 14:10:55 2013
@@ -182,15 +182,8 @@ public class Verifier
 
         if ( defaultMavenHome == null )
         {
-            try
-            {
-                Properties envVars = CommandLineUtils.getSystemEnvVars();
-                defaultMavenHome = envVars.getProperty( "M2_HOME" );
-            }
-            catch ( IOException e )
-            {
-                throw new VerificationException( "Cannot read system environment variables.",
e );
-            }
+            Properties envVars = CommandLineUtils.getSystemEnvVars();
+            defaultMavenHome = envVars.getProperty( "M2_HOME" );
         }
 
         if ( defaultMavenHome == null )



Mime
View raw message