maven manually add dependencies through the command line

    The newly hired company uses the maven management tool in the development project. Some jars cannot find the dependency configuration and need to manually add dependencies. After a search on the Internet, it turned out to be insanely simple. Just execute the following statement:
mvn install:install-file -Dfile=D:\jaxen-1.1-beta-6.jar -DgroupId=org.jaxen -DartifactId=jaxen1.0 -Dversion=1.1-beta-6 - Dpackaging=jar

-Dfile: The location of the jar to be added, that is, the storage location of the downloaded jar package
-DgroupId: The grouping information in maven, generally used is the main package information of the class in the jar package, or you can fill it in casually (not recommended)
- DartifactId: The basic name of the general jar package, that is, the project name, which can be filled in casually (not recommended)
-Dversion: the version information of the jar package

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326991521&siteId=291194637
Recommended