maven:cli:mvn:spring-boot:run

mvn spring-boot:run

mvn spring-boot:run -Dspring-boot.run.arguments=--server.port=8081

org.springframework.boot:spring-boot-maven-plugin:3.2.1

  • mvn spring-boot:run -Dspring-boot.run.arguments=“property1 'property2=Hello World'”
    • classesDirectory : (Required) <File> (${project.build.outputDirectory})
    • addResources
    • additionalClasspathElements
    • agents
    • arguments
    • commandlineArguments
    • directories
    • environmentVariables
    • excludeGroupIds
    • excludes
    • includes
    • jvmArguments
    • mainClass
    • noverify
    • optimizedLaunch
    • profiles
    • skip
    • systemPropertyVariables
    • useTestClasspath
    • workingDirectory
<project>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <arguments>
                        <argument>property1</argument>
                        <argument>property2=${my.value}</argument>
                    </arguments>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
  • maven/cli/mvn/spring-boot/run.txt
  • 마지막으로 수정됨: 2025/01/31 06:47
  • 저자 writer