Hibernate Maven Missing artifact javax.transaction:jta:jar:1.0.1B:compile
用maven构建hibernate项目时,提示:Missingartifactjavax.transaction:jta:jar:1.0.1B:compile,这是因为由于sun的许可协议,Mavenrepository中没有包含这个文件,
有两种解决方案,
SolutionA.我们可以手工添加,具体方法是:
1、在https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=7089-jta-1.0.1B-mr-class-oth-JSpec@CDS-CDS_Developer
页面下载jta-1_0_1B-classes.zip;
2、运行mvninstall:install-file-Dfile=./jta-1_0_1B-classes.zip-DgroupId=javax.transaction-DartifactId=jta-Dversion=1.0.1B-Dpackaging=jar
SolutionB
在Pom.xml里面加入
<repositories> <repository> <id>java</id> <name>java official repository</name> <url>http://download.java.net/maven/2/</url> </repository> </repositories>
相关推荐
生产与管理信息化 2019-05-09
boneix 2017-09-15
Gexrior 2014-05-21
zhangyayun0 2018-11-03
cuterabbitbaby 2015-09-24
dbLjy0 2014-05-21
Hashxu 2012-05-18
大伟爱自由 2011-12-01
0xZzzz 2018-11-03
shixiaoguo0 2015-09-02
yzj0 2015-02-28
fightgirl 2014-11-29
GonaShrimp 2014-07-15
YLIMHHMILY 2014-07-05
abguorui0 2014-02-20
choice0 2013-10-16