Bug 1225808
| Summary: | xmvn: missing packaging type in generated POM files | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michal Srb <msrb> |
| Component: | xmvn | Assignee: | Mikolaj Izdebski <mizdebsk> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | java-sig-commits, mat.booth, mizdebsk, msimacek, msrb |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-06-02 05:18:01 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Michal Srb
2015-05-28 09:30:05 UTC
Packaging is build-time information and as such it is intentionally excluded from effective POMs generated by XMvn, which are meant to be used for dependency resolution, and nothing else - you shouldn't expect them to contain build-time information such as packaging type. Possible solutions to the problem: - patch plugin to not rely on build-time information in POMs, for example: * try to resolve HPI artifact (instead of POM), if it is found then assume it's Jenkins plugin * resolve JAR (instead of POM) and check if manifest contains "Hudson-Version" or "Jenkins-Version" attribute - force resolution of raw POM: * set system property "xmvn.resolver.disableEffectivePom" to "true" when resolving POM (and then reset it to original value) * add property "xmvn.resolver.disableEffectivePom" to every Jenkins plugin packaged in Fedora * add "-Dxmvn.resolver.disableEffectivePom=true" argument to xmvn (not recommended) As explained above, this is intentional. Closing as NOTABUG. |