Maven/AJDT project in Eclipse

后端 未结 6 1742
北荒
北荒 2020-12-24 03:05

I need to use aspectj in a maven project. I installed the maven plugin for eclipse (m2e), the maven aspectj plugin, and also AJDT for Eclipse. So now, when i open a new proj

6条回答
  •  青春惊慌失措
    2020-12-24 03:34

    If you have the aspectj-maven-plugin in your pom.xml you'll get one missing m2e connector :

            
                org.codehaus.mojo
                aspectj-maven-plugin
                1.11
                
                    
                        **/*aj
                        **/*java
                    
                    ignore
                    1.8
                    1.8
                    1.8
                    true
                    
                        
                            org.perf4j
                            perf4j
                            log4jonly
                        
                    
                
                
                    
                        
                            compile
                        
                    
                
            
    

    I had to install m2e AJDT maven plugin configurator in eclipse but it did not work at first because I had missing dependencies. So to start install the AJDT tool available on this site : http://download.eclipse.org/tools/ajdt/48/dev/update/
    Restart eclipse and then the install of m2e AJDT maven plugin configurator should work. After a new restart you should have eclipse available to build your aspectj classes.

提交回复
热议问题