Skip to content

Commit

Permalink
fix(build): use maven context arguments
Browse files Browse the repository at this point in the history
Closes #4892
  • Loading branch information
squakez committed Nov 6, 2023
1 parent 0ca2717 commit b30641d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/builder/runtime_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ type NativeAdapter struct {

// BuildCommands -- .
func (n *NativeAdapter) BuildCommands() string {
return "cd " + n.Directory() + " && ./mvnw package -Dquarkus.package.type=native --global-settings settings.xml"
// We must override the local repo as it's not shared from the builder container
return "cd " + n.Directory() + " && ./mvnw $(cat MAVEN_CONTEXT) package -Dquarkus.package.type=native -Dmaven.repo.local=./repo"
}

// Directory -- .
Expand Down

0 comments on commit b30641d

Please sign in to comment.