[
https://jira.codehaus.org/browse/MBUILDHELPER-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=295683#comment-295683
]
Karl Heinz Marbaise commented on MBUILDHELPER-35:
-------------------------------------------------
I have written a [small plugin|https://github.com/khmarbaise/Maven-Echo-Plugin]
which exactly does the above. It is currently available via Maven Central with
[example|https://github.com/khmarbaise/Maven-Echo-Plugin/blob/master/src/it/basicTest/pom.xml].
What do you think to integrate the code into build-helper-plugin ?
> Add <echo> goal to build-helper.
> --------------------------------
>
> Key: MBUILDHELPER-35
> URL: https://jira.codehaus.org/browse/MBUILDHELPER-35
> Project: Maven 2.x Build Helper Plugin
> Issue Type: New Feature
> Affects Versions: 1.7
> Reporter: Alex Pogrebnyak
> Priority: Minor
>
> It is sometimes desirable to see the value of a property during the build.
> Now I have to do this with the help of antrun plugin.
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>validate</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <target>
> <echo>[my.property1]: (${my.property1})</echo>
> <echo>[my.property2]: (${my.property2})</echo>
> </target>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> Is it possible to add "echo" goal to build-helper that would take a
> "<message>" subelement to do it more maven way, e.g.
> {code:xml}
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>build-helper-maven-plugin</artifactId>
> <executions>
> <execution>
> <phase>validate</phase>
> <goals>
> <goal>echo</goal>
> </goals>
> <configuration>
> <messages>
> <message>[my.property1]: (${my.property1})</message>
> <message>[my.property2]: (${my.property2})</message>
> </messages>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email