To install the local package to the local warehouse:
MVN install:install-file-dgroupid=com.xxx-dartifactid=mqtt-server-client-dversion=1.0.1-dpackaging=jar-dfile=e : \__vdt\mvvp\mqtt-server-client-1.0.1.jar-dpomfile=e:\__vdt\mvvp\pom.xml
To install a local package to a private warehouse:
MVN deploy:deploy-file-dgroupid=com.xxx-dartifactid=mqtt-server-client-dversion=1.0.1-dpackaging=jar-dfile=e:\_ _vdt\mvvp\mqtt-server-client-1.0.1.jar-durl=http://host:port/content/repositories/xxx-release/-DrepositoryId= Xxx-releases-dpomfile=e:\__vdt\mvvp\pom.xml
If the private warehouse requires authentication, add the service authentication information in the. m2/setting.xml file
<servers><server><id>xxx-release</id><username>develop</username>< Password>123456</password></server></servers>
The specified-dpomfile file can be extracted from the package.
This article is from the "Red Horse Red" blog, please be sure to keep this source http://aiilive.blog.51cto.com/1925756/1916073
Maven components upload local and private warehouses via commands