c*******e 发帖数: 290 | 1 在 Eclipse 中建了一个简单的 Maven Web application, 但是在 pom.xml 中,对
objectDB 的 dependency 总是报错,说 artifact missing. 它的 repository 在这里
:http://m2.objectdb.com/com/objectdb/objectdb/。 pom.xml 总是有个 redflag, missing: com.objectdb.objectdb.jar:2.4.0
这可能什么原因?还不太熟悉 maven.
objectdb
ObjectDB Repository
http://m2.objectdb.com
com.objectdb
objectdb
2.4.0
|
w**z 发帖数: 8232 | 2 is the repository setting correct?
【在 c*******e 的大作中提到】 : 在 Eclipse 中建了一个简单的 Maven Web application, 但是在 pom.xml 中,对 : objectDB 的 dependency 总是报错,说 artifact missing. 它的 repository 在这里 : :http://m2.objectdb.com/com/objectdb/objectdb/。 pom.xml 总是有个 redflag, missing: com.objectdb.objectdb.jar:2.4.0 : 这可能什么原因?还不太熟悉 maven. : : : objectdb : ObjectDB Repository : http://m2.objectdb.com :
|
x****d 发帖数: 1766 | 3 try this... or change version to 2.2.5
objectdb
ObjectDB Repository
http://m2.objectdb.com
com.objectdb
objectdb
2.2.5
|
c*******e 发帖数: 290 | 4 Right, exactly followed the instruction.
http://m2.objectdb.com/com/objectdb/objectdb/
【在 w**z 的大作中提到】 : is the repository setting correct?
|
c*******e 发帖数: 290 | 5 你试过没有? 还是不 work. 我检查了 my local .m2 repository 目录,发现
objectdb/ 里面只有
objectdb-2.5.3.jar.lastUpdated
objectdb-2.5.3.pom.lastUpdated
这是最新版本。但正常情况下它应该是 "xxx.jar" and "xxx.pom", with another
file named "_maven.repositories", which is missing.
好像是更新过程没有完全完成。试了它的不同 version,好像都不行。可能需要干掉我
的 eclipse,包括 workspace, .m2 directory,然后一切重新开始? 弄出原因最好。
【在 x****d 的大作中提到】 : try this... or change version to 2.2.5 : : : objectdb : ObjectDB Repository : http://m2.objectdb.com : : : :
|
c*******e 发帖数: 290 | 6 可能是要把那个 package 拷贝到公司自己的 maven repository 里面?因为是走的自
己的 tunnel. |
x****d 发帖数: 1766 | 7 I would do a new hello world project with maven without eclipse before doing
what you mentioned in previous posts. should be 3 minutes. better than
playing with eclipse m2 repo. |
w**z 发帖数: 8232 | 8 try command line mvn clean compile -U
any error? is the repository accessible?
【在 c*******e 的大作中提到】 : 可能是要把那个 package 拷贝到公司自己的 maven repository 里面?因为是走的自 : 己的 tunnel.
|