简体   繁体   English

无法使用Playn Eclipse和Maven从原型创建项目

[英]Unable to create project from archetype using playn eclipse and maven

This is pretty frustrating. 这真令人沮丧。 I followed the GettingStarted instructions on the PlayN page and everything works fine from the command line but I keep getting errors when trying to create a skeleton PlayN maven project in eclipse. 我按照PlayN页面上的Getting Started指示进行操作,并且在命令行中一切正常,但是在Eclipse中尝试创建骨骼式PlayN maven项目时却遇到错误。 I'm running this on a Mac OS X and eclipse 4.2.0 classic. 我正在Mac OS X和eclipse 4.2.0 classic上运行它。

Unable to create project from archetype [com.googlecode.playn:playn-archetype:1.3.1] 无法通过原型[com.googlecode.playn:playn-archetype:1.3.1]创建项目

Under details it says: The defined artifact is not an archetype 在详细信息下显示:定义的工件不是原型

I have come up with a working solution, albeit less pretty. 我提出了一个可行的解决方案,尽管不够漂亮。 Essentially, if you create a new project with Maven (not Eclipse), then import it in, you won't see this error. 本质上,如果使用Maven(不是Eclipse)创建一个新项目,然后将其导入,则不会看到此错误。 See this question's answers for more information. 有关更多信息,请参见此问题的答案。

I found a way better solution that actually works. 我找到了一种更好的实际解决方案。 I dumped eclipse and followed this tutorial for netbeans http://www.gamefromscratch.com/post/2012/05/24/Using-Netbeans-712-with-PlayN-13.aspx 我丢弃了eclipse,然后按照本教程学习了netbeans http://www.gamefromscratch.com/post/2012/05/24/Using-Netbeans-712-with-PlayN-13.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM