This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new b30641dcd fix(build): use maven context arguments
b30641dcd is described below

commit b30641dcd91cae60f9ab8516ed5af1979e6169c8
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Mon Nov 6 11:56:28 2023 +0100

    fix(build): use maven context arguments
    
    Closes #4892
---
 pkg/builder/runtime_support.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pkg/builder/runtime_support.go b/pkg/builder/runtime_support.go
index f9da1ca00..a230c8882 100644
--- a/pkg/builder/runtime_support.go
+++ b/pkg/builder/runtime_support.go
@@ -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 -- .

Reply via email to