Mojo
  1. Mojo
  2. MOJO-535

Submission of properties-maven-plugin

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: _Plugin Submission
    • Labels:
      None
    • Environment:
      Platform independent
    • Complexity:
      Intermediate
    • Number of attachments :
      3

      Description

      As posted on the Mojo-Dev and Maven-User mailing lists, I've created a properties-maven-plugin which provides I/O functionality for maven properties, a feature often requested on the mailing lists.

      The site for the plugin:
      http://individual.utoronto.ca/zarar/properties-maven-plugin/site/

      My mailing list posts about the plugin:
      http://www.nabble.com/properties-maven-plugin-tf2455107.html
      http://www.nabble.com/Any-interest-in-a-maven-properties-plugin--tf2454363.html

      The source for the plugin is attached. Is it possible for this to be placed in the sandbox so further development may be done on it?

      Thanks.

        Activity

        Hide
        Zarar Siddiqi added a comment -

        This is now in SVN:

        https://svn.codehaus.org/mojo/trunk/mojo/properties-maven-plugin/

        Thanks to everyone for voting. Thanks again Carlos.

        Show
        Zarar Siddiqi added a comment - This is now in SVN: https://svn.codehaus.org/mojo/trunk/mojo/properties-maven-plugin/ Thanks to everyone for voting. Thanks again Carlos.
        Hide
        Carlos Sanchez added a comment -
        Show
        Carlos Sanchez added a comment - moved to the sandbox until released https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/properties-maven-plugin/
        Show
        Zarar Siddiqi added a comment - I need some help here: http://www.nabble.com/-Vote--properties-maven-plugin-release-tf4094624.html
        Hide
        Daniel Harvey added a comment -

        FYI, the sandbox URL has moved to https://svn.codehaus.org/mojo/trunk/sandbox/properties-maven-plugin/

        BTW, I'm still keen to see this plugin released.

        Show
        Daniel Harvey added a comment - FYI, the sandbox URL has moved to https://svn.codehaus.org/mojo/trunk/sandbox/properties-maven-plugin/ BTW, I'm still keen to see this plugin released.
        Hide
        Tony Dalbrekt added a comment -

        To write all project properties to file is not always desirable. The attached patch adds class (goal) WriteProperties which writes properties of your choice to outputFile. It would be nice if you committed this patch and I would also like to see this plugin be released in some way.

        Usage:

        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>properties-maven-plugin</artifactId>
            <version>1.0-SNAPSHOT</version>
            <executions>
                <execution> 
                    <phase>generate-resources</phase>
                    <goals>
                        <goal>write-properties</goal>
                    </goals>
                    <configuration>
                        <addBuildDate>true</addBuildDate>
                        <properties>
                            <property>
                                <name>project.version</name>
                                <value>${project.version}</value>
                            </property>
                            <property>
                                <name>project.name</name>
                                <value>${project.name}</value>
                            </property>
                        </properties>
                        <outputFile>
                            target/classes/app.properties
                        </outputFile>
                    </configuration>
                </execution>
            </execusions>
        </plugin>
        
        Show
        Tony Dalbrekt added a comment - To write all project properties to file is not always desirable. The attached patch adds class (goal) WriteProperties which writes properties of your choice to outputFile . It would be nice if you committed this patch and I would also like to see this plugin be released in some way. Usage: <plugin> <groupId> org.codehaus.mojo </groupId> <artifactId> properties-maven-plugin </artifactId> <version> 1.0-SNAPSHOT </version> <executions> <execution> <phase> generate-resources </phase> <goals> <goal> write-properties </goal> </goals> <configuration> <addBuildDate> true </addBuildDate> <properties> <property> <name> project.version </name> <value> ${project.version} </value> </property> <property> <name> project.name </name> <value> ${project.name} </value> </property> </properties> <outputFile> target/classes/app.properties </outputFile> </configuration> </execution> </execusions> </plugin>

          People

          • Assignee:
            Unassigned
            Reporter:
            Zarar Siddiqi
          • Votes:
            16 Vote for this issue
            Watchers:
            17 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: