NEXUS use of experience points

NEXUS used that two things:
1) Why maven download has auth / AuthFaliure.class, this class can not be found directly on the PW?
2) 3.x version is not saved proxy package Eng work it, 2.x versions. So you need to download proxy package, you need to download the 2.x version.

1) Answer:
There are a host hosted repository, as the repository host name already exists the same version of the jar package, so download priority host warehouse jar package. And the host warehouse jar package is a custom, adding the auth package, while the agency warehouse is original is not.

Preconditions:
1. Set the idaeal maven maven installation directory address system
2. Set the address of the local repository for maven D: \ eclipse_other
3. Set PW, PW addresses within the network address

Phenomenon:
the local PW download shiro-web-1.4.0.jar have auth folder
Here Insert Picture Descriptiondownloaded from the PW address directly down a jar directory does not exist this
Here Insert Picture DescriptionHere Insert Picture Descriptionquestion: Why have downloaded maven auth / AuthFaliure.class, directly on PW on can not find this class?
Reply: In other hosted inside the warehouse to find, finally found in the host warehouse.
Here Insert Picture Description

PS:
Repository与Mirror

definition

In fact, mirror represents the relationship between the two Repository, the maven configuration file (setting.xml) is well equipped ... that defines the relationship between the two mirror Repository.

purpose

Configuring mirroring relationship between the two Repository, typically for access speed and download speed consideration.

For example, there is a project that requires both coding and shelter in the company, and configure the project pom.xml A Maven repository. In the company, the telecommunications network, access A library quickly, so management maven dependencies and plugins are downloaded from A library; at home, Netcom network, access A library is very slow, but quickly access the B library. In this case, setting.xml residence, as long as configure the look ... and let B be the mirror A database library, you can not change the project in pom.xml configuration for A library.

If the mirror repository requires authentication, setting.xml in to configure.

note

It should be noted that, due to completely shield the warehouse mirror mirrored warehouse, the warehouse when the image is unstable or stop services, Maven will still be unable to access the image repository, and therefore will not be able to download components.

Here Insert Picture Descriptionproxy: that is, you can set up a proxy, then set up a proxy address can not be found in your nexus will depend on the configuration of the agent to find in that is now a local warehouse (hosted) inside to find, if no longer from the warehouse agent find inside.

hosted: You can upload your own project to there

group: it may comprise two in front, is a polymer. Generally used to give customers access to a unified address the nexus.

Above it is theoretical. After field testing found that to get the package on a different computer, the phenomenon may appear in a different order to get in. The same project, under the same PW environment, such as in computer A, will start to take PW hosted service, and in the computer B is likely to get the jar package to start the project has been configured inside the warehouse.

So for us to use, the best configuration is a unique project inside the warehouse address PW address, PW go in a management agent and local services.

According to experience it, maven order to get the package 1. The development environment local repository -2 project in the specified mirror or warehouse, according to the configuration sequence to obtain a search order 3. PW configured in the warehouse.

Guess you like

Origin blog.csdn.net/weixin_40821669/article/details/88415100