jenkinsci/maven-hpi-plugin — pull request #10 by eeb (2014-08-20 18:21:02+00:00)
Title: Added code to skip maven dependencies of type pom that were being added to the Libraries

While working on changes to the [m2release plugin](https://github.com/jenkinsci/m2release-plugin), I found that the .hli file being produced by the maven-hpi-plugin contained paths to .pom files in the Libraries section. This only became an issue when I moved the m2release plugin to the 1.532 version of Jenkins core as the updated ClassPluginStrategy class used the AntClassLoader and no longer the URLClassloader to load dependencies. Attempting to start Jenkins using mvn hpi:run resulted in a java.util.zip.ZipException.

Adding the following dependency from the m2release plugin to a pom reproduces the issue:
```
org.apache.maven.release
maven-release-manager
2.1

maven-project
org.apache.maven

```

To fix the issue I just skip dependencies of type pom.