Skip to content

Commit

Permalink
fix(maven): DO_NOT_BUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki-working committed Dec 29, 2023
1 parent 1ec4f48 commit 3e9d1c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/maven/mvn_cmd_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ func CheckMvnCommand(ctx context.Context) (info *MvnCommandInfo, err error) {
if env.DisableMvnCommand {
return nil, ErrMvnDisabled.Detailed("environment variable NO_MVN set")
}
if env.DoNotBuild {
return nil, ErrMvnDisabled.Detailed("environment variable DO_NOT_BUILD set")
}
info = &MvnCommandInfo{}
info.Path = env.IdeaMavenHome
if info.Path == "" {
Expand Down

0 comments on commit 3e9d1c6

Please sign in to comment.