Maven combat--useful nexus to create a (bottom)

Source: Internet
Author: User
Tags hosting

deploy artifacts to Nexus using Maven
The snapshot version number widget generated by the daily development can be deployed directly to the nexus in the snapshot-policy hosting repository. The construction of the project is officially released in the host warehouse where the policy is release in the Nexus. The configuration of the Pom is as follows:

<project>...<distributionmanagement>        <repository>            <ID>Nexus-releases</ID>            <name>Nexus releases Repository</name>            <URL>http://localhost:8081/nexus/content/repositories/releases/</URL>        </repository>        <snapshotrepository>            <ID>Nexus-snapshots</ID>            <name>Nexus Snapshots Repository</name>            <URL>http://localhost:8081/nexus/content/repositories/snapshots/</URL>        </snapshotrepository>    </distributionmanagement>...</Project>

The Nexus Warehouse is read-only for anonymous users, in order to be able to deploy artifacts. You also need to configure authentication information in Settings.xml. For example, the following:

<settings>...<servers>        <server>            <ID>Nexus-releases</ID>            <username>Admin</username>            <password>*****</password>        <server>        <server>            <ID>Nexus-snapshots</ID>            <username>Admin</username>            <password>*****</password>        <server>    </Servers>...</Settings>

manually deploy third-party artifacts to Nexus
Some Java jar files, such as the JDBC driver for Oracle, are not publicly available in public repositories because of license factors.

There are also a large number of small open source projects. They did not distribute their build to the central repository. Nor do they maintain their own warehouses, and therefore cannot be obtained from public warehouses. At this point, users will need to manually download such components to local, and then through the Nexus interface to upload to the.


To upload a third-party widget, first select a hosting warehouse such as 3rd, then select the Artifact Upload tab below the page to upload the widget. The Nexus requires the user to determine its MAVEN coordinates, assuming that the artifact was built through Maven. Then you can select the from POM in the GAV definition drop-down list, otherwise choose Gav Parameters. The user needs to define a maven coordinate for the widget, for example:

Nexus's Rights Management
The Nexus provides a range of configurable scheduling tasks and facilitates user management of the system.

Users can set how these tasks are performed, such as Daily, weekly, manual, and so on. The dispatch task is then executed in the background in due course.


To set up a dispatch task, scheduled the tasks link to the left navigation bar, and then click AddButton above the interface on the right. For example, as seen in:

Maven combat--useful nexus to create a (bottom)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.