机器人 - Maven的无法从原型创建项目 [英] android - maven unable to create project from archetype

查看:874
本文介绍了机器人 - Maven的无法从原型创建项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Eclipse太阳神,Android SDK中(把在我的道路),android的M2E的Eclipse插件,和Maven 3.0.3(也是在我的路径)。我可以创建普通的Andr​​oid项目就好了。我试图创建使用Maven通过Eclipse的一个项目,我选择了de.akquinet.android.archetypesAndroid的快速启动原型,每一次我碰到下面的错误。

I've installed the eclipse helios, the android sdk(put that in my path), the android m2e plugin for eclipse, and Maven 3.0.3(also in my path). I can create normal android projects just fine. I'm attempting to create a project using Maven through eclipse and i select the "de.akquinet.android.archetypes" android-quickstart Archetype and i get the following error every time.

创建Android的快速入门遇到了问题。

'Creating android-quickstart' has encountered a problem.

无法创建原型proejct   [de.akquinet.android.archetypes:Android的快速入门:1.0.8 - >]

Unable to create proejct from archetype [de.akquinet.android.archetypes:android-quickstart:1.0.8 -> ]

无法从原型创建项目   [de.akquinet.android.archetypes:Android的快速入门:1.0.8 - >]的   期望的原型不存在   (de.akquinet.android.archetypes:Android的快速入门:1.0.8)

Unable to create project from archetype [de.akquinet.android.archetypes:android-quickstart:1.0.8 -> ] The desired archetype does not exist (de.akquinet.android.archetypes:android-quickstart:1.0.8)

我缺少什么步骤?

推荐答案

首先安装Maven的(3.1.X)的最新版本。

First of all install latest version of Maven (3.1.x).

在此之后,在Eclipse中执行以下操作:

After that, in Eclipse do the following:

- > Maven项目 - >(下) - > 添加原型,然后输入:

New -> Maven Project -> (next) -> Add Archetype and enter:

Archetype Group Id: de.akquinet.android.archetypes
Archetype Artifact Id: android-quickstart
Archetype Version: 1.1.0

然后输入你的项目信息(的groupId,artifactId的,包),并完成向导。

Then enter your project informations (groupId, artifactId, package) and finish the wizard.

如果这不应该尝试创建的项目,你的命令行:

If this shouldn't work try creating the project with you command line:

mvn archetype:generate \
  -DarchetypeArtifactId=android-quickstart \
  -DarchetypeGroupId=de.akquinet.android.archetypes \
  -DarchetypeVersion=1.1.0 \
  -DgroupId=your.company \
  -DartifactId=my-android-application

然后它在Eclipse中导入。

And then import it in Eclipse.

请记住,的m2eclipse 是不够的,但你也需要 M2E-机器人 http://rgladwell.github.io/m2e-android/

Please remember that m2eclipse is not enough but you need also m2e-android: http://rgladwell.github.io/m2e-android/

这篇关于机器人 - Maven的无法从原型创建项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