How to remove version number from war file

前端 未结 5 1800
小蘑菇
小蘑菇 2021-01-02 17:34

I have a Dependency in child pom like this.


        
            sample-groupID
                


        
5条回答
  •  滥情空心
    2021-01-02 17:52

    This will solve your problem:

        
      4.0.0
      myEAR
      myEAR
      0.0.1-SNAPSHOT
      ear
      
        
          
            maven-ear-plugin
            2.10
            
              EarContent
              false
              6
              lib
              no-version
            
          
        
      
      
        
            myWAR
            myWAR
            0.0.1-SNAPSHOT
            war
        
      
    
    

    your final EAR will be myEAR-0.0.1.SNAPSHOT.EAR that contains myWAR.war (without version number) if you want to remove version number from EAR also than add myEar

提交回复
热议问题