Is it possible to execute two different maven exec-maven-plugin in a single POM

后端 未结 6 1954
臣服心动
臣服心动 2021-01-30 09:59

I execute the following code using mvn exec:java com.mycompany.FooServer.

I would like to add another server which I can execute like mvn exec:java co

6条回答
  •  一生所求
    2021-01-30 10:44

    I find the solution: I put in

    you can use mvn clean test -Pfoo,bar

    
        
            foo
            
                
                    
                        org.codehaus.mojo
                        exec-maven-plugin
                        1.3.2
                        
                            
                                CountContinusIntegr-execution
                                compile
                                
                                    java
                                
                                
                                    com.mycompany.FooServer
                                
                            
                        
                    
                
            
        
        
            bar
            
                
                    
                        org.codehaus.mojo
                        exec-maven-plugin
                        1.3.2
                        
                            
                                CountContinusIntegr-execution
                                compile
                                
                                    java
                                
                                
                                    com.mycompany.BarServer
                                
                            
                        
                    
                
            
        
    
    

提交回复
热议问题