jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 2.x Build Helper Plugin
  • Maven 2.x Build Helper Plugin
  • MBUILDHELPER-35

Add <echo> goal to build-helper.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.7
  • Fix Version/s: None
  • Labels:
    None
  • Number of attachments :
    0

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>

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Karl Heinz Marbaise added a comment - 03/Apr/12 11:13 AM

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 ?

Show
Karl Heinz Marbaise added a comment - 03/Apr/12 11:13 AM 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 ?
Hide
Permalink
jieryn added a comment - 03/Apr/12 11:19 AM

-1

This seems way out of scope for the plugin.

Show
jieryn added a comment - 03/Apr/12 11:19 AM -1 This seems way out of scope for the plugin.
Hide
Permalink
Robert Scholte added a comment - 03/Apr/12 11:24 AM

Í'd prefer a won't fix. This sounds more like a some feature for ant-users who trust Maven as equal as Ant builds. Hence, if they want to stay in the Ant-era, the can use the antrun-maven-plugin.

Show
Robert Scholte added a comment - 03/Apr/12 11:24 AM Í'd prefer a won't fix . This sounds more like a some feature for ant-users who trust Maven as equal as Ant builds. Hence, if they want to stay in the Ant-era, the can use the antrun-maven-plugin.
Hide
Permalink
Karl Heinz Marbaise added a comment - 03/Apr/12 12:00 PM

The intention of printing out message is out of the scope of the plugin so you can stay with the ant-plugin.

Show
Karl Heinz Marbaise added a comment - 03/Apr/12 12:00 PM The intention of printing out message is out of the scope of the plugin so you can stay with the ant-plugin.

People

  • Assignee:
    Unassigned
    Reporter:
    Alex Pogrebnyak
Vote (0)
Watch (0)

Dates

  • Created:
    19/Sep/11 12:30 PM
    Updated:
    03/Apr/12 12:00 PM
    Resolved:
    03/Apr/12 12:00 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.