incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r548775 - in /incubator/nmaven/trunk/plugins/maven-test-plugin/src/main: java/org/apache/maven/dotnet/plugin/test/TesterMojo.java resources/
Date Tue, 19 Jun 2007 15:55:02 GMT
Author: sisbell
Date: Tue Jun 19 08:55:01 2007
New Revision: 548775

URL: http://svn.apache.org/viewvc?view=rev&rev=548775
Log:
Fixed problem with IDE not resolving assemblies for the test phase. This has to do with the
localRepository value being null when using the MavenEmbedder. Just added a default localRepository
value to fix.

Removed:
    incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/resources/
Modified:
    incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java

Modified: incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java?view=diff&rev=548775&r1=548774&r2=548775
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java
(original)
+++ incubator/nmaven/trunk/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java
Tue Jun 19 08:55:01 2007
@@ -155,6 +155,11 @@
             return;
         }
 
+        if ( localRepository == null )
+        {
+            localRepository = new File( System.getProperty( "user.home" ), ".m2/repository"
).getAbsolutePath();
+        }
+
         ArtifactRepository localArtifactRepository =
             new DefaultArtifactRepository( "local", "file://" + localRepository, new AssemblyRepositoryLayout()
);
         try



Mime
View raw message