Quantcast

(Maven issue) Unknown packaging: hpi

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

(Maven issue) Unknown packaging: hpi

jonjendev
I am trying to start developing plug-ins for Jenkins with Mac OSX.

FIrst, when I run 'mvn hpi:create', it takes a reeaally long time to
download all the files, up to several minutes per file. And it's a lot
of files. Total time is 4-5 hours! Why is it so slow?

Then, when I run 'mvn package' I get this error:
  ===
[~/Developer/jenkins/firstplugin]$ mvn -X -e package
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /usr/local/apache-maven/apache-maven-3.0.4
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/
Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"

[...]

[ERROR] Invalid extension descriptor for org.jenkins-ci.tools:maven-
hpi-plugin:1.74: error in opening zip file
java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:127)
        at java.util.jar.JarFile.<init>(JarFile.java:135)
        at java.util.jar.JarFile.<init>(JarFile.java:114)
        at
org.apache.maven.project.ExtensionDescriptorBuilder.build(ExtensionDescriptorBuilder.java:
65)
        at
org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm(DefaultProjectBuildingHelper.java:
280)
        at
org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled(DefaultModelBuildingListener.java:
106)
        at org.apache.maven.model.building.ModelBuildingEventCatapult
$1.fire(ModelBuildingEventCatapult.java:43)
        at
org.apache.maven.model.building.DefaultModelBuilder.fireEvent(DefaultModelBuilder.java:
1053)
        at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:
388)
        at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:
371)
        at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
560)
        at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
352)
        at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
        at
org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
585)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
234)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)

[...]

[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 @ line 12, column 14

        at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
363)
        at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
        at
