我想开始一个新的 Drop-Wizard 项目。 DW github (here) 中指定了一个 maven 原型(prototype)。但我不知道如何将其导入我的 Intellij Idea 的 添加 Archtype 选项。具体来说,我必须在 中提供哪个链接存储库 field 。任何帮助,将不胜感激。
最佳答案
由于 dropwizard 原型(prototype)在 maven 中央存储库中不可用,因此您必须:
$ git clone git@github.com:nicktelford/dropwizard.git
$ git checkout feature/maven-archetypes
$ cd dropwizard/dropwizard-archetypes
$ mvn install
(然后将原型(prototype)样本添加到 $LOCAL_REPO/io/dropwizard/archetypes/下的本地存储库)$ cd target/classes
$ chmod +x dropwizard-create
$ ./dropwizard-create com.sample sample
在这里,您生成了项目,然后您可以将其作为 maven 项目导入 Intellij IDEA。
关于maven - 从 GitHub 导入 Maven 原型(prototype),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21901039/