Mojo's RPM Maven Plugin
  1. Mojo's RPM Maven Plugin
  2. MRPM-9

rpm plugin does not handle properties for rpm-specification files (parameter: defineStatement)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-beta-2
    • Component/s: rpm
    • Labels:
      None
    • Environment:
      openSuse 11, rpm-maven-plugin 2.0-beta-1
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      Class rpm-maven-plugin/src/main/java/org/codehaus/mojo/rpm/RPMMojo.java does not handle
      parameter defineStatement properly - thus it's not possible to pass parameters to RPM specification files.
      Therefore we can not generate rpm files, since we do need more than one parameter in our pom.

      Here's the patch:
      rpm-maven-plugin/src/main/java/org/codehaus/mojo/rpm/RPMMojo.java

      current version:
      827 if ( null != defineStatements )
      828

      { 829 Iterator defineIter = defineStatements.iterator(); 830 String defineStatement = (String) defineIter.next(); 831 spec.println( "%define " + defineStatement ); 832 }

      patched version:
      827 if ( null != defineStatements )
      828 {
      829 Iterator defineIter = defineStatements.iterator();
      830 while(defineIter.hasNext())

      { 831 String defineStatement = (String) defineIter.next(); 832 spec.println( "%define " + defineStatement ); 833 }

      834 }

      Pls release a new version pretty soon.
      Thx

      P Ottlinger

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Carlos Sanchez
              Reporter:
              Philipp
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: