简体   繁体   中英

maven deploy into local repository

Can somebody, please, point me to the way of how can I deploy artefacts into the local repository to test deploy scenario? The thing is that we use nexus as remote repository and I wonder if it is possible to deploy my artifacts with custom name and not with names which nexus provide for us.

Thanks in advance!

Use the following command

mvn install:install-file -Dfile=myfile.jar -DgroupId=com.example -DartifactId=myartifact -Dversion=0.1 -Dpackaging=jar

myfile.jar is your artifact and the meaning of -DgroupId , -DartifactId etc. is obvious too.

See documentation here .

In case you needed a remote repository as well, see mvn deploy:deploy-file ( here )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM