5

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!

4

1 回答 1

8

使用以下命令

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

myfile.jar是你的神器-DgroupId-DartifactId等的含义也很明显。

请参阅此处的文档。

如果您还需要远程存储库,请参阅mvn deploy:deploy-file此处

于 2013-06-05T20:11:57.183 回答