打开新的intellij idea工程,发现无法添加maxcompute java文件

描述:

打开新的intellij idea工程,发现文件下标是黄色指针(图1),而不是蓝色c(图2 正确的工程)。

打开新的intellij idea工程,发现无法添加maxcompute java文件

打开新的intellij idea工程,发现无法添加maxcompute java文件

                                                               图1 错误的工程

打开新的intellij idea工程,发现无法添加maxcompute java文件

打开新的intellij idea工程,发现无法添加maxcompute java文件

                                                                  图2 正确的工程

 

2、解决方法:

编译mvn clean package,发现报错:

打开新的intellij idea工程,发现无法添加maxcompute java文件

发现路径错误,因此,将打开工程路径,往内收一层,解决。

原路径:        /Users/xuqiong/code/qbb_maxcompute_0513/Rec_news

修改后路径:/Users/xuqiong/code/qbb_maxcompute_0513/Rec_news/NewsPaperRec