Maven Echo Plugin

The Maven Echo Plugin is intended to printout messaged during the build.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.soebes.maven.plugins
ArtifactId

ArtifactId

maven-echo-plugin
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven Echo Plugin
The Maven Echo Plugin is intended to printout messaged during the build.
Project URL

Project URL

https://github.com/khmarbaise/Maven-Echo-Plugin
Project Organization

Project Organization

SoftwareEntwicklung Beratung Schulung
Source Code Management

Source Code Management

https://github.com/khmarbaise/Maven-Echo-Plugin

Download maven-echo-plugin

How to add to project

<plugin>
    <groupId>com.soebes.maven.plugins</groupId>
    <artifactId>maven-echo-plugin</artifactId>
    <version>0.1</version>
</plugin>

Dependencies

compile (1)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.2.1

test (2)

Group / Artifact Type Version
org.easytesting : fest-assert jar 1.4
org.testng : testng jar 6.3.1

Project Modules

There are no modules declared in this project.

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

<plugin>
  <groupId>com.soebes.maven.plugins</groupId>
  <artifactId>echo-maven-plugin</artifactId>
  <version>0.3.0</version>
  <executions>
    <execution>
      <phase>initialize</phase>
      <goals>
        <goal>echo</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <echos>
      <echo>This is the Text which will be printed out.</echo>
    </echos>
  </configuration>
</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:

<plugin>
  <groupId>com.soebes.maven.plugins</groupId>
  <artifactId>echo-maven-plugin</artifactId>
  <version>0.3</version>
  <executions>
    <execution>
      <phase>initialize</phase>
      <goals>
        <goal>format</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
  	<format>%05d</format>
  	<integer>200</integer>
  </configuration>
</plugin>

Multiple formats

  <configuration>
  	<formats>
  		<format>%03s</format>
  		<format>%03s</format>
  		<format>%03s</format>
  	</formats>
  	<integers>
  		<integer>1</integer>
  		<integer>2</integer>
  		<integer>3</integer>
  	</integers>
  </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.

<settings>
  ...
  <pluginGroups>
    <pluginGroup>com.soebes.maven.plugins</pluginGroup>
  </pluginGroups>
  ...
</settings>

Versions

Version
0.1