Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.7
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
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.
<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>
Is it possible to add "echo" goal to build-helper that would take a "<message>" subelement to do it more maven way, e.g.
<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>
I have written a small plugin which exactly does the above. It is currently available via Maven Central with example. What do you think to integrate the code into build-helper-plugin ?