【问题标题】:Trying to create grails project using maven尝试使用 maven 创建 grails 项目
【发布时间】:2014-01-15 07:57:44
【问题描述】:

我运行了这个命令:

mvn archetype:generate -DarchetypeGroupId=org.grails \
-DarchetypeArtifactId=grails-maven-archetype \
-DarchetypeVersion=2.3.4 \
-DgroupId=example -DartifactId=my-app

当它完成时。然后:

cd my-app
mvn initialize

我收到了这样的回复:

[错误] 无法在项目 my-app 上执行目标:无法解析项目示例的依赖项:my-app:grails-app:1.0-SNAPSHOT:未能找到 org.grails:grails-dependencies:jar:2.3 http://repo.grails.org/grails/core 中的 .4 被缓存在本地存储库中,直到 grails 的更新间隔已过或强制更新后才会重新尝试解析 -> [帮助 1]

这都是样板的东西。我去了主要的 grails repo,我可以看到依赖关系,那么为什么 maven 还在抱怨呢?我在 Ubuntu 13.10 上,使用 Oracle JDK 1.7,maven 3.0.4

所有帮助感谢!

【问题讨论】:

    标签: maven grails maven-archetype


    【解决方案1】:

    将 grails-dependencies 的依赖更改为 pom

    这应该可以解决您的问题。

    【讨论】:

      猜你喜欢
      • 2011-01-29
      • 2016-06-01
      • 1970-01-01
      • 2011-06-28
      • 2020-10-24
      • 1970-01-01
      • 2016-04-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多