Maven项目秒变gradle项目

Leon.Wood 2013-08-13

切换到你maven项目目录

然后执行

gradle setupBuild --type pom

回车之后

你的maven项目已经秒变gradle项目

 

要求版本:gradle1.7

blueram 2013-08-14
试一试,那就太好了
blueram 2013-08-14
xml to a Gradle build.
   > Unable to create Maven project model using POM D:\workbase\electricity\备份
\energysaving-raw\pom.xml.
      > Some problems were encountered while processing the POMs:
        [ERROR] Failed to determine Java version for profile jdk-1.6 @ (external
profiles)
        [WARNING] 'build.plugins.plugin.version' for org.gradle.mvn3.org.apache.
maven.plugins:maven-compiler-plugin is missing. @ line 236, column 12
        [WARNING] 'build.plugins.plugin.version' for org.gradle.mvn3.org.apache.
maven.plugins:maven-war-plugin is missing. @ line 233, column 12


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

我怎么测试不行呀
Leon.Wood 2013-09-09
你JDK版本?
blueram 2013-09-09
jdk1.7
free_man 2013-09-28
[ERROR] Failed to determine Java version for profile jdk-1.6 @ (external
profiles)

错误信息貌似说你jdk是1.6的啊
Global site tag (gtag.js) - Google Analytics