micronaut-projects / micronaut-maven-plugin

Maven plugin to execute Micronaut applications
https://micronaut-projects.github.io/micronaut-maven-plugin/latest/
Apache License 2.0
20 stars 18 forks source link

Fix DockerfileNative: to avoid parsing error if space present in home… #1067

Closed houcine7 closed 3 months ago

houcine7 commented 3 months ago

The docker native build fails due to spaces present in the user home folder

` [INFO] Step 11/16 : RUN native-image @/home/app/graalvm-native-image.args -H:Class=${CLASS_NAME} -H:Name=application -cp "/home/app/libs/*:/home/app/classes/" [INFO] [INFO] ---> Running in 3e421fdefdd6

[INFO] Error: Found unrecognized options while parsing argument file '/home/app/graalvm-native-image.args': ADDALI\\.m2\\repository\\io\\netty\\netty-codec-http2\\4.1.108.Final\\netty-codec-http2-4.1.108.Final.jar\\E ^/META-INF/native-image/ ADDALI\\.m2\\repository\\io\\netty\\netty-handler\\4.1.108.Final\\netty-handler-4.1.108.Final.jar\\E ^/META-INF/native-image/ ADDALI\\.m2\\repository\\io\\netty\\netty-common\\4.1.108.Final\\netty-common-4.1.108.Final.jar\\E ^/META-INF/native-image/ ADDALI\\.m2\\repository\\io\\netty\\netty-buffer\\4.1.108.Final\\netty-buffer-4.1.108.Final.jar\\E ^/META-INF/native-image/ ADDALI\\.m2\\repository\\io\\netty\\netty-transport\\4.1.108.Final\\netty-transport-4.1.108.Final.jar\\E ^/META-INF/native-image/ ADDALI\\.m2\\repository\\io\\netty\\netty-codec-http\\4.1.108.Final\\netty-codec-http-4.1.108.Final.jar\\E ^/META-INF/native-image/ `

CLAassistant commented 3 months ago

CLA assistant check
All committers have signed the CLA.