[ 
http://jira.codehaus.org/browse/MVERSIONS-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Connolly closed MVERSIONS-97.
-------------------------------------

    Resolution: Won't Fix

Running a plugin in any phase is too late for "live" updates to work.  There 
are all sorts of almost (i.e. bigger than) edge cases where your build will 
fail spectacularly.

Maven 3 provides hooks  to allow the functionality you are looking for, e.g. 
see 
http://svn.apache.org/repos/asf/maven/sandbox/trunk/maven/maven-plugin-enforcer/
 for an example of one of the hooks.

Marking this as wont fix because it will cause too much JIRA traffic from 
people complaining about the edge cases

> Goal to allow update-properties to be run live
> ----------------------------------------------
>
>                 Key: MVERSIONS-97
>                 URL: http://jira.codehaus.org/browse/MVERSIONS-97
>             Project: Maven 2.x Versions Plugin
>          Issue Type: New Feature
>            Reporter: Travis Calder
>         Attachments: update-properties-live.patch
>
>
> We would like a goal with functionality similar to update-properties.
> However, this goal should also modify the project properties so that targets 
> later in the execution can use the new values.
> This goal should, preferably, be able to be triggered from inside a POM file.
> Example usage:
> {code}
>     <build>
>         <plugins>
>             <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>versions-maven-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <phase>initialize</phase>
>                         <goals>
>                             <goal>update-properties-live</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
>             
>             ...
>         <plugins>
>     </build>
> {code}
> I've attached a patch with a possible implementation of the feature, which 
> I've tested to ensure it fulfills the functionality we require.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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


Reply via email to