How to echo in Maven without Antrun plugin?

后端 未结 4 726
攒了一身酷
攒了一身酷 2021-02-13 16:22

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 16:52

    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.

提交回复
热议问题