Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: rpm
-
Labels:None
Description
It'd be nice if there were some way to automatically pull generate RPM Requires based on the dependencies in the POM. Right now the user has to maintain two separate dependency lists (one for RPM, and one for Maven). If there were some way to reduce the amount of duplication, it'd go a long way towards integrating RPM more seamlessly into Maven.
A few solutions to this approach might be:
1. Add any dependencies marked as provided as RPM Requires: <artifactId>
2. For any dependencies marked as provided, parse the dependency's pom and determine if it uses the RPM plugin and what the RPM name is.
3. Provide a way for users to disable / exclude this RPM auto-requirement resolution.
Issue Links
- is duplicated by
-
MRPM-73
Allow dynamic require population through Maven dependencies mechanism
-
This is an interesting idea.
It seems like there is no current duplication of effort. That is, no one would currently list a dependency on an RPM.
Would we be able to accurately determine the rpm "package" name to include? It may be more appropriate to declare the "requires" onto one of the "virtual packages" that the dependent rpm "provides."
What to do with versions. Typically, best practice in maven dictates using specific versions and not version ranges. Does that really make sense for RPMs?