项目作者: khmarbaise

项目描述 :
Maven Echo Plugin
高级语言: Java
项目地址: git://github.com/khmarbaise/echo-maven-plugin.git
创建时间: 2012-01-03T21:39:40Z
项目社区:https://github.com/khmarbaise/echo-maven-plugin

开源协议:Apache License 2.0

下载


Echo Maven Plugin

Apache License, Version 2.0, January 2004
Maven Central
JDKBuilds
Main
Site

Overview

If you are working with Maven it sometimes happens that you come to the point
where you get the feeling to print out some kind of message during the build.
But how can you do that? Some people think a second time and came to the
Maven-AntRun-Plugin and use some ant task. But why does not exist
a simple small plugin which can simply print out some kind of messages.

Exactly for such situations the Echo Maven Plugin is intended.

License

Apache License, Version 2.0, January 2004

Issue Tracker

The Issue Tracker

Usage

The first and simplest usage is to configure the Echo Maven Plugin

  1. <plugin>
  2. <groupId>com.soebes.maven.plugins</groupId>
  3. <artifactId>echo-maven-plugin</artifactId>
  4. <version>0.3.0</version>
  5. <executions>
  6. <execution>
  7. <phase>initialize</phase>
  8. <goals>
  9. <goal>echo</goal>
  10. </goals>
  11. </execution>
  12. </executions>
  13. <configuration>
  14. <echos>
  15. <echo>This is the Text which will be printed out.</echo>
  16. </echos>
  17. </configuration>
  18. </plugin>

Hint

Starting with version 0.2 of the maven-echo-plugin has been
renamed to echo-maven-plugin according to the Apache Maven Trademarks.

Ideas

Format goal:

  1. <plugin>
  2. <groupId>com.soebes.maven.plugins</groupId>
  3. <artifactId>echo-maven-plugin</artifactId>
  4. <version>0.3</version>
  5. <executions>
  6. <execution>
  7. <phase>initialize</phase>
  8. <goals>
  9. <goal>format</goal>
  10. </goals>
  11. </execution>
  12. </executions>
  13. <configuration>
  14. <format>%05d</format>
  15. <integer>200</integer>
  16. </configuration>
  17. </plugin>

Multiple formats

  1. <configuration>
  2. <formats>
  3. <format>%03s</format>
  4. <format>%03s</format>
  5. <format>%03s</format>
  6. </formats>
  7. <integers>
  8. <integer>1</integer>
  9. <integer>2</integer>
  10. <integer>3</integer>
  11. </integers>
  12. </configuration>

Settings Configuration

If you like you can configure an appropriate plugin group in your
settings.xml file to make life a little bit easier.

  1. <settings>
  2. ...
  3. <pluginGroups>
  4. <pluginGroup>com.soebes.maven.plugins</pluginGroup>
  5. </pluginGroups>
  6. ...
  7. </settings>