timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-43763] Conflicting hpl and jpl files created by maven-hpi-plugin #9101

Open timja opened 7 years ago

timja commented 7 years ago

The hpi:hpl plugin generates hpl files for a jenkins home folder.
When you execute hpi:run it uses PluginWorkspaceMapImpl which generates .jpl files for snapshots found on the user home folder.

This can cause hard to track conflicts as you will end up with an .hpl and .jpl file and the .jpl, which can come from any place on the home user folder, will have preference when starting jenkin.

For reference:
.jpl creation - https://github.com/jenkinsci/maven-hpi-plugin/blob/aaf092abf2853410c2101c3e521b515831484dea/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java#L410
.hpl creation - https://github.com/jenkinsci/maven-hpi-plugin/blob/aaf092abf2853410c2101c3e521b515831484dea/src/main/java/org/jenkinsci/maven/plugins/hpi/HplMojo.java#L166


Originally reported by alobato, imported from: Conflicting hpl and jpl files created by maven-hpi-plugin
  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 7 years ago

alobato:

I couldn't find a component for maven-hpi-plugin, is there one?