How to print the actual MAVEN_OPTIONS that are being used?

后端 未结 5 1200
一个人的身影
一个人的身影 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条回答
  •  -上瘾入骨i
    2021-02-20 04:18

    You can use Maven Help Plugin and help:system goal, so your pom will be:

    
        4.0.0
        testMavenOpt
        testMavenOpt
        jar
        1.0-SNAPSHOT
        testMavenOpt
        http://maven.apache.org
        
            
                junit
                junit
                3.8.1
                test
            
        
        
            
                
                    org.apache.maven.plugins
                    maven-help-plugin
                    2.1
                
            
        
    
    

    and you should execute mvn help:system

提交回复
热议问题