org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
585)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
234)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR]
[ERROR]   The project org.sample.jenjondev:firstplugin:1.0-SNAPSHOT (/
Users/jonatanekstedt/Developer/jenkins/firstplugin/pom.xml) has 1
error
[ERROR]     Unknown packaging: hpi @ line 12, column 14
[ERROR]
[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

 ===

Why does maven not know about hpi?

This is my pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.448</version><!-- which Jenkins version is this plugin
built against? -->
  </parent>

  <groupId>org.sample.jenjondev</groupId>
  <artifactId>firstplugin</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>hpi</packaging>

  <!-- get every artifact through maven.glassfish.org, which proxies
all the artifacts that we need -->
  <repositories>
    <repository>
      <id>m.g.o-public</id>
      <url>http://maven.glassfish.org/content/groups/public/</url>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>m.g.o-public</id>
      <url>http://maven.glassfish.org/content/groups/public/</url>
    </pluginRepository>
  </pluginRepositories>
</project>


I have changed the <version> of Jenkins to the version on my computer.
How can I resolve this error?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: (Maven issue) Unknown packaging: hpi

domi@fortysix.ch
see here: https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial
you probably did not add this to your settings.xml:
<settings>
  <pluginGroups>
    <pluginGroup>org.jenkins-ci.tools</pluginGroup>
  </pluginGroups>
….
/Domi


On 25.01.2012, at 13:13, jonjendev wrote:

> I am trying to start developing plug-ins for Jenkins with Mac OSX.
>
> FIrst, when I run 'mvn hpi:create', it takes a reeaally long time to
> download all the files, up to several minutes per file. And it's a lot
> of files. Total time is 4-5 hours! Why is it so slow?
>
> Then, when I run 'mvn package' I get this error:
>  ===
> [~/Developer/jenkins/firstplugin]$ mvn -X -e package
> Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
> Maven home: /usr/local/apache-maven/apache-maven-3.0.4
> Java version: 1.6.0_29, vendor: Apple Inc.
> Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/
> Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"
>
> [...]
>
> [ERROR] Invalid extension descriptor for org.jenkins-ci.tools:maven-
> hpi-plugin:1.74: error in opening zip file
> java.util.zip.ZipException: error in opening zip file
>        at java.util.zip.ZipFile.open(Native Method)
>        at java.util.zip.ZipFile.<init>(ZipFile.java:127)
>        at java.util.jar.JarFile.<init>(JarFile.java:135)
>        at java.util.jar.JarFile.<init>(JarFile.java:114)
>        at
> org.apache.maven.project.ExtensionDescriptorBuilder.build(ExtensionDescriptorBuilder.java:
> 65)
>        at
> org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm(DefaultProjectBuildingHelper.java:
> 280)
>        at
> org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled(DefaultModelBuildingListener.java:
> 106)
>        at org.apache.maven.model.building.ModelBuildingEventCatapult
> $1.fire(ModelBuildingEventCatapult.java:43)
>        at
> org.apache.maven.model.building.DefaultModelBuilder.fireEvent(DefaultModelBuilder.java:
> 1053)
>        at
> org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:
> 388)
>        at
> org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:
> 371)
>        at
> org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
> 560)
>        at
> org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
> 352)
>        at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
>        at
> org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
> 585)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> 234)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> 156)
>        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
> 290)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> 230)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
> 409)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> 352)
>
> [...]
>
> [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 @ line 12, column 14
>
>        at
> org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
> 363)
>        at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
>        at
> org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
> 585)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> 234)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> 156)
>        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
> 290)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> 230)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
> 409)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> 352)
> [ERROR]
> [ERROR]   The project org.sample.jenjondev:firstplugin:1.0-SNAPSHOT (/
> Users/jonatanekstedt/Developer/jenkins/firstplugin/pom.xml) has 1
> error
> [ERROR]     Unknown packaging: hpi @ line 12, column 14
> [ERROR]
> [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
>
> ===
>
> Why does maven not know about hpi?
>
> This is my pom.xml:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
> www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>  <modelVersion>4.0.0</modelVersion>
>  <parent>
>    <groupId>org.jenkins-ci.plugins</groupId>
>    <artifactId>plugin</artifactId>
>    <version>1.448</version><!-- which Jenkins version is this plugin
> built against? -->
>  </parent>
>
>  <groupId>org.sample.jenjondev</groupId>
>  <artifactId>firstplugin</artifactId>
>  <version>1.0-SNAPSHOT</version>
>  <packaging>hpi</packaging>
>
>  <!-- get every artifact through maven.glassfish.org, which proxies
> all the artifacts that we need -->
>  <repositories>
>    <repository>
>      <id>m.g.o-public</id>
>      <url>http://maven.glassfish.org/content/groups/public/</url>
>    </repository>
>  </repositories>
>
>  <pluginRepositories>
>    <pluginRepository>
>      <id>m.g.o-public</id>
>      <url>http://maven.glassfish.org/content/groups/public/</url>
>    </pluginRepository>
>  </pluginRepositories>
> </project>
>
>
> I have changed the <version> of Jenkins to the version on my computer.
> How can I resolve this error?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: (Maven issue) Unknown packaging: hpi

jonjendev
Yes, I did!

On Jan 28, 10:06 am, domi <[hidden email]> wrote:

> see here:https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial
> you probably did not add this to your settings.xml:
> <settings>
>   <pluginGroups>
>     <pluginGroup>org.jenkins-ci.tools</pluginGroup>
>   </pluginGroups>
> ….
> /Domi
>
> On 25.01.2012, at 13:13,jonjendevwrote:
>
>
>
>
>
>
>
> > I am trying to start developing plug-ins for Jenkins with Mac OSX.
>
> > FIrst, when I run 'mvn hpi:create', it takes a reeaally long time to
> > download all the files, up to several minutes per file. And it's a lot
> > of files. Total time is 4-5 hours! Why is it so slow?
>
> > Then, when I run 'mvn package' I get this error:
> >  ===
> > [~/Developer/jenkins/firstplugin]$ mvn -X -e package
> > Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
> > Maven home: /usr/local/apache-maven/apache-maven-3.0.4
> > Java version: 1.6.0_29, vendor: Apple Inc.
> > Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/
> > Home
> > Default locale: en_US, platform encoding: MacRoman
> > OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"
>
> > [...]
>
> > [ERROR] Invalid extension descriptor for org.jenkins-ci.tools:maven-
> > hpi-plugin:1.74: error in opening zip file
> > java.util.zip.ZipException: error in opening zip file
> >        at java.util.zip.ZipFile.open(Native Method)
> >        at java.util.zip.ZipFile.<init>(ZipFile.java:127)
> >        at java.util.jar.JarFile.<init>(JarFile.java:135)
> >        at java.util.jar.JarFile.<init>(JarFile.java:114)
> >        at
> > org.apache.maven.project.ExtensionDescriptorBuilder.build(ExtensionDescript orBuilder.java:
> > 65)
> >        at
> > org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm(De faultProjectBuildingHelper.java:
> > 280)
> >        at
> > org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssemb led(DefaultModelBuildingListener.java:
> > 106)
> >        at org.apache.maven.model.building.ModelBuildingEventCatapult
> > $1.fire(ModelBuildingEventCatapult.java:43)
> >        at
> > org.apache.maven.model.building.DefaultModelBuilder.fireEvent(DefaultModelB uilder.java:
> > 1053)
> >        at
> > org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuild er.java:
> > 388)
> >        at
> > org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuild er.java:
> > 371)
> >        at
> > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder. java:
> > 560)
> >        at
> > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder. java:
> > 352)
> >        at
> > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
> >        at
> > org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
> > 585)
> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> > 234)
> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> > 156)
> >        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> >        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > 39)
> >        at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
> > 25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava:
> > 290)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> > 230)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher .java:
> > 409)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> > 352)
>
> > [...]
>
> > [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 @ line 12, column 14
>
> >        at
> > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder. java:
> > 363)
> >        at
> > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
> >        at
> > org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
> > 585)
> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> > 234)
> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> > 156)
> >        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> >        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > 39)
> >        at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
> > 25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava:
> > 290)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> > 230)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher .java:
> > 409)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> > 352)
> > [ERROR]
> > [ERROR]   The project org.sample.jenjondev:firstplugin:1.0-SNAPSHOT (/
> > Users/jonatanekstedt/Developer/jenkins/firstplugin/pom.xml) has 1
> > error
> > [ERROR]     Unknown packaging: hpi @ line 12, column 14
> > [ERROR]
> > [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/ProjectBuildingExcep...
>
> > ===
>
> > Why does maven not know about hpi?
>
> > This is my pom.xml:
>
> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
> >www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> > maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd">
> >  <modelVersion>4.0.0</modelVersion>
> >  <parent>
> >    <groupId>org.jenkins-ci.plugins</groupId>
> >    <artifactId>plugin</artifactId>
> >    <version>1.448</version><!-- which Jenkins version is this plugin
> > built against? -->
> >  </parent>
>
> >  <groupId>org.sample.jenjondev</groupId>
> >  <artifactId>firstplugin</artifactId>
> >  <version>1.0-SNAPSHOT</version>
> >  <packaging>hpi</packaging>
>
> >  <!-- get every artifact through maven.glassfish.org, which proxies
> > all the artifacts that we need -->
> >  <repositories>
> >    <repository>
> >      <id>m.g.o-public</id>
> >      <url>http://maven.glassfish.org/content/groups/public/</url>
> >    </repository>
> >  </repositories>
>
> >  <pluginRepositories>
> >    <pluginRepository>
> >      <id>m.g.o-public</id>
> >      <url>http://maven.glassfish.org/content/groups/public/</url>
> >    </pluginRepository>
> >  </pluginRepositories>
> > </project>
>
> > I have changed the <version> of Jenkins to the version on my computer.
> > How can I resolve this error?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: (Maven issue) Unknown packaging: hpi

vlatombe
Hello,

it looks like maven fails at opening the jar containing the plugin. It is probably corrupted on your machine. You should try to delete org\jenkins-ci\tools\maven-hpi-plugin from your local repository and try again.

Vincent


2012/2/15 jonjendev <[hidden email]>
Yes, I did!

On Jan 28, 10:06 am, domi <[hidden email]> wrote:
> see here:https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial
> you probably did not add this to your settings.xml:
> <settings>
>   <pluginGroups>
>     <pluginGroup>org.jenkins-ci.tools</pluginGroup>
>   </pluginGroups>
> ….
> /Domi
>
> On 25.01.2012, at 13:13,jonjendevwrote:
>
>
>
>
>
>
>
> > I am trying to start developing plug-ins for Jenkins with Mac OSX.
>
> > FIrst, when I run 'mvn hpi:create', it takes a reeaally long time to
> > download all the files, up to several minutes per file. And it's a lot
> > of files. Total time is 4-5 hours! Why is it so slow?
>
> > Then, when I run 'mvn package' I get this error:
> >  ===
> > [~/Developer/jenkins/firstplugin]$ mvn -X -e package
> > Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
> > Maven home: /usr/local/apache-maven/apache-maven-3.0.4
> > Java version: 1.6.0_29, vendor: Apple Inc.
> > Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/
> > Home
> > Default locale: en_US, platform encoding: MacRoman
> > OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"
>
> > [...]
>
> > [ERROR] Invalid extension descriptor for org.jenkins-ci.tools:maven-
> > hpi-plugin:1.74: error in opening zip file
> > java.util.zip.ZipException: error in opening zip file
> >        at java.util.zip.ZipFile.open(Native Method)
> >        at java.util.zip.ZipFile.<init>(ZipFile.java:127)
> >        at java.util.jar.JarFile.<init>(JarFile.java:135)
> >        at java.util.jar.JarFile.<init>(JarFile.java:114)
> >        at
> > org.apache.maven.project.ExtensionDescriptorBuilder.build(ExtensionDescript orBuilder.java:
> > 65)
> >        at
> > org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm(De faultProjectBuildingHelper.java:
> > 280)
> >        at
> > org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssemb led(DefaultModelBuildingListener.java:
> > 106)
> >        at org.apache.maven.model.building.ModelBuildingEventCatapult
> > $1.fire(ModelBuildingEventCatapult.java:43)
> >        at
> > org.apache.maven.model.building.DefaultModelBuilder.fireEvent(DefaultModelB uilder.java:
> > 1053)
> >        at
> > org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuild er.java:
> > 388)
> >        at
> > org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuild er.java:
> > 371)
> >        at
> > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder. java:
> > 560)
> >        at
> > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder. java:
> > 352)
> >        at
> > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
> >        at
> > org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
> > 585)
> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> > 234)
> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> > 156)
> >        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> >        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > 39)
> >        at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
> > 25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava:
> > 290)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> > 230)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher .java:
> > 409)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> > 352)
>
> > [...]
>
> > [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 @ line 12, column 14
>
> >        at
> > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder. java:
> > 363)
> >        at
> > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
> >        at
> > org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
> > 585)
> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> > 234)
> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> > 156)
> >        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> >        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > 39)
> >        at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
> > 25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava:
> > 290)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> > 230)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher .java:
> > 409)
> >        at
> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> > 352)
> > [ERROR]
> > [ERROR]   The project org.sample.jenjondev:firstplugin:1.0-SNAPSHOT (/
> > Users/jonatanekstedt/Developer/jenkins/firstplugin/pom.xml) has 1
> > error
> > [ERROR]     Unknown packaging: hpi @ line 12, column 14
> > [ERROR]
> > [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/ProjectBuildingExcep...
>
> > ===
>
> > Why does maven not know about hpi?
>
> > This is my pom.xml:
>
> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
> >www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> > maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd">
> >  <modelVersion>4.0.0</modelVersion>
> >  <parent>
> >    <groupId>org.jenkins-ci.plugins</groupId>
> >    <artifactId>plugin</artifactId>
> >    <version>1.448</version><!-- which Jenkins version is this plugin
> > built against? -->
> >  </parent>
>
> >  <groupId>org.sample.jenjondev</groupId>
> >  <artifactId>firstplugin</artifactId>
> >  <version>1.0-SNAPSHOT</version>
> >  <packaging>hpi</packaging>
>
> >  <!-- get every artifact through maven.glassfish.org, which proxies
> > all the artifacts that we need -->
> >  <repositories>
> >    <repository>
> >      <id>m.g.o-public</id>
> >      <url>http://maven.glassfish.org/content/groups/public/</url>
> >    </repository>
> >  </repositories>
>
> >  <pluginRepositories>
> >    <pluginRepository>
> >      <id>m.g.o-public</id>
> >      <url>http://maven.glassfish.org/content/groups/public/</url>
> >    </pluginRepository>
> >  </pluginRepositories>
> > </project>
>
> > I have changed the <version> of Jenkins to the version on my computer.
> > How can I resolve this error?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: (Maven issue) Unknown packaging: hpi

stephenconnolly
Before he goes deleting it, he might want to have a peek at it with e.g. less

I suspect it might be HTML, probably explaining why that file was not
downloaded correctly ;-)

