summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/spigotmc/builder/Builder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java
index d864956..a6bb146 100644
--- a/src/main/java/org/spigotmc/builder/Builder.java
+++ b/src/main/java/org/spigotmc/builder/Builder.java
@@ -634,6 +634,7 @@ public class Builder
ProcessBuilder pb = new ProcessBuilder( command );
pb.directory( workDir );
pb.environment().put( "JAVA_HOME", System.getProperty( "java.home" ) );
+ pb.environment().remove( "M2_HOME" ); // Just let maven figure this out from where it is invoked
if ( !pb.environment().containsKey( "MAVEN_OPTS" ) )
{
pb.environment().put( "MAVEN_OPTS", "-Xmx1024M" );