diff --git a/Formula/maven.rb b/Formula/maven.rb index 1010925615..d41fd5aaaf 100644 --- a/Formula/maven.rb +++ b/Formula/maven.rb @@ -24,8 +24,10 @@ class Maven < Formula # file will be found relative to it Pathname.glob("#{libexec}/bin/*") do |file| next if file.directory? + basename = file.basename next if basename.to_s == "m2.conf" + (bin/basename).write_env_script file, Language::Java.overridable_java_home_env end end