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