Is it possible to use maven buildnumber plugin to generate build number without any scm check?

后端 未结 6 738
抹茶落季
抹茶落季 2020-12-25 11:05

Getting the following exception while using maven build number plugin. Is it possible to disable SCM check while using the build number plugin? Can we use this plugin to gen

6条回答
  •  情书的邮戳
    2020-12-25 11:42

    I had the case, that I wanted a GIT commitId and a timestamp to be put into properties, both at the same time. Can this be done as well?
    Of course:

    
        org.codehaus.mojo
        buildnumber-maven-plugin
        1.4
        false
        
            
                commitId
                validate
                
                    create
                
                
                    commitId
                    7
                
            
            
                buildTimestamp
                validate
                
                    create-timestamp
                
                
                    buildTimestamp
                
            
        
    
    

提交回复
热议问题