Command line syntax using maven
mvn deploy:deploy-file -DgroupId=<your_group_id> -DartifactId=<your_artifact_id> -Dversion=<your_version> -Dpackaging=jar -Dfile=<your_jar_file> -DgeneratePom=true -DrepositoryId=<remote_repo_id> -Durl=<remote_url> -s <xml_repo_with_login_credential>
Example of login credential inside xml file
<servers>
<server>
<id>remote_repo_id</id>
<username>username</username>
<password>password</password>
</server>
</servers>
0 Comments