You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you build with Maven < 3.9.6, you will get the following cryptic error:
Unknown packaging: hpi @ org.jenkins-ci.plugins:PLUGIN:${revision}.${changelist}, /pom.xml, line 13, column 14
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unknown packaging: hpi @ org.jenkins-ci.plugins:PLUGIN:${revision}.${changelist}, <PATH_TO_POM>/pom.xml, line 13, column 14
@
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] Unknown packaging: hpi @ org.jenkins-ci.plugins:PLUGIN:${revision}.${changelist}, <PATH_TO_POM>/pom.xml, line 13, column 14
at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:389)
at org.apache.maven.graph.DefaultGraphBuilder.collectProjects (DefaultGraphBuilder.java:349)
at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor (DefaultGraphBuilder.java:340)
at org.apache.maven.graph.DefaultGraphBuilder.build (DefaultGraphBuilder.java:76)
at org.apache.maven.DefaultMaven.buildGraph (DefaultMaven.java:448)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:197)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR] The project org.jenkins-ci.plugins:PLUGIN:4.999999-SNAPSHOT (<PATH_TO_POM>/pom.xml) has 1 error
[ERROR] Unknown packaging: hpi @ org.jenkins-ci.plugins:PLUGIN:${revision}.${changelist}, <PATH_TO_POM>/pom.xml, line 13, column 14
[ERROR]
[ERROR]
<PATH_TO_POM>/pom.xml, line 13, column 14 is <packaging>hpi</packaging>.
Describe your use-case which is not covered by existing documentation.
Documentation
Highlight to use at least Maven 3.9.6 when developing this plugin.
Background
With the new parent
Maven 3.9.6 is required
If you build with Maven < 3.9.6, you will get the following cryptic error:
Unknown packaging: hpi @ org.jenkins-ci.plugins:PLUGIN:${revision}.${changelist}, /pom.xml, line 13, column 14
<PATH_TO_POM>/pom.xml, line 13, column 14
is<packaging>hpi</packaging>
.Source Code
I then had a look at the source code and saw
Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.
No response
Are you interested in contributing to the documentation?
No response
The text was updated successfully, but these errors were encountered: