[ https://issues.apache.org/jira/browse/MNG-6945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17143226#comment-17143226 ]
Michael Osipov commented on MNG-6945: ------------------------------------- Please provide a debug log file and start with a fresh, empty repo. > Maven can't download the specific version's jar > ----------------------------------------------- > > Key: MNG-6945 > URL: https://issues.apache.org/jira/browse/MNG-6945 > Project: Maven > Issue Type: Bug > Components: Dependencies > Affects Versions: 3.6.3 > Environment: 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" > Reporter: kevin > Priority: Major > Labels: dependency > > Issue: maven could't download the specific version's jar when other version > existed. > My maven version and local environment: > {quote}$ 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" > {quote} > > 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: > {quote}$ 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] > ------------------------------------------------------------------------ > {quote} > 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. > {quote}<dependency> > <groupId>org.apache.poi</groupId> > <artifactId>poi-ooxml-schemas</artifactId> > <version>3.17</version> > </dependency> > > {quote} -- This message was sent by Atlassian Jira (v8.3.4#803005)