IntelliJ IDEA中下載Maven依賴
此方法可以在IDEA中重新下載Maven依賴 1.點擊IDEA界面右側(cè)Maven Projects 2.點擊小M圖標(如下圖) 3.等待加載完成,有點長,需等待 4.最后點擊兩個箭頭的小圓圈刷新Reimport即可…
<?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>org.example</groupId>
<artifactId>maven-frist</artifactId>
<version>1.0-SNAPSHOT</version>
<repositories>
<repository>
<!--阿里云私服-->
<id>aliyunmaven</id>
<name>阿里云公共倉庫</name>
<url>https://maven.aliyun.com/repository/public</url>
</repository>
</repositories>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<dependencies><!--根標簽-->
<!-- 下面就是為依賴 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.47</version>
</dependency>
<!-- 下面就是為依賴 -->
<dependency>
<groupId>com.belerweb</groupId>
<artifactId>pinyin4j</artifactId>
<version>2.5.1</version>
</dependency>
</dependencies>
</project>
idea 中 maven pom不自動更新的5種解決方法_建仔的博客專欄-CSDN博客_idea pom
點擊加號導入pom文件
點擊M安裝依賴
Maven項目
2、Maven項目是以pom文件引入各項jar包的
第三種:在項目右邊找到Maven , 看到刷新圖標 , 點擊刷新文章來源:http://www.zghlxwxcb.cn/news/detail-509154.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-509154.html
到了這里,關(guān)于IntelliJ IDEA中下載Maven依賴、maven導入pom包的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!