【发布时间】:2012-02-18 16:13:05
【问题描述】:
我正在尝试开始使用 Mac OSX 为 Jenkins 开发插件。
首先,当我运行“mvn hpi:create”时,需要很长时间才能 下载所有文件,每个文件最多几分钟。而且很多 的文件。总时间4-5小时!为什么这么慢?
然后,当我运行“mvn package”时,我收到了这个错误:
[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
为什么maven不知道hpi?我使用 Maven 3.0.4。
这是我的 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>
<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>
我已将 Jenkins 的
【问题讨论】:
标签: jenkins maven-3 jenkins-plugins