相关疑难解决方法(0)

缺少javax.transaction.jta工件

我正在收到这个缺失的工件消息

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)

你能告诉我怎么解决这个问题吗?

jta maven

20
推荐指数
1
解决办法
3万
查看次数

eclipse maven错误:项目中所需库的归档无法读取或不是有效的ZIP文件

在使用spring web mvc的eclipse maven项目中,我在Markers选项卡中收到以下错误:

Archive for required library: 'D:/mypath/.m2/repository/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar' in project 'DocumentManager' cannot be read or is not a valid ZIP file
Run Code Online (Sandbox Code Playgroud)

我已经检查过,并且jar文件实际上存在于指示的URL中.我甚至复制了jar的备份来覆盖该位置的jar文件,但这也没有消除错误.我强迫maven更新,但没有解决问题.我也重启了eclipse没效果.

有一次,jta-1.0.1B.jar已经是jta-1.0.1B.jar.LatestUpdate,所以我将名字缩短为jta-1.0.1B.jar

在pom.xml中,错误消息的位置是第2行,其内容如下:

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">  
Run Code Online (Sandbox Code Playgroud)

当我从这个url手动下载jta-1.0.1B.jar时,pom.xml中的错误消失但被.java类文件中的新错误替换,表明Document类的5个方法无效.

我读了这个这个,但是我没有使用struts,我已经包含了3.3.2.ga的hibernate,而且我在pom.xml中没有一个存储库标签(无论如何甚至没有解决问题),所以我不认为这是重复的.

任何人都可以提出解决此问题的方法吗?如果我需要一个存储库标签,我该把它放在哪里?还有什么可以改变以适应它的添加?

对于任何好奇的人,我的pom.xml包含在内,以供参考,如下所示:

<?xml version="1.0" encoding="UTF-8"?><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>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <description></description>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.0.1</version>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.5</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
      <version>${org.springframework.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-jdbc</artifactId>
      <version>${org.springframework.version}</version> …
Run Code Online (Sandbox Code Playgroud)

java eclipse spring hibernate maven

9
推荐指数
1
解决办法
3万
查看次数

maven缺少依赖性jta-1.0.1b

我正在尝试用maven构建我的java hibernate项目.但是当我尝试这样做时,看起来似乎没有可用的依赖?

我现在在我的项目中有这个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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.viralpatel.hibernate</groupId>
  <artifactId>HibernateHelloWorldXML</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>HibernateHelloWorldXML</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>ejb3-persistence</artifactId>
      <version>1.0.1.GA</version>
    </dependency>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-annotations</artifactId>
      <version>3.3.1.GA</version>
    </dependency>
    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <version>5.1.10</version>
    </dependency>
  </dependencies>
</project>
Run Code Online (Sandbox Code Playgroud)

当我尝试使用mvn构建时,我得到此错误:

[WARNING] An error occurred during dependency resolution.
    Failed to retrieve javax.transaction:jta-1.0.1B
Caused by: Failure to find javax.transaction:jta:jar:1.0.1B in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will
 not be reattempted until the update interval of central has elapsed or updates are forced

Try downloading the file …
Run Code Online (Sandbox Code Playgroud)

java eclipse hibernate maven

5
推荐指数
2
解决办法
2万
查看次数

标签 统计

maven ×3

eclipse ×2

hibernate ×2

java ×2

jta ×1

spring ×1