Open gantoin opened 1 year ago
There seems to be a bug with passing parameters with "-D". As a workaround, create in your project root a file just.properties
with content:
just.run.extra-args=-Dspring-boot.run.jvmArguments="-Dfile.encoding=UTF-8"
Now just run with just run
. Let me know please if it helps!
Thanks for your answer, unfortunately, it doesnβt fix my problem πΏ
@gantoin 3 more questions:
mvn spring-boot:run
or gradle bootRun
?Hi, @maciejwalkowiak π I fixed it by answering your questions :
So, I found a way to fix my problem; force the JVM argument in the spring boot plugin in my pom.xml
:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5198 -Dfile.encoding=UTF-8</jvmArguments>
<wait>500</wait>
<maxAttempts>240</maxAttempts>
</configuration>
</plugin>
Now I can run my app correctly with just run
or ./mvnw spring-boot:run
π
Thanks for your responsiveness, and your work in general on just
tool β€οΈ
Thanks for quick answer! This means that something is off with passing it with just.run.extra-args
. I will investigate!
Hi @maciejwalkowiak, is passing -D arguments for environment variables fixed? Also, how should I send multiple env vars to the run command?
I tried with different syntaxes referring to the docs: https://just.maciejwalkowiak.com/docs/usage/just-run/
I want to run as similar to this Spring Boot config (using Spring 2.7.5):
Still have an error on boot:
If someone knows how to run it with just, I'm listening π»