IntelliJ idea Configuring the MAVEN remote Repository

Source: Internet
Author: User

Recently in the framework of building springmvc+mybatis, there was a problem when adding jar packs. I used to put the jar package directly inside Lib, but see now with Maven more, go to configure Maven. It was then found that when adding a version of the jar package, it was always a hint that it could not be found. Search the online information, it is estimated that the MAVEN remote warehouse address problem, the following way in the module's pom.xml inside to modify the warehouse address:

<?xml version= "1.0" encoding= "UTF-8"?>
<project xmlns= "http://maven.apache.org/POM/4.0.0"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
<modelVersion>4.0.0</modelVersion>

    <groupid>myssm</groupid>
    <artifactid>myssm</ Artifactid>
    <packaging>pom</packaging>
    <version >1.0-snapshot</version>
    <modules>
         <module>firstssm</module>
    </modules>

    <repositories>
        <repository>
            <id>central</id>
             <name>central Repository</name>
             <url>http://repo.maven.apache.org/maven2< /url>
            <layout>default</layout
            <snapshots>
                 <enabled>false</enabled
            </snapshots>
         </repository>
    </repositories>

</project>

But found no effect, or the hint can not find the road, and then I guess it may be in Project Pom.xml also want to change (before using Gradle time also tried the module jar package with the outer jar package conflict, need to comment off before the line), the results found changed and really good.

IntelliJ idea Configuring the MAVEN remote Repository

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.