Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
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
patched version:
827 if ( null != defineStatements )
828 {
829 Iterator defineIter = defineStatements.iterator();
830 while(defineIter.hasNext())
834 }
Pls release a new version pretty soon.
Thx
P Ottlinger
Issue Links
- is duplicated by
-
MRPM-3
Only first define makes it to .spec file
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Attachment | RPMMojo.java [ 36601 ] |
| Resolution | Fixed [ 1 ] | |
| Assignee | Carlos Sanchez [ carlos ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Link | This issue is duplicated by MOJO-1175 [ MOJO-1175 ] |
| Project | Mojo [ 11062 ] | Mojo RPM Plugin [ 11970 ] |
| Key | MOJO-1202 |
|
| Component/s | rpm [ 13980 ] | |
| Complexity | Intermediate | |
| Component/s | rpm [ 12915 ] |
| Fix Version/s | 2.0-beta-2 [ 15441 ] |
patched complete RPMMojo.java