# I want to pull the source code and compile it locally. install jenkins war

**URL:** <https://community.jenkins.io/t/i-want-to-pull-the-source-code-and-compile-it-locally-install-jenkins-war/19196>\
**Category:** Using Jenkins\
**Created:** [September 6, 2024, 9:32am UTC](https://community.jenkins.io/t/i-want-to-pull-the-source-code-and-compile-it-locally-install-jenkins-war/19196 "2024-09-06T09:32:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![920526640](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/920526640/32/5378_2.png) [@920526640](https://community.jenkins.io/u/920526640)\
**Post date:** [September 6, 2024, 9:32am UTC](https://community.jenkins.io/t/i-want-to-pull-the-source-code-and-compile-it-locally-install-jenkins-war/19196/1 "2024-09-06T09:32:21Z")

</div>

Because we can’t upgrade jdk17，I use version 2.442 to incorporate the commit that fixes the vulnerability.  
I want to pull the source code and compile the install jenkins war locally. However, the install error message is org.apache.maven.plugins.enforcer.RequireExtensionVersion.

---

<div class="post-metadata">

**Author:** ![920526640](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/920526640/32/5378_2.png) [@920526640](https://community.jenkins.io/u/920526640)\
**Post date:** [September 6, 2024, 9:33am UTC](https://community.jenkins.io/t/i-want-to-pull-the-source-code-and-compile-it-locally-install-jenkins-war/19196/2 "2024-09-06T09:33:45Z")

</div>

I use apache-maven-3.6.0

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [September 6, 2024, 11:15am UTC](https://community.jenkins.io/t/i-want-to-pull-the-source-code-and-compile-it-locally-install-jenkins-war/19196/3 "2024-09-06T11:15:02Z")

</div>

The latest LTS baseline 2.462.x still supports java11. And there are no know vulnerabilities reported for it. So why built Jenkins on your own?  
You will probably need a new maven version, try the latest 3.9.x

---

<div class="post-metadata">

**Author:** ![920526640](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/920526640/32/5378_2.png) [@920526640](https://community.jenkins.io/u/920526640)\
**Post date:** [September 9, 2024, 2:08am UTC](https://community.jenkins.io/t/i-want-to-pull-the-source-code-and-compile-it-locally-install-jenkins-war/19196/4 "2024-09-09T02:08:30Z")

</div>

> [@mawinter69](#):
>
> 2.462.x

thank u ,i try to use 2.462.x
