ArtifactTransferException: Failure to transfer javassist:javassist:jar:3.11.0.GA from http://repo.maven.apache.org/maven


在maven配置struts是,由於我之前下載過hibernate的各種jar包,

這里struts和hibernate有一個同名的jar:javassist:jar會沖突

解決方法,只需要把struts自動下載的去掉

<dependency>
  <groupId>org.apache.struts</groupId>
  <artifactId>struts2-core</artifactId>
  <version>2.3.14</version>
  <exclusions>
    <exclusion>
      <groupId>javassist</groupId>
      <artifactId>javassist</artifactId>
    </exclusion>
  </exclusions>
</dependency>

但之后struts是要用到這個jar包的話如果沒有會報錯,我的解決方法是在添加進去

<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.18.1-GA</version>
</dependency>

就沒有問題了,不知道還有沒有別的解決方法


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 maven項目下載報錯:Failure to transfer org.apache.maven:maven-archiver:jar:x.x from https://repo.maven.apache.org/maven... 解決maven項目的:Failure to transfer org.apache.maven:maven-archiver:jar:x.x from https://repo.maven.apache.org/maven Failure to transfer org.apache.maven:maven-archiver:pom:2.5 from http://repo.maven.apache.org/ maven2 was cached in the local repository, resolution will not be reattempted until the update interv spark mllib配置pom.xml錯誤 Multiple markers at this line Could not transfer artifact net.sf.opencsv:opencsv:jar:2.3 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org pom.xml中報錯Failure to transfer com.thoughtworks.xstream:xstream-parent:pom:1.3.1 from https://repo.maven.apache.org/maven2 was cached in the local repository Failure to transfer org.apache.maven:maven-archiver:pom:2.5 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval o Failed to transfer file: http://repo.maven.apache.org/maven2/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.0.1.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempt 解決:Failure to transfer org.apache.maven.plugins:maven-jar-plugin:pom:2.4 from錯誤 解決:Failure to transfer org.apache.maven.plugins:maven-jar-plugin:pom:2.4 from錯誤
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM