If you need to upload the artifact while you install to the local repository, follow the below steps.
1. Add the following setting in the setting.xml file which is in the local repository
1. Add the following setting in the setting.xml file which is in the local repository
archiva.internal [UN] [PW]
2. In the POM file add the following settings
archiva.internal Internal Release Repository [URL For the internal repository path]
Note : ID of the both files should be same
3. Run the following goal mv deploy
Please ensure upload rights is given in the relevant repository server
For exmple, if your using Apache Archiva then deployment user needs the Role 'Repository Manager' for each repository that you want to deploy.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.