Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/323.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 未能应用插件[class';io.spring.gradle.dependencymanagement.DependencyManagementPlugin';]?_Java_Spring_Gradle_Plugins_Dependencies - Fatal编程技术网

Java 未能应用插件[class';io.spring.gradle.dependencymanagement.DependencyManagementPlugin';]?

Java 未能应用插件[class';io.spring.gradle.dependencymanagement.DependencyManagementPlugin';]?,java,spring,gradle,plugins,dependencies,Java,Spring,Gradle,Plugins,Dependencies,我正在处理一个项目,我试图运行gradle包装器,但构建失败,我得到了以下错误: :gulpConstantDev FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task :gulpConstantDev. gulp not installed in node_modules, please first run gradle installGulp What

我正在处理一个项目,我试图运行gradle包装器,但构建失败,我得到了以下错误:

:gulpConstantDev FAILED

FAILURE: Build failed with an exception.

 What went wrong:
Execution failed for task :gulpConstantDev.
 gulp not installed in node_modules, please first run gradle installGulp
 What went wrong:
A problem occurred evaluating root project 'gateway'.
 Failed to apply plugin [class 'io.spring.gradle.dependencymanagement.DependencyManagementPlugin']
    Could not create task of type 'DependencyManagementReportTask'.
然后我运行了
grade installGulp
,但构建再次失败,我得到了以下错误:

:gulpConstantDev FAILED

FAILURE: Build failed with an exception.

 What went wrong:
Execution failed for task :gulpConstantDev.
 gulp not installed in node_modules, please first run gradle installGulp
 What went wrong:
A problem occurred evaluating root project 'gateway'.
 Failed to apply plugin [class 'io.spring.gradle.dependencymanagement.DependencyManagementPlugin']
    Could not create task of type 'DependencyManagementReportTask'.

我是一个新手程序员,对堆栈溢出还比较陌生。提前感谢您的帮助

我觉得有点晚了。今晚我也面临同样的问题。我通过添加一个依赖项“io.spring.gradle:依赖项管理插件”解决了这个问题。 例如,我有:

  ext {
        spring_version = "4.2.5.RELEASE"
        springboot_version = "1.3.3.RELEASE"
        spring_dependency_management_version = "0.6.1.RELEASE"
    }


我希望这能有所帮助。

你的gradle版本是什么?似乎是这样的问题:不太离题:我在工作中的一个项目中遇到了OP的错误,而我对gradle几乎没有经验@诺维的解决方案真的解决了。结果我发现我可能已经将IntelliJ升级到了最新版本,该版本本机支持Gradle 3.0+,尽管我的工作项目配置为Gradle 2.7。所以,注意你的回购协议版本。