How can I display a message in Maven

前端 未结 4 1736
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-01 12:17

How can I display a message in Maven?

In ant, we do have \"echo\" to display a message, but in maven, how can I do that?

4条回答
  •  鱼传尺愫
    2021-02-01 12:46

    You can use Björn Ekryd's Echo Maven Plugin, which is published in Maven Central:

    
        com.github.ekryd.echo-maven-plugin
        echo-maven-plugin
        1.2.0
        
            
                package
                
                    echo
                
                
                    war has changed
                
            
        
    
    

    [INFO] --- maven-war-plugin:2.4:war (default-war) @ mymodule ---
    [INFO] Packaging webapp
    [INFO] Processing war project
    [INFO]
    [INFO] --- echo-maven-plugin:1.2.0:echo (default) @ mymodule ---
    [INFO] war has changed
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    

    Also, this plugin has 95% code coverage, which is pretty cool.

提交回复
热议问题