Maven deploy multiple wars to embedded server for integration tests

前端 未结 2 1146
故里飘歌
故里飘歌 2021-01-04 13:34

I have had no issue running a maven war project on an embedded server for its own integration tests, but now I need to run multiple wars and test from a different project.

2条回答
  •  萌比男神i
    2021-01-04 13:39

    Watch out, the DEPLOYABLES element is a child of plugin/configuration, NOT plugin/configuration/configuration.

    The example above should be :

    
            
                org.codehaus.cargo
                cargo-maven2-plugin
                1.2.2
                
                    ...
                    
                        standalone
                        
                            8085
                        
                    
                    
                         
                                webapp1
                                com.test
                                war
                                http://localhost:8085/testapp/
                                
                                    testapp
                                
                          
                          
                                webapp2
                                com.test
                                war
                                http://localhost:8085/testapp2/
                                
                                    testapp2
                                
                          
                     
                 
            
     
    

    Hope that helps !

提交回复
热议问题