/ Published in: Java
Setup artifactory application in a internal network that act as proxy. Then in your $HOME/.m2 directory, add the following file.
For deploying to repos, add this to pom.xml
...
cnx.release.repo
Connextions Repository for Maven2
http://firebird:8081/artifactory/cnx-releases
cnx.snapshots.repo
Connextions Repository for Maven2
http://firebird:8081/artifactory/cnx-snapshots
...
run: maven deploy -DrepositoryId=cnx.snapshots.repo
For deploying to repos, add this to pom.xml
...
cnx.release.repo
Connextions Repository for Maven2
http://firebird:8081/artifactory/cnx-releases
cnx.snapshots.repo
Connextions Repository for Maven2
http://firebird:8081/artifactory/cnx-snapshots
...
run: maven deploy -DrepositoryId=cnx.snapshots.repo