MAVEN configuration Jar (WAR) package auto-pack upload Maven server configuration

Source: Internet
Author: User

MAVEN configuration Jar (WAR) package auto-pack upload Maven server configuration

    1. Create a Jar (war) package project
      1. Create a MAVEN project

      2. To wear a test class in a project

    2. Configure Pom.xml

<distributionmanagement>

<repository>

<ID>Nexus-releases</ID>

<URL>http://127.0.0.1:8081/nexus/content/repositories/releases/</URL>

</repository>

<snapshotrepository>

<ID>Nexus-snapshots</ID>

<URL>http://127.0.0.1:8081/nexus/content/repositories/snapshots/</URL >

</snapshotrepository>

</distributionmanagement>

    1. Configuring the Setting File

    2. Upload
      1. Upload using eclipse

      2. Uploading using commands

    3. See if the upload was successful

    4. Test

      Create a new MAVEN project that introduces the submitted jar package in the project

      Writing test methods

MAVEN configuration Jar (WAR) package auto-pack upload Maven server configuration

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.