How to print the actual MAVEN_OPTIONS that are being used?

后端 未结 5 1215
一个人的身影
一个人的身影 2021-02-20 03:35

Is there a way to get maven to output the value of environment and maven variables during a build? This would be very useful for debugging things when they\'re going wrong.

5条回答
  •  忘掉有多难
    2021-02-20 04:20

    It'll require some changes to the pom.

    
      org.apache.maven.plugins
      maven-antrun-plugin
      1.1
      
        
          validate
          
            run
          
          
            
              [MAVEN_OPTIONS]${env.MAVEN_OPTIONS}
            
          
        
      
    
    

    Of course, it might be simplest to run

    echo $MAVEN_OPTS
    

提交回复
热议问题