On 17 February 2012 08:38, Vincent Latombe <[hidden email]> wrote:

> Hello,
>
> it looks like maven fails at opening the jar containing the plugin. It is
> probably corrupted on your machine. You should try to delete
> org\jenkins-ci\tools\maven-hpi-plugin from your local repository and try
> again.
>
> Vincent
>
>
>
> 2012/2/15 jonjendev <[hidden email]>
>>
>> Yes, I did!
>>
>> On Jan 28, 10:06 am, domi <[hidden email]> wrote:
>> > see here:https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial
>> > you probably did not add this to your settings.xml:
>> > <settings>
>> >   <pluginGroups>
>> >     <pluginGroup>org.jenkins-ci.tools</pluginGroup>
>> >   </pluginGroups>
>> > ….
>> > /Domi
>> >
>> > On 25.01.2012, at 13:13,jonjendevwrote:
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > I am trying to start developing plug-ins for Jenkins with Mac OSX.
>> >
>> > > FIrst, when I run 'mvn hpi:create', it takes a reeaally long time to
>> > > download all the files, up to several minutes per file. And it's a lot
>> > > of files. Total time is 4-5 hours! Why is it so slow?
>> >
>> > > Then, when I run 'mvn package' I get this error:
>> > >  ===
>> > > [~/Developer/jenkins/firstplugin]$ mvn -X -e package
>> > > Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
>> > > Maven home: /usr/local/apache-maven/apache-maven-3.0.4
>> > > Java version: 1.6.0_29, vendor: Apple Inc.
>> > > Java home:
>> > > /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/
>> > > Home
>> > > Default locale: en_US, platform encoding: MacRoman
>> > > OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"
>> >
>> > > [...]
>> >
>> > > [ERROR] Invalid extension descriptor for org.jenkins-ci.tools:maven-
>> > > hpi-plugin:1.74: error in opening zip file
>> > > java.util.zip.ZipException: error in opening zip file
>> > >        at java.util.zip.ZipFile.open(Native Method)
>> > >        at java.util.zip.ZipFile.<init>(ZipFile.java:127)
>> > >        at java.util.jar.JarFile.<init>(JarFile.java:135)
>> > >        at java.util.jar.JarFile.<init>(JarFile.java:114)
>> > >        at
>> > >
>> > > org.apache.maven.project.ExtensionDescriptorBuilder.build(ExtensionDescript
>> > > orBuilder.java:
>> > > 65)
>> > >        at
>> > >
>> > > org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm(De
>> > > faultProjectBuildingHelper.java:
>> > > 280)
>> > >        at
>> > >
>> > > org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssemb
>> > > led(DefaultModelBuildingListener.java:
>> > > 106)
>> > >        at org.apache.maven.model.building.ModelBuildingEventCatapult
>> > > $1.fire(ModelBuildingEventCatapult.java:43)
>> > >        at
>> > >
>> > > org.apache.maven.model.building.DefaultModelBuilder.fireEvent(DefaultModelB
>> > > uilder.java:
>> > > 1053)
>> > >        at
>> > >
>> > > org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuild
>> > > er.java:
>> > > 388)
>> > >        at
>> > >
>> > > org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuild
>> > > er.java:
>> > > 371)
>> > >        at
>> > >
>> > > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.
>> > > java:
>> > > 560)
>> > >        at
>> > >
>> > > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.
>> > > java:
>> > > 352)
>> > >        at
>> > > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
>> > >        at
>> > >
>> > > org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
>> > > 585)
>> > >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
>> > > 234)
>> > >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
>> > > 156)
>> > >        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>> > >        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>> > >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > >        at
>> > >
>> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>> > > 39)
>> > >        at
>> > >
>> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>> > > l.java:
>> > > 25)
>> > >        at java.lang.reflect.Method.invoke(Method.java:597)
>> > >        at
>> > >
>> > > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j
>> > > ava:
>> > > 290)
>> > >        at
>> > >
>> > > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
>> > > 230)
>> > >        at
>> > >
>> > > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher
>> > > .java:
>> > > 409)
>> > >        at
>> > > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>> > > 352)
>> >
>> > > [...]
>> >
>> > > [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 @ line 12, column 14
>> >
>> > >        at
>> > >
>> > > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.
>> > > java:
>> > > 363)
>> > >        at
>> > > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
>> > >        at
>> > >
>> > > org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
>> > > 585)
>> > >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
>> > > 234)
>> > >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
>> > > 156)
>> > >        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>> > >        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>> > >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > >        at
>> > >
>> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>> > > 39)
>> > >        at
>> > >
>> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>> > > l.java:
>> > > 25)
>> > >        at java.lang.reflect.Method.invoke(Method.java:597)
>> > >        at
>> > >
>> > > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j
>> > > ava:
>> > > 290)
>> > >        at
>> > >
>> > > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
>> > > 230)
>> > >        at
>> > >
>> > > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher
>> > > .java:
>> > > 409)
>> > >        at
>> > > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>> > > 352)
>> > > [ERROR]
>> > > [ERROR]   The project org.sample.jenjondev:firstplugin:1.0-SNAPSHOT (/
>> > > Users/jonatanekstedt/Developer/jenkins/firstplugin/pom.xml) has 1
>> > > error
>> > > [ERROR]     Unknown packaging: hpi @ line 12, column 14
>> > > [ERROR]
>> > > [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/ProjectBuildingExcep...
>> >
>> > > ===
>> >
>> > > Why does maven not know about hpi?
>> >
>> > > This is my pom.xml:
>> >
>> > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
>> > >www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
>> > > maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd">
>> > >  <modelVersion>4.0.0</modelVersion>
>> > >  <parent>
>> > >    <groupId>org.jenkins-ci.plugins</groupId>
>> > >    <artifactId>plugin</artifactId>
>> > >    <version>1.448</version><!-- which Jenkins version is this plugin
>> > > built against? -->
>> > >  </parent>
>> >
>> > >  <groupId>org.sample.jenjondev</groupId>
>> > >  <artifactId>firstplugin</artifactId>
>> > >  <version>1.0-SNAPSHOT</version>
>> > >  <packaging>hpi</packaging>
>> >
>> > >  <!-- get every artifact through maven.glassfish.org, which proxies
>> > > all the artifacts that we need -->
>> > >  <repositories>
>> > >    <repository>
>> > >      <id>m.g.o-public</id>
>> > >      <url>http://maven.glassfish.org/content/groups/public/</url>
>> > >    </repository>
>> > >  </repositories>
>> >
>> > >  <pluginRepositories>
>> > >    <pluginRepository>
>> > >      <id>m.g.o-public</id>
>> > >      <url>http://maven.glassfish.org/content/groups/public/</url>
>> > >    </pluginRepository>
>> > >  </pluginRepositories>
>> > > </project>
>> >
>> > > I have changed the <version> of Jenkins to the version on my computer.
>> > > How can I resolve this error?
>
>
Loading...