Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53961

Adding local jar file to hpi

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We have a Jenkins plugin - https://github.com/jenkinsci/nowsecure-auto-security-test-plugin that uses maven to build hpi file for plugin. I am adding a jar file that is locally available and I added dependency such as:
      <dependency>
      <groupId>com.nowsecure</groupId>
      <artifactId>auto-plugin</artifactId>
      <version>0.4</version>
      <scope>system</scope>
      <systemPath>${project.basedir}/lib/auto-plugin-0.4.jar</systemPath>
      </dependency>

       

      But that jar file is not included in the hpi file despite adding it to target/dist/lib folder. Can you suggest best way to add this dependency so that it's included in the hpi file.

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          TBH I am against having such kind of dependencies in Jenkins. It causes a number of issues in dependency scan tools. What does block you from just deploying the library to Maven Central.

          CC Daniel Beck, you might be interested

          Show
          oleg_nenashev Oleg Nenashev added a comment - TBH I am against having such kind of dependencies in Jenkins. It causes a number of issues in dependency scan tools. What does block you from just deploying the library to Maven Central. CC Daniel Beck , you might be interested

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nowsecure jeff fairman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: