Maven project's Common module Jar is uploaded to the repository and is dependent on other modules

Source: Internet
Author: User

1both the parent Pom and the common Pom need to be added<Distributionmanagement>    <Repository>        <Id>Nexus</Id>        <Name>Nexus ThirdParty repositories</Name>        <Url>http//10.74.11.37:8081/Nexus/Content/Repositories/ThirdParty</wr.>    </Repository></Distributionmanagement>where the ID is to be associated with the MAVEN configuration file settings.xml inside the<Server>    <Id>Nexus-Releases</Id>    <Username>Admin</Username>    <Password>Mtait</Password></Server><Server>    <Id>Nexus-Snapshots</Id>    <Username>Admin</Username>    <Password>Mtait</Password></Server><Server>    <Id>Nexus</Id>    <Username>Admin</Username>    <Password>Mtait</Password></Server><Server>    <Id>Tomcat.server</Id>    <Username>Mtait</Username>    <Password>Mtait</Password></Server></Servers>The ID remains the same;2. Common jar automatically uploads to Maven repository, right-common project, run as--"build...--" goals filled in deploy--"run, will be automatically uploaded to the Maven warehouseHowever, there is a premise in the private library, click Repository, select the path to store the jar--"configuration--" Access settings--"Deployment policy--" select Allow Redeploy3. Parent Pom inside<Dependency>    <GroupId>Com.mintaian.riskcontrol</GroupId>    <Artifactid>Riskcontrol-Common</Artifactid>    <Version>1.0.0</Version></Dependency>Other Modules Pom<Dependency>    <GroupId>Com.mintaian.riskcontrol</GroupId>    <Artifactid>Riskcontrol-Common</Artifactid></Dependency>4Dependencies may not introduce a jar but a local project, the workaround: Right-click the project--"maven--" selects the Enable Workspace Resolution, which is the introduction of the jar

Maven project's Common module Jar is uploaded to the repository and is dependent on other modules

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.