Issues with maven project running in eclipse, not recognized as Java project

前端 未结 12 2156
迷失自我
迷失自我 2020-12-24 08:22

I\'ve imported an existing maven project into Eclipse. I tried to set up the configurations for a JUnit test, and my project wouldn\'t come up as a testable project. When I

12条回答
  •  伪装坚强ぢ
    2020-12-24 08:45

    The Project nature is decided by the .project file in Eclipse, which also dictates to Eclipse about the Parent Source Code, and Test Folders.

    Update/Modify the .project file as follows, using which We retain the Maven Compatibility and Java Nature of the Project.

    .project.xml under the Eclipse Project folder

    
    
            java-cgdk-en
            
            
            
            
                    
                            org.eclipse.jdt.core.javabuilder
                            
                            
                    
              
            
                    org.eclipse.jdt.core.javanature
            
    
    

提交回复
热议问题