Missing javax.transaction.jta artifact

简介:

原文:http://stackoverflow.com/questions/9003298/missing-javax-transaction-jta-artifact


jta下载不了,提示如下:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.687s
[INFO] Finished at: Mon Nov 12 12:48:16 MMT 2012
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project SpringExample: Could not resolve dependencies for project com.mkyong.common:SpringExample:jar:1.0-SNAPSHOT: Failure to find javax.transaction:jta:jar:1.0.1B in http://repo1.maven.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 -> [Help 1]


解决办法:在pom文件中添加以下源。

<repository>
    <id>java.net</id>
    <url>http://download.java.net/maven/2/</url>
</repository>


相关文章
|
Dubbo 应用服务中间件
Injection of @DubboReference dependencies is failed;
Injection of @DubboReference dependencies is failed;
296 0
IDEA添加Swagger2:Parameter 0 of method linkDiscoverers in org. springframework hateoas.config.Hateoasconfiguration required a single bean, but 15 were found:
IDEA添加Swagger2:Parameter 0 of method linkDiscoverers in org. springframework hateoas.config.Hateoasconfiguration required a single bean, but 15 were found
|
Java Maven Spring
【BUG】Failed_to_execute_goal_org.springframework
【BUG】Failed_to_execute_goal_org.springframework
|
NoSQL Java Redis
Unsatisfied dependency expressed through field /Injection of autowired dependencies failed 解决方法
根据报错的关键字,大底的意思就是依赖方面的问题。
342 0
Error creating bean with name ‘userServiceImpl‘: Unsatisfied dependency expressed through field ‘bas
Error creating bean with name ‘userServiceImpl‘: Unsatisfied dependency expressed through field ‘bas
428 0
|
关系型数据库 MySQL 数据库
Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
460 0
|
SQL 关系型数据库 MySQL
org.springframework.jdbc.BadSqlGrammarException: Error updating database
org.springframework.jdbc.BadSqlGrammarException: Error updating database
260 0
|
Web App开发 Java 数据库连接
javax.validation.ValidationException: Unable to create a Configuration
错误信息: [org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean]-Failed to set up a Bean Validation provider javax.
3677 0
|
SQL Java Spring
Spring Data之@Query中的org.hibernate.hql.internal.QueryExecutionRequestException: Not supported for DML
Spring Data之@Query中的org.hibernate.hql.internal.QueryExecutionRequestException: Not supported for DML 1.
1707 0