久久福利_99r_国产日韩在线视频_直接看av的网站_中文欧美日韩_久久一

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

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

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

問(wèn)題描述

通過(guò)命令打包 :

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>

除了引用的包之外.我只設(shè)置了:

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

和 jdk版本配置

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

問(wèn)題解答

回答1:

mvn clean install test

回答2:

可能兩次依賴(lài)包的版本不一致,你可以去本地倉(cāng)庫(kù)看一下是否一個(gè)包下有多個(gè)版本。

回答3:

首先要先確認(rèn)idea里的maven和外部的maven用的是不是一個(gè)settings.xml

標(biāo)簽: java
主站蜘蛛池模板: 亚洲欧洲免费视频 | 欧美一级二级视频 | 亚洲激情在线播放 | 国产精品夜夜春夜夜爽久久电影 | 日韩一二三区 | 激情小网站 | 亚洲777| 91久久夜色精品国产九色 | 大陆毛片 | 三级黄色在线视频 | 91视在线国内在线播放酒店 | 国产成人黄色 | 中文字幕亚洲区 | 91亚洲国产精品 | 午夜午夜精品一区二区三区文 | 不卡一区| 国产精品国产精品国产专区不片 | 日韩成人精品在线 | 精品国产乱码久久久久久闺蜜 | 成人1区2区 | 欧洲一区在线 | 二区在线视频 | 成人欧美一区二区三区在线播放 | 99久久99久久久精品色圆 | 中文字幕一区在线观看视频 | 九色91视频 | 精品视频在线观看 | 国产乱码精品一区二区三区中文 | 精品在线一区二区 | 欧美一级三级 | 香蕉av777xxx色综合一区 | 欧美精品一区二区三区蜜桃视频 | 日韩精品日韩激情日韩综合 | 另类一区 | 毛片一级| 四虎永久免费影院 | 久草天堂 | 精品99久久久久久 | 亚洲成人av在线 | 国产中文字幕在线 | 国产精品日产欧美久久久久 |