Enter the following command: mvn dependency:copy-dependencies -DoutputDirectory=lib
A simpler mvn dependency:copy-dependencies
will export to target\dependency
mvn clean dependency:copy-dependencies package has not tried
to copy the dependent jar very useful
mvn dependency:copy-dependencies -DoutputDirectory=lib -DincludeScope=compile In
this way, the jar package will be copied to the lib in the project directory.
mvn package
and then find the jar from the packaged file.