diff options
author | md_5 <git@md-5.net> | 2018-10-20 15:37:44 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-10-20 15:37:44 +1100 |
commit | 46b3ba6844f5f86094d42eac455de2c43831a15b (patch) | |
tree | 4b1ef4e892c485c6fe6bd099db811cab33bb754c | |
parent | 566b9209413b072b1636d2bf0acb5c4103236ab6 (diff) | |
download | buildtools-46b3ba6844f5f86094d42eac455de2c43831a15b.tar buildtools-46b3ba6844f5f86094d42eac455de2c43831a15b.tar.gz buildtools-46b3ba6844f5f86094d42eac455de2c43831a15b.tar.lz buildtools-46b3ba6844f5f86094d42eac455de2c43831a15b.tar.xz buildtools-46b3ba6844f5f86094d42eac455de2c43831a15b.zip |
Don't pass in M2_HOME when running maven
-rw-r--r-- | src/main/java/org/spigotmc/builder/Builder.java | 1 |
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" ); |