[ 
http://jira.codehaus.org/browse/MVERSIONS-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=212347#action_212347
 ] 

Travis Calder commented on MVERSIONS-97:
----------------------------------------

To describe the use-case we're seeing more precisely:


We have an XML file describing the OSGi "features" we wish to ship to our 
client.

Our pom-file currently uses properties associated with the dependant jars in 
order to process the XML file, writing in the right version numbers.

However, we would like to make sure the versions inside the POM are up to date 
using the Versions plugin.

We want to automate the entire process, including deployment and release of the 
XML file, from a continuous integration server, which is why the properties 
being live is important. It allows us to do the entire job in a single Maven 
execution instead of requiring more than one.

> 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