How to echo in Maven without Antrun plugin?

后端 未结 4 1701
日久生厌
日久生厌 2021-02-13 16:23

How can I print to the console while executing a mvn command (in a phase/goal), but not using Maven Antrun plugin?

Why I reject Antrun solutions:

  • The over
4条回答
  •  自闭症患者
    2021-02-13 17:09

    You should try the Maven Echo plugin:

    
      com.soebes.maven.plugins
      maven-echo-plugin
      0.1
      
        
          initialize
          
            echo
          
        
      
      
        
          This is the Text which will be printed out.
        
      
    
    

    Or furthermore take a deeper look into the integration test of the plugin.

    which is available via Maven Central. BTW: If you have further requests/improvements just file in an issue.

提交回复
热议问题