简体   繁体   English

如何在Java构建路径中修复SRC文件夹?

[英]How to fix the SRC folder in Java Build Path?

I have the following source code hierarchy situation : 我有以下源代码层次结构情况:

> ProjectRoot
> |-- src/
>      |--- main/
>            |-----java/ 
>                    |-----com/github/myapp
>                                       |------MyAppMainFile
>            |-----ressources/
> pom.xml

How to set the Source Folder in the Build Path of Maven Java Project inside Eclipse ? 如何在Eclipse中的Maven Java Project的构建路径中设置源文件夹?

If your eclipse did not recognize importing with "Existing maven projects" 如果您的日食无法识别“现有maven项目”中的导入

Remove the project from eclipse 从Eclipse中删除项目

run the command "mvn eclipse:eclipse" 运行命令“ mvn eclipse:eclipse”

import again with General > Existing Projects into Workspace 使用“常规”>“现有项目”再次导入到工作区

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM