项目'X'缺少必需的源文件夹:'target / generated-resources / eclipse'

时间:2017-10-24 10:42:21

标签: java eclipse maven classpath

Eclipse中的Java构建路径问题:

项目'X'缺少必需的源文件夹:'target / generated-resources / eclipse'

在构建项目时,我还有“在项目X上集成外部工具生成器”的“错误运行构建器”。它是项目中“Builders”中定义的程序配置,用于运行<?php if ($_FILES['file']['name']) { if (!$_FILES['file']['error']) { $name = md5(rand(100, 200)); $ext = explode('.', $_FILES['file']['name']); $filename = $name . '.' . $ext[1]; $destination = '/assets/images/' . $filename; //change this directory $location = $_FILES["file"]["tmp_name"]; move_uploaded_file($location, $destination); echo 'http://10.58.2.84/blog2/images/' . $filename; //change this URL } else { echo $message = 'Ooops! Your upload triggered the following error: ' . $_FILES['file']['error']; } } ?> (在属性中)。

1 个答案:

答案 0 :(得分:0)

解决方案是将项目作为eclipse中的现有maven项目导入,而不启动目标eclispe:eclispe,因为Apache Maven Eclipse插件已停用(请参阅上面的评论)。

有关更多说明和详细信息:

请参阅What is the equivalent of the retired mvn eclipse:eclipse in m2e?

请参阅http://maven.apache.org/plugins/maven-eclipse-plugin/