【发布时间】:2014-05-08 12:19:20
【问题描述】:
我有一个我想转换的 maven 项目,以便它使用 Gradle 构建。似乎 gradle 没有检测到 pom.xml 文件:
$ gradle -v
------------------------------------------------------------
Gradle 1.11
------------------------------------------------------------
Build time: 2014-02-11 11:34:39 UTC
Build number: none
Revision: a831fa866d46cbee94e61a09af15f9dd95987421
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy: 2.2.0
JVM: 1.7.0_45 (Oracle Corporation 24.45-b08)
OS: Windows 7 6.1 amd64
$ ls
pom.xml src target
$ gradle setupBuild --info
Starting Build
Settings evaluated using empty settings script.
Projects loaded. Root project using empty build file.
Included projects: [root project 'simple-service-webapp']
Evaluating root project 'simple-service-webapp' using empty build file.
All projects evaluated.
FAILURE: Build failed with an exception.
* What went wrong:
Task 'setupBuild' not found in root project 'simple-service-webapp'.
* Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 1.589 secs
【问题讨论】: