maven 下载指定包到特定路径
mkdir -p /tmp/test
mvn dependency:get -Dartifact=org.apache.spark:spark-connect_2.12:3.5.4 -Dmaven.repo.local=/tmp/test
maven 查看插件有哪些goals
mvn help:describe -DgroupId=org.apache.maven.plugins -DartifactId=maven-dependency-plugin
mvn help:describe -DgroupId=org.springframework.boot -DartifactId=spring-boot-maven-plugin
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- help:3.5.1:describe (default-cli) @ standalone-pom ---
[INFO] org.springframework.boot:spring-boot-maven-plugin:3.5.3
Name: Spring Boot Maven Plugin
Description: (no description available)
Group Id: org.springframework.boot
Artifact Id: spring-boot-maven-plugin
Version: 3.5.3
Goal Prefix: spring-boot
This plugin has 11 goals:
spring-boot:build-image
Description: Package an application into an OCI image using a buildpack,
forking the lifecycle to make sure that {@code package} ran. This goal is
suitable for command-line invocation. If you need to configure a goal
{@code execution} in your build, use {@code build-image-no-fork} instead.
spring-boot:build-image-no-fork
Description: Package an application into an OCI image using a buildpack,
but without forking the lifecycle. This goal should be used when
configuring a goal {@code execution} in your build. To invoke the goal on
the command-line, use {@code build-image} instead.
spring-boot:build-info
Description: Generate a {@code build-info.properties} file based on the
content of the current {@link MavenProject}.
spring-boot:help
Description: Display help information on spring-boot-maven-plugin.
Call mvn spring-boot:help -Ddetail=true -Dgoal=<goal-name> to display
parameter details.
spring-boot:process-aot
Description: Invoke the AOT engine on the application.
spring-boot:process-test-aot
Description: Invoke the AOT engine on tests.
spring-boot:repackage
Description: Repackage existing JAR and WAR archives so that they can be
executed from the command line using {@literal java -jar}. With layout=NONE
can also be used simply to package a JAR with nested dependencies (and no
main class, so not executable).
spring-boot:run
Description: Run an application in place.
spring-boot:start
Description: Start a spring application. Contrary to the {@code run} goal,
this does not block and allows other goals to operate on the application.
This goal is typically used in integration test scenario where the
application is started before a test suite and stopped after.
spring-boot:stop
Description: Stop an application that has been started by the "start" goal.
Typically invoked once a test suite has completed.
spring-boot:test-run
Description: Run an application in place using the test runtime classpath.
The main class that will be used to launch the application is determined as
follows: The configured main class, if any. Then the main class found in
the test classes directory, if any. Then the main class found in the
classes directory, if any.
For more information, run 'mvn help:describe [...] -Ddetail'
mvn help:describe -Dcmd=install