# Building Jenkins Plugins: generating licenses.xml

**URL:** <https://community.jenkins.io/t/building-jenkins-plugins-generating-licenses-xml/1728>\
**Category:** Code\
**Created:** [March 4, 2022, 8:50pm UTC](https://community.jenkins.io/t/building-jenkins-plugins-generating-licenses-xml/1728 "2022-03-04T20:50:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bozimmerman](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/bozimmerman/32/1076_2.png) [@bozimmerman](https://community.jenkins.io/u/bozimmerman)\
**Post date:** [March 4, 2022, 8:50pm UTC](https://community.jenkins.io/t/building-jenkins-plugins-generating-licenses-xml/1728/1 "2022-03-04T20:50:17Z")

</div>

Hello all,  
My Jenkins plugin is using a pretty standard pom.xml to create the HPI file, but I don’t see a license.xml being created or placed into WEB-INF/.

I suspect this is supposed to be automatic, as the file is automatically requested from the Jenkins Plugin Management page.

Am I missing something obvious?  
Thanks,  
Bo Zimmerman

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [March 4, 2022, 10:26pm UTC](https://community.jenkins.io/t/building-jenkins-plugins-generating-licenses-xml/1728/2 "2022-03-04T22:26:28Z")

</div>

What’s license.xml and why are you expecting it in WEB-INF?

---

<div class="post-metadata">

**Author:** ![bozimmerman](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/bozimmerman/32/1076_2.png) [@bozimmerman](https://community.jenkins.io/u/bozimmerman)\
**Post date:** [March 4, 2022, 10:34pm UTC](https://community.jenkins.io/t/building-jenkins-plugins-generating-licenses-xml/1728/3 "2022-03-04T22:34:33Z")

</div>

Hi Halkeye!

licenses.xml is an xml document which contains license information about third-party libraries used in the building and execution of a Jenkins plugin.

licenses.xml is required for certain plugin information features in Jenkins to work properly. For example, log into your Jenkins server, and from the Dashboard, select “Manage Jenkins” from the left menu, and then “Manage Plugins” from the center page. Now, you should see the “Plugin Manager” page. Click on the “Installed” tab, and you will see a big list of installed plugins. Now click on the _version number_ of any plugin. The page that pops up: THAT is built from the licenses.xml.

I expect it to be in WEB-INF because

1. That appears to be where the Jenkins server looks for it.
2. That appears to be where other Jenkins plugins have their licenses.xml file located, when I inspect the contents of their “hpi” file distributions. I just don’t know how to get one into mine in a kosher fashion. Right now, I’m having to write the file by hand, and insert it into the “hpi” package after the build completes.

LMK if I can clarify any further, and thanks for your question.

- Bo

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [March 5, 2022, 12:42am UTC](https://community.jenkins.io/t/building-jenkins-plugins-generating-licenses-xml/1728/4 "2022-03-05T00:42:12Z")

</div>

Okay I put it in the wrong category the first time. I moved it to code.

Hopefully someone like @jglick might know more about this.

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [March 5, 2022, 2:56pm UTC](https://community.jenkins.io/t/building-jenkins-plugins-generating-licenses-xml/1728/5 "2022-03-05T14:56:02Z")

</div>

> [@bozimmerman](#):
>
> Am I missing something obvious?

Try creating a new plugin with the Jenkins plugin archetype as described at

> **[Create a Plugin](https://www.jenkins.io/doc/developer/tutorial/create/)**
>
> Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software

Compare the pom.xml from the archetype with your pom.xml. I suspect you’re missing some items or may be based on an outdated version of the parent pom.
