The Maven project does not show Maven Dependencies

Copy the.classpath file from the project with the correct directory structure, overriding the.classpath file in the project directory that does not show Maven Dependencies

When dynamic Web Module is unchecked, the following structure appears each time the Maven project is updated

Solution: Select “Javaee Integration” under “Maven” and “Javaee Integration” under “Maven”. Select “Project Facets” under “maven” for “javascript Resources” under “Properties”. Remove javascript from Maven project structure directory that contains Project Facets of Web App 2.3 Properties select Only Java to remove dynamic Web Module

Fixed a red ‘x’ error in maven project name

The Java version number of Project Facets in the properties is not selected properly

Directory to create a common folder

Properties javabuILD Path Resource -> Excluded **

Pom file war error

1. Add the Web.xml file in webApp. 2

Project startup error

D:\java-tools\apache-maven-3.2.3\repo\org\apache\tomcat\servlet-api\6.0.28\servlet-api-6.0.28.jar

The XSD file could not be found

An error message is displayed telling you to import the JAR package. Either add XSD files manually or specify them manually (see www.ibm.com/developerwo…)

Multiple Problems have occurred in POM files

A) 1) switch to maven’s local repository b) 2) open CMD in the current directory c) 3) Run the following command: For /r % I in (*.lastupdated) do del % I

How to avoid project errors due to incomplete JAR downloads

Using relatively stable private servers to download address: open source China (maven.oschina.net/help.html) in maven point setting. Changes in the XML file server URL configuration.

Introduce external JAR dependencies and use the idea package plugin to jar – package

Packaging – > the JAR

External dependent position

Pom reference dependencies

< <groupId>Ice</groupId> <artifactId>Ice</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${basedir}/src/lib/wlfullclient.jar</systemPath> </dependency>Copy the code

New poM plug-in

<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> < version > 1.5.2. RELEASE < / version > < configuration > < includeSystemScope > true < / includeSystemScope > < / configuration > </plugin>Copy the code

Linux centos Install Maven

[root@linuxprobe ~]# sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
[root@linuxprobe ~]# yum install apache-maven -y
Copy the code

Modifying a Configuration File

[root@linuxprobe ~]# cd /usr/share/apache-maven/conf
Copy the code
The < Settings XMLNS = "http://maven.apache.org/SETTINGS/1.0.0" XMLNS: xsi = "http://www.w3.org/2001/XMLSchema-instance" Xsi: schemaLocation = "http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" > <localRepository>/usr/share/apache-maven/repository</localRepository> <mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror> </mirrors> </settings>Copy the code

The project specifies the Java compiler version

Java Complier versions always change, causing the project to fail to compile properly.

Solution: Specify the Java compiler version in the parent project’s POM file

<properties>
  <java.version>8</java.version>
</properties>
Copy the code