“分布式缓存索引是什么” 是什么概念,怎么理解

18:30 提问
创建Maven项目
pom.xml文件报错
创建maven项目 pom.xml文件提示错误:
Failure to transfer org.apache.maven.surefire:surefire:pom:2.10 from
was cached in the local repository,
resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer
artifact org.apache.maven.surefire:surefire:pom:2.10 from/to central ( java.net.ConnectException:
connection timed out to
在网上搜索后给出的解决方法是
打开maven的本地库...\repository\org\apache\maven\plugins\maven-surefire-plugin\2.10会发现:里面少只有一个maven-surefire-plugin-2.10.pom.lastUpdated,而没有maven-surefire-plugin-2.10.jar
解决方法:
1.删除maven-surefire-plugin-2.7.1.pom.lastUpdated文件
2.右键点击project -& Maven - Update Dependencies
但我的本地库有aven-surefire-plugin-2.10.jar以及相关文件 没有maven-surefire-plugin-2.10.pom.lastUpdated文件 怎么还报这样的错误 在网上搜索好长时间 一直没有解决
求大神指点!!
按赞数排序
估计是包的问题,要不删了自己的包从maven下一个最新的?
对于Windows操作系统,执行
cd %userprofile%.m2\repository
for /r %i in
(*.lastUpdated)
然后在项目名右击,选择maven-&update project,即可。
我去 没看见是2014年的 不过有这么高的访问量 应该能有很多人看见这个回答解决问题。对于原理我也不清楚为什么希望理解的大神帮我解释一下。maven项目开发eclipse遇到的问题
maven项目开发eclipse遇到的问题:1、新建maven项目时,项目结构不对。只有两个文件夹,右击项目,properties,Maven,project Facets,有个;链接convert点击。
2.pox.xml文件报错的问题,找不到依赖或则提示标签错了。
eclipse的maven插件不行的话,就会很惨。不知道哪里出问题。
其实多数是缺包,但是eclipse就是下载不了。所以这时候我手动cd到项目根目录(pox.xml所在路径),直接mvn compile。
如果多个项目依赖的话,没有依赖的项目先mvn compie一下,把所有依赖的都手动下载一遍。
3.自己的maven项目要作为依赖,这就要手动install一下自己的项目。
4.启动maven web项目的时候,发现在依赖的另一个项目的controller访问不了,报404,调了很久,先把自己这个被依赖的项目install到仓库。但是还可能遇到问题,就是eclipse没能把它作为jar包发布到项目的lib文件夹(可以调试)。这时候可以右键项目,选择properties,然后选择deployment assembly&&add&& Build Path Entries。把自己自己被依赖的项目jar包到进去。
图片右边有个add ,add后选这个Java Build Path Entries(有问题)Eclipse安装Maven插件后,新建Maven项目报错pom.xml文件总是报错。各位大虾麻烦帮我看一下,网上也很少看到有遇到这个问题。 - ITeye问答
报错提示:
Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:testResources failed: A required class was missing while executing org.apache.maven.plugins:maven-resources-plugin:2.5:testResources: org/codehaus/plexus/util/StringUtils
你是否能ping通网络上的资源库。repo1.maven.org& 相应的插件没有下载到本地。
建议还是使用命令吧。。。
maven2打包前会运行junit,但是,有时我们希望即使出现了错误,也要打包。maven2的设计者已经考虑到这种情况了。pom.xml文件配置内容如下:
&project&
&build&
&&& &plugins&
&&&&& &plugin&
&&&&&&& &groupId&org.apache.maven.plugins&/groupId&
&&&&&&& &artifactId&maven-surefire-plugin&/artifactId&
&&&&&&& &configuration&
&&&&&&&&& &testFailureIgnore&true&/testFailureIgnore&
&&&&&&& &/configuration&
&&&&& &/plugin&
&&& &/plugins&
[...]
&/project&
对于你的问题:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: 2.3 . 2 :compile ( default -compile) on project oecp: Compilation failure&
解决方法:
建议使用
1.使用myeclipse 6.5 及以上版本 自带maven2
2.手动创建 pom.xml 命令在doc里面敲
已解决问题
未解决问题}

我要回帖

更多关于 分布式缓存索引是什么 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信