I am trying to start developing plugins for Jenkins with Mac OSX.
Firstly, when I run "mvn hpi: create", it takes a long time to upload all the files, up to several minutes per file. And this is a lot of files. Total time 4-5 hours! Why is it so slow?
Then, when I run the 'mvn package', I get this error:
[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
Why doesn't maven know about hpi? I am using Maven 3.0.4.
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> </parent> <groupId>org.sample.jenjondev</groupId> <artifactId>firstplugin</artifactId> <version>1.0-SNAPSHOT</version> <packaging>hpi</packaging> <repositories> <repository> <id>mgo-public</id> <url>http://maven.glassfish.org/content/groups/public/</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>mgo-public</id> <url>http://maven.glassfish.org/content/groups/public/</url> </pluginRepository> </pluginRepositories> </project>
I changed Jenkins <version> to the version on my computer, 1.448. How can I solve this error?
maven-3 jenkins jenkins-plugins
JonatanEkstedt
source share