Skip to content

Commit c3f97e4

Browse files
committed
update
1 parent 9f89672 commit c3f97e4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/register/register.go

+8
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,14 @@ var MavenInstaller = &installer.Installer{
538538
}
539539
return installer.DefaultDecorator(dUrl, ft)
540540
},
541+
EnvGetter: func(appName, version string) []installer.Env {
542+
return []installer.Env{
543+
{
544+
Name: "MAVEN_HOME",
545+
Value: filepath.Join(conf.GetVMVersionsDir(appName), appName),
546+
},
547+
}
548+
},
541549
StoreMultiVersions: true,
542550
HomePage: "https://maven.apache.org/",
543551
}

0 commit comments

Comments
 (0)