Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
3.6.3
-
None
-
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/apache-maven-3.6.3
Java version: 1.8.0_251, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.5", arch: "x86_64", family: "mac"Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /usr/local/apache-maven-3.6.3 Java version: 1.8.0_251, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/jre Default locale: zh_CN, platform encoding: UTF-8 OS name: "mac os x", version: "10.15.5", arch: "x86_64", family: "mac"
Description
Issue: maven could't download the specific version's jar when other version existed.
My maven version and local environment:
$ mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/apache-maven-3.6.3
Java version: 1.8.0_251, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.5", arch: "x86_64", family: "mac"
I use alibaba easyexcel 2.2.3, this dependency will depend on apache poi, it need poi-ooxml 3.17, but in my local repo it only download 4.0.0, so i try to use command mvn dependency:get but it didn't work.
Show my command here:
$ mvn dependency:get -DremoteRepositories=https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -DgroupId=org.apache.poi -DartifactId=poi-ooxml -Dversion=3.17
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< org.apache.maven:standalone-pom >------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] -------------------------------[ pom ]--------------------------------
[INFO]
[INFO] — maven-dependency-plugin:2.8:get (default-cli) @ standalone-pom —
[INFO] Resolving org.apache.poi:poi-ooxml:jar:3.17 with transitive dependencies
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.152 s
[INFO] Finished at: 2020-06-23T20:17:13+08:00
[INFO] ------------------------------------------------------------------------
The target jar couldn't download to my local, even i delete poi-ooxml 4.0.0
Update: i add poi-ooxml 3.17 to my pom.xml and then the jar can be loaded to local repo.
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>3.17</version>
</dependency>