How to bind plugin mojos (goals) to few phases of default lifecycle?

后端 未结 2 495
我寻月下人不归
我寻月下人不归 2021-02-14 05:47

My custom maven plugin have three goals (mojos):

  • convert assigned to default phase: process-test-resources
  • generateStubs
2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-14 06:27

    You can achieve that by replacing ugly-fix with correct goals in tag:

    
      
        
            org.apache.maven.lifecycle.Lifecycle
            org.apache.maven.lifecycle.Lifecycle
            accurest
            
                accurest
                
                    
                        io.codearte.accurest:accurest-maven-plugin:${project.version}:convert
                    
                    
                        io.codearte.accurest:accurest-maven-plugin:${project.version}:generateTests
                    
                    
                        io.codearte.accurest:accurest-maven-plugin:${project.version}:generateStubs
                    
                
                
                    
                        io.codearte.accurest:accurest-maven-plugin:${project.version}:convert
                    
                    
                        io.codearte.accurest:accurest-maven-plugin:${project.version}:generateTests
                    
                    
                        io.codearte.accurest:accurest-maven-plugin:${project.version}:generateStubs
                    
                
            
        
    
    

提交回复
热议问题