问题描述
我在Eclipse中建立了一个新的Java开发工作站。在我以前的机器上,我不记得要在 New>下看到标准的原型集合。其他> Maven项目>选择Nexus Indexer选择原型
。在这台机器上,原型列表是空的。我可以从命令行创建基于原型的项目,所以它不是一个显示屏,但我不明白为什么原型丢失(这让我想知道还没有注意到还有什么坏处) 。 Eclipse 3.5.1,Sun JDK 1.6.0_17,m2Eclipse 0.9.8.200905041414
通过以下配置,可以正常工作:Eclipse 3.5.1 20090920-1017,Sun JDK 6u16,m2eclipse 0.9.8.200905041414。
您确定m2eclipse已经从maven中央存储库中下载 nexus-maven-repository-index.gz
这个文件看起来是好吗?
BTW,索引存储在插件的元数据位置,这是< workspace root> /。 /.plugins/org.maven.ide.eclipse/nexus
。作为解决方法,您可以尝试从机器人机器上的机器中将索引复制到所有目的地。但这不是必要的,事情应该是正常的。
I'm setting up a new workstation for Java development in Eclipse. On my previous machine, I don't recall having to do anything special to see the standard collection of archetypes under 'New > Other > Maven project > select archetype
' with Nexus Indexer selected. On this machine, the list of archetypes is empty. I can create archetype-based projects from the command line, so it's not a show-stopper, but I just don't understand why the archetypes are missing (and it makes me wonder what else is broken that I haven't noticed yet).
Eclipse 3.5.1, Sun JDK 1.6.0_17, m2Eclipse 0.9.8.200905041414
Works fine here with the following configuration: Eclipse 3.5.1 20090920-1017, Sun JDK 6u16, m2eclipse 0.9.8.200905041414.
alt text http://img13.imageshack.us/img13/126/screenshotnewmavenproje.png
Are you sure m2eclipse has finished downloading nexus-maven-repository-index.gz
from the maven central repository? Does this file looks "good"?
BTW, the index is stored in the plugin's metadata location which is <workspace root>/.metadata/.plugins/org.maven.ide.eclipse/nexus
. As workaround, you could maybe try to copy the index from the machine where everything works to this destination on the "buggy" machine. But this shouldn't be necessary, things should just work.
这篇关于Maven原型未出现在m2eclipse Nexus索引器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!