1
Jenkinsの "Plugin tutorial"ページにプラグインをビルドするには、Maven設定(Setting Up Environmentセクション)を編集する必要があります。 Mavenの設定を変更するのではなく、POMファイルを編集したり、代わりにこのようなことをすることはできますか?Jenkinsのプラグインビルドの設定
ありがとうございます!
Jenkinsの "Plugin tutorial"ページにプラグインをビルドするには、Maven設定(Setting Up Environmentセクション)を編集する必要があります。 Mavenの設定を変更するのではなく、POMファイルを編集したり、代わりにこのようなことをすることはできますか?Jenkinsのプラグインビルドの設定
ありがとうございます!
pom.xmlも変更できます。例えば、
<?xml version="1.0" encoding="UTF-8" ?>
<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>
<!-- Baseline Jenkins version you use to build and test the plugin. Users
must have this version or newer to run. -->
<version>1.589</version>
<relativePath />
</parent>
<groupId>com.xxx.xxx</groupId>
<artifactId>foo</artifactId>
<version>1.0.0</version>
<packaging>hpi</packaging>
<name>bar</name>
<description>xxx xxx xxx xxx xxx</description>
<licenses>
<license>
<name>MIT License</name>
<url>http://opensource.org/licenses/MIT</url>
</license>
</licenses>
<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>
私が何を望むかのようです!私に教えてください、 '<リポジトリ>と' 'をpomファイルに記述する必要があるのでしょうか、それとも1つもなくても問題ありませんか? –