av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

您的位置:首頁技術文章
文章詳情頁

java - intellij idea maven打包總是去下載包,但是我本地已經有了啊?

瀏覽:71日期:2023-10-17 13:37:43

問題描述

通過命令打包 :

mvn package

pom.xml

<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>com.kc.mqtt</groupId> <artifactId>MqttServer</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <properties><java.version>1.8</java.version> </properties> <!-- stand-alone, production-grade Spring based Applications --> <parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>1.3.5.RELEASE</version> </parent> <dependencies><!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-websocket --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> <version>1.5.4.RELEASE</version></dependency><!-- https://mvnrepository.com/artifact/org.apache.poi/poi --><dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.14</version></dependency><!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml --><dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.14</version></dependency><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional></dependency><!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 --><dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.6</version></dependency><!--paho client --><dependency> <groupId>org.eclipse.paho</groupId> <artifactId>org.eclipse.paho.client.mqttv3</artifactId> <version>1.1.0</version></dependency><!-- protobuf --><dependency> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java</artifactId> <version>2.6.1</version></dependency><!-- 極光推送 --><dependency> <groupId>cn.jpush.api</groupId> <artifactId>jpush-client</artifactId> <version>3.2.9</version></dependency><!-- https://mvnrepository.com/artifact/gov.nist.math/jama --><dependency> <groupId>gov.nist.math</groupId> <artifactId>jama</artifactId> <version>1.0.3</version></dependency><!-- spring boot starter --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId></dependency><dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-core</artifactId> <version>4.3.0.RELEASE</version></dependency><!-- https://mvnrepository.com/artifact/org.springframework.integration/spring-integration-mqtt --><dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-mqtt</artifactId> <version>4.3.0.RELEASE</version></dependency><!-- https://mvnrepository.com/artifact/org.springframework.integration/spring-integration-jmx --><dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-jmx</artifactId> <version>4.3.0.RELEASE</version></dependency><!-- spring web --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency><!-- spring security --><!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> --><!-- restful json --><dependency> <groupId>com.jayway.jsonpath</groupId> <artifactId>json-path</artifactId> <scope>test</scope></dependency><!-- spring boot logback ,如果配置了 spring-boot-starter-web,則不需要配置 spring-boot-starter-logging --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId></dependency> <!-- spring unit test --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId></dependency><dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope></dependency><!--<dependency>--> <!--<groupId>org.assertj</groupId>--> <!--<artifactId>assertj-core</artifactId>--> <!--<version>${assertj.version}</version>--><!--</dependency>--><!--<dependency>--> <!--<groupId>org.mockito</groupId>--> <!--<artifactId>mockito-all</artifactId>--> <!--<version>${mockito.version}</version>--><!--</dependency>--><!-- <dependency> <groupId>com.jayway.restassured</groupId> <artifactId>rest-assured</artifactId> <version>${rest-assured.version}</version> </dependency> --> <!-- httpclient --><dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.3.5</version> <scope>provided</scope></dependency><dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-test</artifactId> <!-- <version>4.2.0.RELEASE</version> --> <version>4.3.0.RELEASE</version> <scope>test</scope></dependency><!-- DataSource (HikariCP) --><dependency> <groupId>com.zaxxer</groupId> <artifactId>HikariCP</artifactId></dependency><!-- JPA Provider (Hibernate) --><!-- <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> </dependency> --><!-- Spring Data JPA --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId></dependency><!-- Database (H2) --><dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <!-- <version>1.4.192</version> --></dependency><!-- mysql driver --><dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId></dependency><!-- spring health --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId></dependency><!-- https://mvnrepository.com/artifact/io.netty/netty-all --><dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> <version>4.1.6.Final</version></dependency><!-- lombok --><dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.8</version> <scope>provided</scope></dependency><!-- 添加redis支持--><dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis</artifactId> <version>1.7.5.RELEASE</version></dependency><dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version></dependency><!--APNS --><dependency> <groupId>com.notnoop.apns</groupId> <artifactId>apns</artifactId> <version>1.0.0.Beta6</version></dependency><!-- https://mvnrepository.com/artifact/com.github.fernandospr/javapns-jdk16 --><dependency> <groupId>com.github.fernandospr</groupId> <artifactId>javapns-jdk16</artifactId> <version>2.2.1</version></dependency><!--APNS Pushy FRAMEWORK--><dependency> <groupId>com.relayrides</groupId> <artifactId>pushy</artifactId> <version>0.9.2</version></dependency><dependency> <groupId>io.netty</groupId> <artifactId>netty-tcnative-boringssl-static</artifactId> <version>1.1.33.Fork24</version></dependency> </dependencies> <build><plugins> <plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId> </plugin></plugins> </build></project>

除了引用的包之外.我只設置了:

<build><plugins> <plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId> </plugin></plugins> </build>這是必須的.應該不影響

和 jdk版本配置

為什么每次都要去下載呢 ?

問題解答

回答1:

mvn clean install test

回答2:

可能兩次依賴包的版本不一致,你可以去本地倉庫看一下是否一個包下有多個版本。

回答3:

首先要先確認idea里的maven和外部的maven用的是不是一個settings.xml

標簽: java
主站蜘蛛池模板: 免费观看日韩精品 | 亚州精品成人 | 在线天堂免费中文字幕视频 | 欧美日韩久久精品 | 国产精品久久久久久久久久 | 午夜天堂精品久久久久 | 成年人免费网站 | 狠狠干美女 | 视频一区二区在线 | 国产日韩精品视频 | 成人h动漫精品一区二区器材 | 黄免费在线 | 在线视频成人 | 福利视频网 | 欧美国产日韩在线观看成人 | 黄色一级毛片 | 国产精品99久久久精品免费观看 | 久久艹免费视频 | 亚洲在线一区 | 亚洲a在线观看 | 欧美aⅴ | 97久久精品午夜一区二区 | 成人精品一区二区户外勾搭野战 | 国产精品高清在线 | 久久99视频这里只有精品 | 911网站大全在线观看 | 国产精品69毛片高清亚洲 | 免费精品视频 | 中文字幕在线观看视频网站 | 国产精品福利网站 | 国产精品高潮呻吟久久av野狼 | 天天干狠狠操 | 91在线视频免费观看 | 不卡视频一区二区三区 | 综合久久综合久久 | 国产高清美女一级a毛片久久w | 日韩精品一区二区三区中文在线 | 国产一区二区精品自拍 | 91亚洲国产成人久久精品网站 | av一二三区 | 在线国产精品一区 |