Maven project not being treated as Java in Eclipse

后端 未结 14 717
星月不相逢
星月不相逢 2021-02-05 04:30

I\'m working on a project that has lots of different Maven projects. I\'ve been doing a bunch of JUnit testing on these projects, and usually this goes well. I open up Eclipse

14条回答
  •  -上瘾入骨i
    2021-02-05 05:15

    Check the pom.xml file for projects that don't get the AspectJ nature (AJ on the project). Are they missing the AspectJ-Maven plugin? They should have a section like:

    
      org.codehaus.mojo
      aspectj-maven-plugin
        
          
            
              
              compile
            
          
        
        
          1.6
        
    
    

    Also take a look at his question: Maven/AJDT project in Eclipse

提交回复
热议问题