我正在收到这个缺失的工件消息
javax.transaction:jta:jar:1.0.1B
as403 Forbidden
Multiple annotations found at this line:
- Missing artifact javax.transaction:jta:jar:1.0.1B
- ArtifactTransferException: Failure to transfer javax.transaction:jta:jar:1.0.1B from http://
repository.jboss.com/maven2 was cached in the local repository, resolution will not be reattempted until
the update interval of jboss has elapsed or updates are forced. Original error: Could not transfer artifact
javax.transaction:jta:jar:1.0.1B from/to jboss (http://repository.jboss.com/maven2): Access denied to
http://repository.jboss.com/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar. Error code 403, Forbidden
Run Code Online (Sandbox Code Playgroud)
我pom.xml有:
<repositories>
<repository>
<id>jboss</id>
<url>http://repository.jboss.com/maven2</url>
</repository>
</repositories>
Run Code Online (Sandbox Code Playgroud)
你能告诉我怎么解决这个问题吗?
我正在尝试使用此处的示例来学习Hibernate-Spring-Struts .
但在创建pom.xml获取此错误后:
Missing artifact javax.transaction:jta:jar:1.0.1B
Run Code Online (Sandbox Code Playgroud)
我仅在创建pom.xml文件方面取得了进展,并进行了更改以包含最新的库.这是我的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>S3HMaven</groupId>
<artifactId>S3HMaven</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>S3HMaven</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
<version>1.0.1B</version>
</dependency>
<!-- Struts 2 -->
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.1.8</version>
</dependency>
<!-- Struts 2 + Spring plugins -->
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-spring-plugin</artifactId>
<version>2.3.15.2</version>
</dependency>
<!-- MySQL database driver -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.26</version>
</dependency>
<!-- Spring framework -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId> …Run Code Online (Sandbox Code Playgroud) 在Eclipse(STS 3.4)中导入由Spring Initializr生成的 Spring Starter 压缩项目时,我收到了错误
为所需的库键入Archive:项目'starter'中的'C:/Users/user/.m2/repository/org/springframework/spring-core/4.0.1.RELEASE/spring-core-4.0.1.RELEASE.jar'无法读取或不是有效的ZIP文件
是Eclipse问题还是有什么特别之处spring-core-4.0.1.RELEASE.jar?它的大小是979016B.
更新:尝试回答/sf/answers/1406547341/以消除maven错误:无法读取项目中所需库的存档或者不是有效的ZIP文件
跑步时 mvn package -U
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project demo: Compilation failure: Compilation failure:
[ERROR] ??C:\Users\weibl\.m2\repository\org\springframework\spring-context\4.0.1.RELEASE\spring-context-4.0.1.RELEASE.jar???; invalid LOC header (bad signature)
[ERROR] ??C:\Users\weibl\.m2\repository\org\springframework\spring-aop\4.0.1.RELEASE\spring-aop-4.0.1.RELEASE.jar???; invalid LOC header (bad signature)
[ERROR] ??C:\Users\weibl\.m2\repository\org\springframework\spring-beans\4.0.1.RELEASE\spring-beans-4.0.1.RELEASE.jar???; invalid CEN header (bad signature)
[ERROR] ??C:\Users\weibl\.m2\repository\org\springframework\spring-expression\4.0.1.RELEASE\spring-expression-4.0.1.RELEASE.jar???; invalid LOC header (bad signature)
[ERROR] ??C:\Users\weibl\.m2\repository\ch\qos\logback\logback-core\1.1.0\logback-core-1.1.0.jar???; invalid CEN header (bad signature)
[ERROR] ??C:\Users\weibl\.m2\repository\org\springframework\spring-context\4.0.1.RELEASE\spring-context-4.0.1.RELEASE.jar???; cannot read zip file entry
[ERROR] ??C:\Users\weibl\.m2\repository\org\springframework\spring-aop\4.0.1.RELEASE\spring-aop-4.0.1.RELEASE.jar???; cannot read …Run Code Online (Sandbox Code Playgroud)