https://bugzilla.redhat.com/show_bug.cgi?id=1225808
Bug ID: 1225808
Summary: xmvn: missing packaging type in generated POM files
Product: Fedora
Version: rawhide
Component: xmvn
Severity: high
Priority: medium
Assignee: mizdebsk(a)redhat.com
Reporter: msrb(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: java-sig-commits(a)lists.fedoraproject.org,
mat.booth(a)redhat.com, mizdebsk(a)redhat.com,
msimacek(a)redhat.com, msrb(a)redhat.com
Description of problem:
Jenkins uses maven-hpi-plugin to build its plugins. These plugins have
packaging type "hpi", instead of default "jar". During the build,
maven-hpi-plugin tries to resolve POM files of project's dependencies and
checks whether packaging type is "hpi". If so, given dependency is added to the
manifest file and Jenkins later treats it as a dependency on other Jenkins
plugin. Since POM files generated by XMvn doesn't contain packaging type, it
always defaults to "jar" - resulting in incorrect (empty) plugin dependencies
in the manifest file.
Version-Release number of selected component (if applicable):
xmvn-2.4.0-2.fc23.noarch
How reproducible:
always
Steps to Reproduce:
- tested on Rawhide
1. wget
https://msrb.fedorapeople.org/reproducer.tar.gz
2. unpack and "mvn clean install" the reproducer
3. git clone
https://github.com/jenkinsci/matrix-project-plugin.git
4. dnf install jenkins-junit-plugin jenkins-script-security-plugin
5. build matrix-project-plugin with xmvn: "xmvn
sample.plugin:hpi-deps:1:list-plugin-dependencies"
Actual results:
[INFO] --- hpi-deps:1:list-plugin-dependencies (default-cli) @ matrix-project
---
Expected results:
[INFO] --- hpi-deps:1:list-plugin-dependencies (default-cli) @ matrix-project
---
[INFO] org.jenkins-ci.plugins:junit:1.2
[INFO] org.jenkins-ci.plugins:script-security:1.13
Additional info:
$ xmvn-resolve org.jenkins-ci.plugins:junit:pom:
/builddir/.cache/xmvn/C0/C0E3A056937477D4B401723B4FA0215CDB81DFC2/junit-SYSTEM.pom
$ cat
/builddir/.cache/xmvn/C0/C0E3A056937477D4B401723B4FA0215CDB81DFC2/junit-SYSTEM.pom
<?xml version="1.0" encoding="UTF-8"?><project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>junit</artifactId>
<version>SYSTEM</version>
</project>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=IeAUUUVdO3&a=cc_unsubscribe