Maven Installation and Private Repository

image_pdfimage_print

Installation :

  1. Download file from :
    • https://maven.apache.org/download.cgi
    • https://dlcdn.apache.org/maven/maven-3/3.8.2/binaries/apache-maven-3.8.2-bin.tar.gz
  2. Extract it
    • First choice developer can change the path
    • Second Choice
      • Linking the bin/mvn to   /bin/mvn
    • Third Choice
      • User can install over linux package management system
        • apt-get install mvn

Private Repository

  • Archiva Installation
    • Developer should download it first :
      • https://archiva.apache.org/download.cgi
      • https://ftp.fau.de/apache/archiva/2.2.5/binaries/apache-archiva-2.2.5-bin.tar.gz
  • On Linux, the bin/archiva script is suitable for linking or copying to /etc/init.d/archiva and running as root, as long as the RUN_AS_USER environment variable is set within the script. This will allow you to start and stop the service with:

 

Maven Command Line Examples  :

 

Ref :

https://wpanas.github.io/tools/2018/01/28/maven-repo.html

  • https://mkyong.com/maven/how-to-add-remote-repository-in-maven-pom-xml/
  • https://stackoverflow.com/questions/20882622/maven-private-remote-repository-setup
  • https://de.sonatype.com/nexus/repository-oss/download
  • https://support.cloudbees.com/hc/en-us/articles/219872588-Configure-the-remote-Maven-repository-in-Jenkins-project-jobs
  • https://ant.apache.org/manual/tutorial-tasks-filesets-properties.html
  • https://stackoverflow.com/questions/15846106/can-i-use-the-same-ant-build-file-for-windows-and-unix
  • https://raw.githubusercontent.com/YOUR_ORGANIZATION/YOUR_ARTIFACT/repository/
  • https://gist.github.com/fernandezpablo85/03cf8b0cd2e7d8527063
  • https://maven.apache.org/guides/introduction/introduction-to-repositories.html
  • https://help.liferay.com/hc/en-us/articles/360018164871-Creating-a-Maven-Repository
  • https://dzone.com/articles/how-to-setup-a-maven-repository-in-minutes
  • https://mymavenrepo.com/
  • https://medium.com/@medyo80/how-to-set-up-a-private-maven-repository-for-free-6d346bdcebea
  • https://dev.to/fk/creating-private-maven-gradle-repository-2np3
  • https://blog.packagecloud.io/eng/2017/03/26/private-maven-repositories-jenkins-gradle/
  • https://thisinterestsme.com/downloading-files-curl-php/
  • https://archiva.apache.org