# Failing to find the hpi packaging type

**URL:** <https://community.jenkins.io/t/failing-to-find-the-hpi-packaging-type/11002>\
**Category:** Code\
**Created:** [November 28, 2023, 3:06pm UTC](https://community.jenkins.io/t/failing-to-find-the-hpi-packaging-type/11002 "2023-11-28T15:06:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joris](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@joris](https://community.jenkins.io/u/joris)\
**Post date:** [November 28, 2023, 3:06pm UTC](https://community.jenkins.io/t/failing-to-find-the-hpi-packaging-type/11002/1 "2023-11-28T15:06:27Z")

</div>

I am trying to build a Jenkins plugin.

What I already did was creating a Maven project from the hello-world-plugin archetype.

But when I do **mvn verify** , it gives me the following error:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/8/8dd57c18aefddef665f7465eb75b0244c63bc4e3.png)

How can I point it to the hpi package?

---

<div class="post-metadata">

**Author:** ![poddingue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/poddingue/32/985_2.png) [@poddingue](https://community.jenkins.io/u/poddingue)\
**Post date:** [November 29, 2023, 9:29am UTC](https://community.jenkins.io/t/failing-to-find-the-hpi-packaging-type/11002/2 "2023-11-29T09:29:10Z")

</div>

Hello @joris and welcome to this community. 👋

Please, next time you want to show us logs, do a textual copy and paste, not a screenshot. 🙏

I had that kind of error when trying to build a very old plugin with a recent version of Maven.  
Could you please show us your `pom.xml`?

---

<div class="post-metadata">

**Author:** ![markix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markix/32/6578_2.png) [@markix](https://community.jenkins.io/u/markix)\
**Post date:** [January 1, 2024, 2:01pm UTC](https://community.jenkins.io/t/failing-to-find-the-hpi-packaging-type/11002/3 "2024-01-01T14:01:14Z")

</div>

hey gay, i see same error. i using maven3.9.6(use new empty repository) generate new empty plugin.  
`$ mvn archetype:generate -B -DarchetypeGroupId=io.jenkins.archetypes -DarchetypeArtifactId=empty-plugin -DhostOnJenkinsGitHub=true -DarchetypeVersion=1.22 -DartifactId=somefeature`  
`$ cd somefeature`  
`$ mvn verify`

```sh
[INFO] Scanning for projects...
Downloading from repo.jenkins-ci.org: https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/plugin/4.75/plugin-4.75.pom
Downloaded from repo.jenkins-ci.org: https://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/plugin/4.75/plugin-4.75.pom (54 kB at 18 kB/s)
Downloading from repo.jenkins-ci.org: https://repo.jenkins-ci.org/public/org/jenkins-ci/tools/maven-hpi-plugin/3.50/maven-hpi-plugin-3.50.pom
...(so more)
Downloaded from central: https://repo.maven.apache.org/maven2/org/mockito/mockito-bom/5.6.0/mockito-bom-5.6.0.pom (3.0 kB at 16 kB/s)
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unknown packaging: hpi @ io.jenkins.plugins:somefeature:${revision}${changelist}, E:\WorkSpace\ideaIC\test\somefeature\pom.xml, line 13, column 14
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project io.jenkins.plugins:somefeature:1.0-SNAPSHOT (E:\WorkSpace\ideaIC\test\somefeature\pom.xml) has 1 error
[ERROR] Unknown packaging: hpi @ io.jenkins.plugins:somefeature:${revision}${changelist}, E:\WorkSpace\ideaIC\test\somefeature\pom.xml, line 13, column 14
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

```

have any idea?

---

<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:** [January 1, 2024, 2:48pm UTC](https://community.jenkins.io/t/failing-to-find-the-hpi-packaging-type/11002/4 "2024-01-01T14:48:30Z")

</div>

I believe this is cross-posted from

> <https://github.com/jenkinsci/archetypes/issues/684#issuecomment-1873356334>
>
> \### Jenkins and plugins versions report
> 
> \<details\>
> \<summary\>Environment\</summ…ary\>
> 
>   
> \`\`\`text
> Paste the output here
> \`\`\`
> 
> \</details\>
> 
> 
> \### What Operating System are you using (both controller, and any agents involved in the problem)?
> 
> window10 
> maven3.4.0
> 
> \### Reproduction steps
> 
> 1. mvn archetype:generate -B -DarchetypeGroupId=io.jenkins.archetypes -DarchetypeArtifactId=empty-plugin -DhostOnJenkinsGitHub=true -DarchetypeVersion=1.20 -DartifactId=somefeature
> 2. cd somefeature
> 3. mvn verify
> 
> \### Expected Results
> 
> success
> 
> \### Actual Results
> 
> \[ERROR\] The build could not read 1 project -\> \[Help 1\]
> \[ERROR\]
> \[ERROR\] The project io.jenkins.plugins:somefeature:1.0-SNAPSHOT (E:\\jenkins-my-plug\\somefeature\\pom.xml) has 2 errors
> \[ERROR\] Malformed POM E:\\jenkins-my-plug\\somefeature\\pom.xml: Unknown attribute 'child.scm.url.inherit.append.path' for tag 'scm' (position: START\_TAG seen ...rit.append.path="false" child.scm.url.inherit.append.path="false"\>... @22:157) @ E:\\jenkins-my-plug\\somefeature\\pom.xml, line 22, column 157 -\> \[Help 2\]
> \[ERROR\] Unknown packaging: hpi @ io.jenkins.plugins:somefeature1:${revision}${changelist}, E:\\jenkins-my-plug\\somefeature\\pom.xml, line 13, column 14
> \[ERROR\]
> 
> 
> \### Anything else?
> 
> \_No response\_
> 
> \### Are you interested in contributing a fix?
> 
> \_No response\_

If that’s not the case, then it may be that the same problem is happening here. In that case, the developer was trying to use Java 8 to create a new Jenkins plugin. The Jenkins project stopped supporting Java 8 for development of new plugins over a year ago.

---

<div class="post-metadata">

**Author:** ![markix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markix/32/6578_2.png) [@markix](https://community.jenkins.io/u/markix)\
**Post date:** [January 2, 2024, 3:19pm UTC](https://community.jenkins.io/t/failing-to-find-the-hpi-packaging-type/11002/5 "2024-01-02T15:19:47Z")

</div>

yes, is me. sorry for enfore your double time.

Repeat my results in this:  
archetype 1.22 + Java 17 work well.  
archetype 1.7 + Java 8 work well.  
No continue attempts.
