Maven 3 profile with extensions

前端 未结 3 919
清酒与你
清酒与你 2020-12-16 18:55

My question had been addressed in this thread, but the explanation is not clear.

I have this build definition in one of my pom.xml files:



        
3条回答
  •  盖世英雄少女心
    2020-12-16 19:16

    Just a crazy idea: use modules

    Define a parent pom like this:

    org.example
    my-parent
    1.0
    pom
    
        
            use-pom1
            
                pom1
            
        
        
            use-pom2
            
                pom2
            
        
    
    

    Define the desired extensions on pom1 and pom2.

提交回复
热议问题