nexus builds maven private server

  • Download the windows version to start the construction of nexus

    

  1. Enter the "NEXUX_HOME\nexus\nexus-3.10.0-04\bin" directory.
  2. Hold down the Shift key, right-click, and select "Open Command Window Here".
  3. Enter nexus,exe /run, press Enter to run

Successfully started as shown in the figure

nexus default username and password

  1. login admin
  2. Login password admin123 

At this point, we can see that the first of the following components is the central warehouse.

  • nexus component settings and other configurations

We can see that there is a type attribute on each component:

  1. Proxy proxy warehouses are generally private server addresses provided by large companies.
  2. host local components are generally provided by their own company for internal use within the company
  3. group can add components of proxy and host to a group to provide external

The central warehouse address of proxy type is as follows

  1. https://repo1.maven.org/maven2/
  2. http://mvnrepository.com/ (recommended)
  3. http://repo1.maven.org/maven2
  4. http://maven.aliyun.com/nexus/content/groups/public/ Alibaba Cloud (strongly recommended)
  5. http://repo2.maven.org/maven2/ private server nexus tool usage
  6. http://uk.maven.org/maven2/
  7. http://repository.jboss.org/nexus/content/groups/public
  8. http://maven.oschina.net/content/groups/public/oschina
  9. http://mirrors.ibiblio.org/maven2/
  10. http://maven.antelink.com/content/repositories/central/
  11. http://nexus.openkoala.org/nexus/content/groups/Koala-release/
  12. http://maven.tmatesoft.com/content/groups/public/
  • group component configuration

When maven accesses the group component of nexus, it downloads the jar package according to the order, so when we configure it, we generally put the order of the central warehouse to the last one.

  • Configure settings.xml under maven conf

http://localhost:8081/repository/maven-public/

The nexus is built here, let's start writing the maven project.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324397343&siteId=291194637