2021-04-18 02:01:54 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2009-02-07 04:05:24 +08:00
|
|
|
<!--
|
|
|
|
The MIT License
|
|
|
|
|
2009-07-09 04:11:20 +08:00
|
|
|
Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Stephen Connolly, Tom Huybrechts, Yahoo! Inc.
|
2009-02-07 04:05:24 +08:00
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
-->
|
2006-11-07 03:53:54 +08:00
|
|
|
<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">
|
2006-11-06 05:16:01 +08:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2011-07-05 04:34:45 +08:00
|
|
|
|
2006-11-06 05:16:01 +08:00
|
|
|
<parent>
|
2011-01-31 05:18:06 +08:00
|
|
|
<groupId>org.jenkins-ci.main</groupId>
|
2018-02-26 23:15:47 +08:00
|
|
|
<artifactId>jenkins-parent</artifactId>
|
2022-11-02 07:47:59 +08:00
|
|
|
<version>${revision}${changelist}</version>
|
2006-11-06 05:16:01 +08:00
|
|
|
</parent>
|
2011-07-05 04:34:45 +08:00
|
|
|
|
2011-01-31 05:27:59 +08:00
|
|
|
<artifactId>jenkins-war</artifactId>
|
2006-11-06 05:16:01 +08:00
|
|
|
<packaging>war</packaging>
|
2011-07-05 04:34:45 +08:00
|
|
|
|
2011-01-31 05:18:06 +08:00
|
|
|
<name>Jenkins war</name>
|
2014-12-26 01:16:41 +08:00
|
|
|
<description>Creates a war file. Also includes additional static web resources, such as images, CSS, JavaScript, and some HTML files.</description>
|
2021-08-06 03:18:01 +08:00
|
|
|
<url>https://github.com/jenkinsci/jenkins</url>
|
2011-07-05 04:34:45 +08:00
|
|
|
|
|
|
|
<properties>
|
|
|
|
<JENKINS_HOME>${basedir}/work</JENKINS_HOME>
|
2021-12-31 23:52:48 +08:00
|
|
|
<!-- context path during test -->
|
|
|
|
<contextPath>/jenkins</contextPath>
|
|
|
|
<!-- HTTP listener host/interface -->
|
|
|
|
<host>localhost</host>
|
|
|
|
<!-- HTTP listener port -->
|
|
|
|
<port>8080</port>
|
2022-10-28 22:44:34 +08:00
|
|
|
<node.version>18.12.0</node.version>
|
2022-07-21 14:37:01 +08:00
|
|
|
<!-- frontend-maven-plugin will install this Yarn version as bootstrap, then hand over control to Yarn Berry. -->
|
2022-07-04 01:06:37 +08:00
|
|
|
<yarn.version>1.22.19</yarn.version>
|
2022-07-21 14:37:01 +08:00
|
|
|
<!-- maven-antrun-plugin will download this Yarn version. -->
|
2022-10-10 23:50:48 +08:00
|
|
|
<yarn-berry.version>3.2.4</yarn-berry.version>
|
|
|
|
<yarn-berry.sha256sum>ca1a380d840c676152fbf8635a82d838113fe77e1665466699a4e106df4930d2</yarn-berry.sha256sum>
|
2011-07-05 04:34:45 +08:00
|
|
|
</properties>
|
|
|
|
|
2019-08-09 17:08:39 +08:00
|
|
|
<dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jenkins-ci.main</groupId>
|
|
|
|
<artifactId>jenkins-bom</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<type>pom</type>
|
|
|
|
<scope>import</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</dependencyManagement>
|
|
|
|
|
2011-07-05 04:34:45 +08:00
|
|
|
<dependencies>
|
2011-07-05 05:12:52 +08:00
|
|
|
<dependency>
|
2022-03-13 02:06:05 +08:00
|
|
|
<groupId>${project.groupId}</groupId>
|
|
|
|
<artifactId>cli</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${project.groupId}</groupId>
|
|
|
|
<artifactId>remoting</artifactId>
|
|
|
|
<!-- specified in the parent -->
|
2011-07-05 05:12:52 +08:00
|
|
|
</dependency>
|
2011-07-05 04:34:45 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jenkins-ci.main</groupId>
|
|
|
|
<artifactId>jenkins-core</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<exclusions>
|
2022-03-13 02:06:05 +08:00
|
|
|
<exclusion>
|
|
|
|
<groupId>com.google.code.findbugs</groupId>
|
|
|
|
<artifactId>jsr305</artifactId>
|
|
|
|
</exclusion>
|
2011-07-05 04:34:45 +08:00
|
|
|
<!--
|
|
|
|
jars that are not needed in war. most of the exclusions should happen in the core, to make IDEs happy, not here.
|
|
|
|
-->
|
|
|
|
<exclusion>
|
2022-08-03 02:26:04 +08:00
|
|
|
<groupId>jakarta.servlet.jsp</groupId>
|
|
|
|
<artifactId>jakarta.servlet.jsp-api</artifactId>
|
2011-07-05 04:34:45 +08:00
|
|
|
</exclusion>
|
2012-08-04 05:19:01 +08:00
|
|
|
<!-- Stapler 1.195 fails to declare this as optional, and the 1.1 version lacks a license: -->
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.kohsuke.metainf-services</groupId>
|
2021-12-31 23:52:48 +08:00
|
|
|
<artifactId>metainf-services</artifactId>
|
2012-08-04 05:19:01 +08:00
|
|
|
</exclusion>
|
2011-07-05 04:34:45 +08:00
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2022-08-03 02:26:04 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jenkins-ci.main</groupId>
|
|
|
|
<artifactId>websocket-jetty10</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
2022-07-07 23:23:47 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jenkins-ci.main</groupId>
|
|
|
|
<artifactId>websocket-jetty9</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
2012-02-11 02:51:22 +08:00
|
|
|
<dependency>
|
|
|
|
<!--
|
|
|
|
We bundle slf4j binding since we got some components (sshd for example)
|
|
|
|
that uses slf4j.
|
|
|
|
|
|
|
|
The problem with not shipping any binding in the war is that if the
|
|
|
|
servlet container does use slf4j in itself, then we got a classloader
|
|
|
|
constraint violation (see JENKINS-12334) as we try to load StaticLoggerBinder
|
|
|
|
which resides in the binding jar (this jar would be from container implementation,
|
|
|
|
which relies on slf4j api in the container, when we have our own slf4j API jar
|
|
|
|
statically depending on the binding jar.)
|
|
|
|
|
|
|
|
We also get tickets like JENKINS-12650 for not reporting logs at all
|
|
|
|
(although this is a non-fatal problem.)
|
|
|
|
|
|
|
|
The downside of adding a jar is that we can potentially get "multiple binding jar"
|
|
|
|
warning like http://www.slf4j.org/codes.html, but that's at least non-fatal.
|
|
|
|
-->
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-jdk14</artifactId>
|
|
|
|
</dependency>
|
2011-07-05 04:34:45 +08:00
|
|
|
<!-- offline profiler API when we need it -->
|
2012-02-11 02:51:22 +08:00
|
|
|
<!--dependency
|
2011-07-05 04:34:45 +08:00
|
|
|
<groupId>com.yourkit.api</groupId>
|
|
|
|
<artifactId>yjp</artifactId>
|
|
|
|
<version>dontcare</version>
|
|
|
|
<scope>system</scope>
|
|
|
|
<systemPath>/usr/local/yjp/lib/yjp.jar</systemPath>
|
|
|
|
</dependency-->
|
2022-03-13 02:06:05 +08:00
|
|
|
<dependency>
|
|
|
|
<!--
|
|
|
|
not actually used by test but used by dependency plugin to include it inside the war.
|
|
|
|
-->
|
|
|
|
<groupId>org.jenkins-ci</groupId>
|
|
|
|
<artifactId>winstone</artifactId>
|
|
|
|
<!-- Make sure to keep jetty-maven-plugin elsewhere in this file in sync with the Jetty release in Winstone -->
|
2022-10-10 23:49:54 +08:00
|
|
|
<version>${winstone.version}</version>
|
2022-03-13 02:06:05 +08:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2022-07-03 00:10:20 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2011-07-05 04:34:45 +08:00
|
|
|
</dependencies>
|
|
|
|
|
2006-11-06 05:16:01 +08:00
|
|
|
<build>
|
2011-01-31 05:27:59 +08:00
|
|
|
<finalName>jenkins</finalName>
|
2006-11-06 05:16:01 +08:00
|
|
|
<plugins>
|
2022-07-03 00:10:20 +08:00
|
|
|
<!-- TODO When Java 8 usage declines to a terminal level, this can be deleted. -->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>display-info</id>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireJavaVersion>
|
|
|
|
<version>1.8</version>
|
|
|
|
</requireJavaVersion>
|
|
|
|
<enforceBytecodeVersion>
|
|
|
|
<maxJdkVersion>1.8</maxJdkVersion>
|
|
|
|
<excludes>
|
2022-10-31 01:34:37 +08:00
|
|
|
<exclude>org.antlr:antlr4</exclude>
|
2022-08-03 02:26:04 +08:00
|
|
|
<exclude>org.jenkins-ci:commons-jelly</exclude>
|
2022-09-11 01:54:11 +08:00
|
|
|
<exclude>org.jenkins-ci:task-reactor</exclude>
|
2022-07-03 00:10:20 +08:00
|
|
|
<exclude>org.jenkins-ci.main:cli</exclude>
|
|
|
|
<exclude>org.jenkins-ci.main:jenkins-core</exclude>
|
2022-07-30 22:14:41 +08:00
|
|
|
<exclude>org.jenkins-ci.main:remoting</exclude>
|
2022-07-07 23:23:47 +08:00
|
|
|
<exclude>org.jenkins-ci.main:websocket-jetty9</exclude>
|
2022-08-03 02:26:04 +08:00
|
|
|
<exclude>org.jenkins-ci.main:websocket-jetty10</exclude>
|
2022-07-07 23:23:47 +08:00
|
|
|
<exclude>org.jenkins-ci.main:websocket-spi</exclude>
|
2022-09-09 23:11:36 +08:00
|
|
|
<exclude>org.jenkins-ci:memory-monitor</exclude>
|
2022-09-23 22:59:46 +08:00
|
|
|
<exclude>org.jvnet.winp:winp</exclude>
|
2022-08-03 02:26:04 +08:00
|
|
|
<exclude>org.kohsuke.stapler:stapler</exclude>
|
|
|
|
<exclude>org.kohsuke.stapler:stapler-groovy</exclude>
|
|
|
|
<exclude>org.kohsuke.stapler:stapler-jelly</exclude>
|
2022-07-03 00:10:20 +08:00
|
|
|
</excludes>
|
|
|
|
</enforceBytecodeVersion>
|
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<!-- JENKINS-68021: Work around JDK-8206937 by clearing the release=8 flag. -->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<source>1.8</source>
|
|
|
|
<target>1.8</target>
|
|
|
|
<testSource>1.8</testSource>
|
|
|
|
<testTarget>1.8</testTarget>
|
|
|
|
<release combine.self="override" />
|
|
|
|
<testRelease combine.self="override" />
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<source>1.8</source>
|
|
|
|
<release combine.self="override" />
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2006-11-06 05:16:01 +08:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
2011-05-19 14:58:24 +08:00
|
|
|
<!-- version specified in grandparent pom -->
|
2006-11-06 05:16:01 +08:00
|
|
|
<configuration>
|
2010-08-26 02:51:27 +08:00
|
|
|
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
|
2007-02-12 03:09:53 +08:00
|
|
|
<!-- for putting Main-Class into war -->
|
|
|
|
<archive>
|
2009-02-18 09:40:43 +08:00
|
|
|
<manifest>
|
2022-07-03 00:10:20 +08:00
|
|
|
<mainClass>executable.Main</mainClass>
|
2007-02-12 03:09:53 +08:00
|
|
|
</manifest>
|
2009-10-08 22:41:26 +08:00
|
|
|
<manifestEntries>
|
2022-04-05 00:17:18 +08:00
|
|
|
<!-- Make sure to keep the directives in core/pom.xml and test/pom.xml in sync with these. -->
|
2022-05-26 13:39:02 +08:00
|
|
|
<Add-Opens>java.base/java.lang java.base/java.io java.base/java.util java.desktop/com.sun.beans.introspect</Add-Opens>
|
2009-10-08 22:41:26 +08:00
|
|
|
<Implementation-Version>${project.version}</Implementation-Version>
|
2011-04-16 13:56:03 +08:00
|
|
|
<Hudson-Version>1.395</Hudson-Version>
|
2011-01-31 05:18:06 +08:00
|
|
|
<Jenkins-Version>${project.version}</Jenkins-Version>
|
2018-01-22 19:04:54 +08:00
|
|
|
<Remoting-Embedded-Version>${remoting.version}</Remoting-Embedded-Version>
|
|
|
|
<Remoting-Minimum-Supported-Version>${remoting.minimum.supported.version}</Remoting-Minimum-Supported-Version>
|
2009-10-08 22:41:26 +08:00
|
|
|
</manifestEntries>
|
2007-02-12 03:09:53 +08:00
|
|
|
</archive>
|
2009-10-02 09:49:31 +08:00
|
|
|
<!--outputFileNameMapping>@{artifactId}@.@{extension}@</outputFileNameMapping-->
|
2006-11-06 05:16:01 +08:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2009-10-02 09:49:31 +08:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
2011-05-19 14:58:24 +08:00
|
|
|
<!-- version specified in grandparent pom -->
|
2009-10-02 09:49:31 +08:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2011-07-05 05:12:52 +08:00
|
|
|
<id>list-dependencies</id>
|
2009-10-02 09:49:31 +08:00
|
|
|
<goals>
|
|
|
|
<goal>list</goal>
|
|
|
|
</goals>
|
2021-12-31 23:52:48 +08:00
|
|
|
<phase>generate-resources</phase>
|
2009-10-02 09:49:31 +08:00
|
|
|
<configuration>
|
2011-07-05 22:44:09 +08:00
|
|
|
<outputFile>${project.build.outputDirectory}/dependencies.txt</outputFile>
|
2009-10-02 09:49:31 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2011-07-05 22:44:09 +08:00
|
|
|
<execution>
|
|
|
|
<id>resgen</id>
|
|
|
|
<goals>
|
|
|
|
<goal>copy</goal>
|
|
|
|
</goals>
|
2021-12-31 23:52:48 +08:00
|
|
|
<phase>generate-resources</phase>
|
2011-07-05 22:44:09 +08:00
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<!-- dependencies that goes to unusual locations -->
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci</groupId>
|
|
|
|
<artifactId>winstone</artifactId>
|
2022-07-03 00:10:20 +08:00
|
|
|
<outputDirectory>${project.build.directory}/${project.build.finalName}/executable</outputDirectory>
|
2011-07-05 22:44:09 +08:00
|
|
|
<destFileName>winstone.jar</destFileName>
|
|
|
|
</artifactItem>
|
2016-01-19 23:13:33 +08:00
|
|
|
</artifactItems>
|
|
|
|
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/plugins</outputDirectory>
|
|
|
|
<stripVersion>true</stripVersion>
|
|
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
|
|
<overWriteReleases>false</overWriteReleases>
|
|
|
|
<overWriteSnapshots>true</overWriteSnapshots>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>detached-plugins</id>
|
|
|
|
<goals>
|
|
|
|
<goal>copy</goal>
|
|
|
|
</goals>
|
2021-12-31 23:52:48 +08:00
|
|
|
<phase>generate-resources</phase>
|
2016-01-19 23:13:33 +08:00
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<!--
|
2021-04-18 02:01:54 +08:00
|
|
|
Detached plugins and their dependencies - detached plugins that used to be bundled plugins
|
2016-01-19 23:13:33 +08:00
|
|
|
-->
|
2017-05-13 18:01:10 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>display-url-api</artifactId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<version>2.3.6</version>
|
2017-05-13 18:01:10 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2012-11-22 23:07:51 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>mailer</artifactId>
|
2022-01-28 19:03:08 +08:00
|
|
|
<version>408.vd726a_1130320</version>
|
2012-11-22 23:07:51 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2013-10-05 04:27:15 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>matrix-auth</artifactId>
|
2021-05-14 00:08:04 +08:00
|
|
|
<version>2.6.6</version>
|
2013-10-05 04:27:15 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2014-01-04 06:20:01 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>windows-slaves</artifactId>
|
2022-05-20 00:10:44 +08:00
|
|
|
<version>1.8.1</version>
|
2014-01-04 06:20:01 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2014-02-17 23:45:07 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>antisamy-markup-formatter</artifactId>
|
2014-04-15 04:55:02 +08:00
|
|
|
<version>1.1</version>
|
2014-02-17 23:45:07 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2014-04-15 09:10:17 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>matrix-project</artifactId>
|
2022-01-28 19:03:08 +08:00
|
|
|
<version>1.20</version>
|
2015-02-05 03:58:22 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>script-security</artifactId>
|
2022-10-22 23:47:28 +08:00
|
|
|
<version>1189.vb_a_b_7c8fd5fde</version>
|
2014-04-15 09:10:17 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2014-08-12 01:45:23 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<version>1119.1121.vc43d0fc45561</version>
|
2019-08-02 01:54:39 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
|
|
|
<!-- dependency of junit -->
|
|
|
|
<groupId>org.jenkins-ci.plugins.workflow</groupId>
|
|
|
|
<artifactId>workflow-api</artifactId>
|
2022-10-22 23:47:28 +08:00
|
|
|
<version>1164.v760c223ddb_32</version>
|
2019-08-02 01:54:39 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
2022-01-28 19:03:08 +08:00
|
|
|
<!-- dependency of junit -->
|
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
|
|
|
<artifactId>plugin-util-api</artifactId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<version>2.16.0</version>
|
2022-01-28 19:03:08 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
|
|
|
<!-- dependency of junit -->
|
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<artifactId>bootstrap5-api</artifactId>
|
|
|
|
<version>5.1.3-6</version>
|
2022-01-28 19:03:08 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
|
|
|
<!-- dependency of junit -->
|
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
|
|
|
<artifactId>checks-api</artifactId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<version>1.7.4</version>
|
2022-01-28 19:03:08 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2022-06-28 03:14:19 +08:00
|
|
|
|
2022-01-28 19:03:08 +08:00
|
|
|
<artifactItem>
|
2022-06-28 03:14:19 +08:00
|
|
|
<!-- dependency of checks-api -->
|
|
|
|
<groupId>org.jenkins-ci.plugins.workflow</groupId>
|
|
|
|
<artifactId>workflow-support</artifactId>
|
2022-10-22 23:47:28 +08:00
|
|
|
<version>839.v35e2736cfd5c</version>
|
2022-06-28 03:14:19 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
|
|
|
|
<artifactItem>
|
|
|
|
<!-- dependency of junit and echarts-api -->
|
2022-01-28 19:03:08 +08:00
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>jackson2-api</artifactId>
|
2022-04-15 21:26:23 +08:00
|
|
|
<version>2.13.2.20220328-273.v11d70a_b_a_1a_52</version>
|
2022-01-28 19:03:08 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
|
|
|
<!-- dependency of junit -->
|
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
|
|
|
<artifactId>echarts-api</artifactId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<version>5.3.2-1</version>
|
2022-01-28 19:03:08 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
|
|
|
|
<artifactItem>
|
|
|
|
<!-- dependency of jackson2-api -->
|
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
|
|
|
<artifactId>snakeyaml-api</artifactId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<version>1.29.1</version>
|
2022-01-28 19:03:08 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
|
2022-05-20 00:10:44 +08:00
|
|
|
<artifactItem>
|
|
|
|
<!-- dependency of script-security -->
|
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
|
|
|
<artifactId>caffeine-api</artifactId>
|
|
|
|
<version>2.9.3-65.v6a_47d0f4d1fe</version>
|
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
|
2022-01-28 19:03:08 +08:00
|
|
|
<artifactItem>
|
|
|
|
<!-- dependency of echarts-api and bootstrap4-api -->
|
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
|
|
|
<artifactId>jquery3-api</artifactId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<version>3.6.0-2</version>
|
2022-01-28 19:03:08 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
|
|
|
|
<artifactItem>
|
2022-06-28 03:14:19 +08:00
|
|
|
<!-- dependency of bootstrap5-api -->
|
2022-01-28 19:03:08 +08:00
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<artifactId>popper2-api</artifactId>
|
|
|
|
<version>2.11.2-1</version>
|
2022-01-28 19:03:08 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
|
|
|
|
<artifactItem>
|
2022-06-28 03:14:19 +08:00
|
|
|
<!-- dependency of bootstrap5-api -->
|
2022-01-28 19:03:08 +08:00
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
|
|
|
<artifactId>font-awesome-api</artifactId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<version>6.0.0-1</version>
|
2022-01-28 19:03:08 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
|
|
|
|
<artifactItem>
|
2021-10-04 21:21:27 +08:00
|
|
|
<!-- dependency of junit and workflow-api -->
|
2019-08-02 01:54:39 +08:00
|
|
|
<groupId>org.jenkins-ci.plugins.workflow</groupId>
|
|
|
|
<artifactId>workflow-step-api</artifactId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<version>625.vd896b_f445a_f8</version>
|
2019-08-02 01:54:39 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
|
|
|
<!-- dependency of workflow-api -->
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>scm-api</artifactId>
|
2022-10-22 23:47:28 +08:00
|
|
|
<version>608.vfa_f971c5a_a_e9</version>
|
2019-08-02 01:54:39 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
2021-10-04 21:21:27 +08:00
|
|
|
<!-- dependency of junit and scm-api -->
|
2019-08-02 01:54:39 +08:00
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>structs</artifactId>
|
2022-06-28 03:14:19 +08:00
|
|
|
<version>308.v852b473a2b8c</version>
|
2014-08-12 01:45:23 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2016-07-26 00:09:24 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>bouncycastle-api</artifactId>
|
2022-06-23 06:17:16 +08:00
|
|
|
<version>2.26</version>
|
2016-07-26 00:09:24 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2017-10-12 04:43:06 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>command-launcher</artifactId>
|
2019-07-11 22:50:06 +08:00
|
|
|
<version>1.2</version>
|
2017-10-12 04:43:06 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2018-03-17 06:29:52 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>jdk-tool</artifactId>
|
|
|
|
<version>1.0</version>
|
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2019-02-03 17:56:26 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
|
|
|
<artifactId>jaxb</artifactId>
|
|
|
|
<version>2.3.0</version>
|
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2021-02-26 05:05:23 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.modules</groupId>
|
|
|
|
<artifactId>sshd</artifactId>
|
2022-06-23 06:17:16 +08:00
|
|
|
<version>3.236.ved5e1b_cb_50b_2</version>
|
2021-02-26 05:05:23 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2019-07-11 22:54:07 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.plugins</groupId>
|
|
|
|
<artifactId>trilead-api</artifactId>
|
2019-07-12 21:23:54 +08:00
|
|
|
<version>1.0.4</version>
|
2019-07-11 22:54:07 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2022-01-18 16:19:08 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
|
|
|
<artifactId>javax-activation-api</artifactId>
|
|
|
|
<version>1.2.0-2</version>
|
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>io.jenkins.plugins</groupId>
|
|
|
|
<artifactId>javax-mail-api</artifactId>
|
|
|
|
<version>1.6.2-5</version>
|
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2022-06-23 06:17:16 +08:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.jenkins-ci.modules</groupId>
|
|
|
|
<artifactId>instance-identity</artifactId>
|
2022-09-30 01:14:21 +08:00
|
|
|
<version>116.vf8f487400980</version>
|
2022-06-23 06:17:16 +08:00
|
|
|
<type>hpi</type>
|
|
|
|
</artifactItem>
|
2011-07-05 22:44:09 +08:00
|
|
|
</artifactItems>
|
2016-01-19 23:13:33 +08:00
|
|
|
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/detached-plugins</outputDirectory>
|
2011-07-05 22:44:09 +08:00
|
|
|
<stripVersion>true</stripVersion>
|
2011-07-05 22:52:58 +08:00
|
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
|
|
<overWriteReleases>false</overWriteReleases>
|
|
|
|
<overWriteSnapshots>true</overWriteSnapshots>
|
2011-07-05 05:12:52 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2021-12-31 23:52:48 +08:00
|
|
|
<execution>
|
|
|
|
<!-- see jetty-maven-plugin config and WebAppMain -->
|
2020-07-21 22:50:13 +08:00
|
|
|
<id>support-log-formatter</id>
|
|
|
|
<goals>
|
|
|
|
<goal>copy</goal>
|
|
|
|
</goals>
|
2021-12-31 23:52:48 +08:00
|
|
|
<phase>generate-resources</phase>
|
2020-07-21 22:50:13 +08:00
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>io.jenkins.lib</groupId>
|
|
|
|
<artifactId>support-log-formatter</artifactId>
|
2021-12-30 00:00:18 +08:00
|
|
|
<version>1.1</version>
|
2020-07-21 22:50:13 +08:00
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
|
<stripVersion>true</stripVersion>
|
|
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
|
|
<overWriteReleases>false</overWriteReleases>
|
|
|
|
<overWriteSnapshots>true</overWriteSnapshots>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2009-10-02 09:49:31 +08:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
2022-07-03 00:10:20 +08:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>classes-copy</id>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<configuration>
|
2022-07-24 06:38:18 +08:00
|
|
|
<target>
|
2022-07-03 00:10:20 +08:00
|
|
|
<move todir="${project.build.directory}/${project.build.finalName}">
|
|
|
|
<fileset dir="${project.build.directory}/classes">
|
|
|
|
<include name="executable/**/*.class" />
|
|
|
|
</fileset>
|
|
|
|
</move>
|
2022-07-24 06:38:18 +08:00
|
|
|
</target>
|
2022-07-03 00:10:20 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2021-12-31 23:52:48 +08:00
|
|
|
<plugin>
|
|
|
|
<!-- generate licenses.xml -->
|
2011-04-20 02:39:22 +08:00
|
|
|
<groupId>com.cloudbees</groupId>
|
|
|
|
<artifactId>maven-license-plugin</artifactId>
|
2011-05-19 14:58:24 +08:00
|
|
|
<!-- version specified in grandparent pom -->
|
2011-04-20 02:39:22 +08:00
|
|
|
<configuration>
|
2011-07-05 22:44:09 +08:00
|
|
|
<generateLicenseXml>${project.build.outputDirectory}/META-INF/licenses.xml</generateLicenseXml>
|
2011-09-13 05:28:35 +08:00
|
|
|
<generateLicenseHtml>${project.build.outputDirectory}/META-INF/licenses.html</generateLicenseHtml>
|
|
|
|
<attach>true</attach>
|
2021-12-31 23:52:48 +08:00
|
|
|
<inlineScript>filter {
|
2011-04-20 02:39:22 +08:00
|
|
|
// add Winstone since we are bundling it.
|
|
|
|
def d = project.dependencies.find { it.artifactId=="winstone" };
|
|
|
|
def a = mojo.artifactFactory.createProjectArtifact(d.groupId,d.artifactId,d.version);
|
2022-10-24 23:42:20 +08:00
|
|
|
def buildingRequest = new org.apache.maven.project.DefaultProjectBuildingRequest(mojo.session.projectBuildingRequest)
|
|
|
|
buildingRequest.remoteRepositories = project.remoteArtifactRepositories
|
|
|
|
buildingRequest.localRepository = mojo.localRepository
|
|
|
|
buildingRequest.processPlugins = false // improve performance
|
|
|
|
def p = mojo.projectBuilder.build(a, buildingRequest).project
|
2011-04-20 02:39:22 +08:00
|
|
|
models.put(a,p);
|
2021-12-31 23:52:48 +08:00
|
|
|
}</inlineScript>
|
2011-04-20 02:39:22 +08:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2006-12-30 03:15:53 +08:00
|
|
|
<plugin>
|
2019-11-09 08:19:49 +08:00
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
2022-09-20 07:32:23 +08:00
|
|
|
<version>10.0.12</version>
|
2006-11-06 06:57:18 +08:00
|
|
|
<configuration>
|
2011-03-29 07:52:10 +08:00
|
|
|
<!--
|
|
|
|
Reload webapp when you hit ENTER. (See JETTY-282 for more)
|
|
|
|
-->
|
|
|
|
<reload>manual</reload>
|
2019-04-14 00:43:46 +08:00
|
|
|
<httpConnector>
|
2020-02-22 09:26:49 +08:00
|
|
|
<host>${host}</host>
|
|
|
|
<port>${port}</port>
|
2019-04-14 00:43:46 +08:00
|
|
|
</httpConnector>
|
2012-06-12 08:04:42 +08:00
|
|
|
<loginServices>
|
|
|
|
<loginService implementation="org.eclipse.jetty.security.HashLoginService">
|
2007-04-15 00:57:07 +08:00
|
|
|
<name>default</name>
|
2007-10-02 02:19:08 +08:00
|
|
|
<config>${basedir}/src/realm.properties</config>
|
2012-06-12 08:04:42 +08:00
|
|
|
</loginService>
|
|
|
|
</loginServices>
|
2006-11-06 06:57:18 +08:00
|
|
|
<systemProperties>
|
2022-08-03 02:26:04 +08:00
|
|
|
<JENKINS_HOME>${JENKINS_HOME}</JENKINS_HOME>
|
|
|
|
<!-- always reload views during debugging -->
|
|
|
|
<stapler.jelly.noCache>true</stapler.jelly.noCache>
|
|
|
|
<!-- show the stapler evaluation during execution -->
|
|
|
|
<stapler.trace>true</stapler.trace>
|
|
|
|
<!-- show the full stack trace on errors (the oops page) -->
|
|
|
|
<jenkins.model.Jenkins.SHOW_STACK_TRACE>true</jenkins.model.Jenkins.SHOW_STACK_TRACE>
|
|
|
|
<!-- always reload scripts during debugging -->
|
|
|
|
<hudson.script.noCache>true</hudson.script.noCache>
|
|
|
|
<!-- load view resources from the source directly, again for real time change -->
|
|
|
|
<stapler.resourcePath>../core/src/main/resources;</stapler.resourcePath>
|
|
|
|
<!-- enable the plugins in main by default -->
|
|
|
|
<!-- run "mvn install" once will generate the.hpl -->
|
|
|
|
<hudson.bundled.plugins>${project.build.directory}/${project.build.finalName}/WEB-INF/plugins/*.hpi</hudson.bundled.plugins>
|
|
|
|
<!-- stat collection pointless -->
|
|
|
|
<hudson.model.UsageStatistics.disabled>true</hudson.model.UsageStatistics.disabled>
|
|
|
|
<hudson.Main.development>true</hudson.Main.development>
|
2006-11-06 06:57:18 +08:00
|
|
|
</systemProperties>
|
2012-06-12 08:04:42 +08:00
|
|
|
<webApp>
|
2020-07-21 22:50:13 +08:00
|
|
|
<!-- Allows resources to be reloaded, and enable nicer console logging. -->
|
2022-09-20 07:32:23 +08:00
|
|
|
<extraClasspath>${project.basedir}/../core/src/main/resources,${project.basedir}/../core/target/classes,${project.build.directory}/support-log-formatter.jar</extraClasspath>
|
2013-03-01 03:49:01 +08:00
|
|
|
<contextPath>${contextPath}</contextPath>
|
2012-06-12 08:04:42 +08:00
|
|
|
<configurationDiscovered>false</configurationDiscovered>
|
2021-12-31 23:52:48 +08:00
|
|
|
<!-- see https://wiki.eclipse.org/Jetty/Howto/Avoid_slow_deployment -->
|
|
|
|
<webInfIncludeJarPattern>NONE</webInfIncludeJarPattern>
|
2012-06-12 08:04:42 +08:00
|
|
|
</webApp>
|
2006-11-06 06:57:18 +08:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2006-11-06 05:16:01 +08:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2006-12-19 22:27:35 +08:00
|
|
|
|
2007-07-27 16:59:20 +08:00
|
|
|
<profiles>
|
2008-07-29 06:38:21 +08:00
|
|
|
<profile>
|
|
|
|
<!-- sign war -->
|
|
|
|
<id>sign</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2011-07-05 22:44:09 +08:00
|
|
|
<artifactId>maven-jarsigner-plugin</artifactId>
|
2008-07-29 06:38:21 +08:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>signWar</id>
|
|
|
|
<goals>
|
2011-07-05 22:44:09 +08:00
|
|
|
<goal>sign</goal>
|
2008-07-29 06:38:21 +08:00
|
|
|
</goals>
|
2021-12-31 23:52:48 +08:00
|
|
|
<phase>pre-integration-test</phase>
|
2008-07-29 06:38:21 +08:00
|
|
|
<configuration>
|
2011-07-05 22:52:58 +08:00
|
|
|
<archive>${project.build.directory}/${project.build.finalName}.war</archive>
|
2016-04-23 06:20:05 +08:00
|
|
|
<arguments>
|
|
|
|
<argument>-tsa</argument>
|
2020-07-22 06:33:01 +08:00
|
|
|
<argument>http://timestamp.digicert.com</argument>
|
2016-04-23 06:20:05 +08:00
|
|
|
</arguments>
|
2008-07-29 06:38:21 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2016-01-19 23:13:33 +08:00
|
|
|
|
|
|
|
<!--
|
2021-04-18 02:01:54 +08:00
|
|
|
The following profiles are required to integration the node/yarn build into this maven build.
|
|
|
|
Hopefully we can push these profiles down into a parent pom.
|
2016-01-19 23:13:33 +08:00
|
|
|
-->
|
2013-07-04 18:23:11 +08:00
|
|
|
<profile>
|
2020-01-10 19:45:42 +08:00
|
|
|
<id>yarn-execution</id>
|
2016-04-23 18:20:46 +08:00
|
|
|
<activation>
|
|
|
|
<file>
|
2020-01-10 19:45:42 +08:00
|
|
|
<exists>package.json</exists>
|
2016-04-23 18:20:46 +08:00
|
|
|
</file>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
2021-03-07 03:28:36 +08:00
|
|
|
<!-- Version specified in grandparent POM -->
|
2016-04-23 18:20:46 +08:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>enforce-versions</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireMavenVersion>
|
|
|
|
<version>3.1.0</version>
|
|
|
|
</requireMavenVersion>
|
2017-09-11 07:45:00 +08:00
|
|
|
<requireJavaVersion>
|
|
|
|
<!-- let's encrypt certs used for https://updates.jenkins.io -->
|
|
|
|
<version>[1.8.0-101,]</version>
|
|
|
|
</requireJavaVersion>
|
2016-04-23 18:20:46 +08:00
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2022-07-21 14:37:01 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>download-yarn</id>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>initialize</phase>
|
|
|
|
<configuration>
|
2022-07-24 06:38:18 +08:00
|
|
|
<target>
|
2022-07-21 14:37:01 +08:00
|
|
|
<property name="yarn.dest" value="${project.basedir}/.yarn/releases/yarn-${yarn-berry.version}.cjs" />
|
|
|
|
<dirname file="${yarn.dest}" property="yarn.dest.dir" />
|
|
|
|
<mkdir dir="${yarn.dest.dir}" />
|
|
|
|
<get dest="${yarn.dest}" src="https://repo.yarnpkg.com/${yarn-berry.version}/packages/yarnpkg-cli/bin/yarn.js" usetimestamp="true" />
|
|
|
|
<checksum algorithm="SHA-256" file="${yarn.dest}" property="${yarn-berry.sha256sum}" verifyProperty="yarn.checksum.matches" />
|
|
|
|
<condition property="yarn.checksum.matches.fail">
|
|
|
|
<equals arg1="${yarn.checksum.matches}" arg2="false" />
|
|
|
|
</condition>
|
|
|
|
<fail if="yarn.checksum.matches.fail">Checksum error</fail>
|
2022-07-22 22:47:30 +08:00
|
|
|
<echo file="${project.basedir}/.yarnrc.yml">yarnPath: ${yarn.dest}</echo>
|
2022-07-24 06:38:18 +08:00
|
|
|
</target>
|
2022-07-21 14:37:01 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2016-04-23 18:20:46 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
2021-12-31 23:54:22 +08:00
|
|
|
<version>1.12.1</version>
|
2016-04-23 18:20:46 +08:00
|
|
|
<executions>
|
2016-01-19 23:13:33 +08:00
|
|
|
|
2016-04-23 18:20:46 +08:00
|
|
|
<execution>
|
2017-05-19 04:33:20 +08:00
|
|
|
<id>install node and yarn</id>
|
2016-04-23 18:20:46 +08:00
|
|
|
<goals>
|
2017-05-19 04:33:20 +08:00
|
|
|
<goal>install-node-and-yarn</goal>
|
2016-04-23 18:20:46 +08:00
|
|
|
</goals>
|
2021-12-31 23:52:48 +08:00
|
|
|
<phase>initialize</phase>
|
2016-04-23 18:20:46 +08:00
|
|
|
<configuration>
|
|
|
|
<nodeVersion>v${node.version}</nodeVersion>
|
2017-05-19 04:33:20 +08:00
|
|
|
<yarnVersion>v${yarn.version}</yarnVersion>
|
2017-05-19 22:28:54 +08:00
|
|
|
<nodeDownloadRoot>https://repo.jenkins-ci.org/nodejs-dist/</nodeDownloadRoot>
|
2017-05-19 04:33:20 +08:00
|
|
|
<!-- tried to create a mirror for yarnDownloadRoot but it did not work -->
|
2016-04-23 18:20:46 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2016-01-19 23:13:33 +08:00
|
|
|
|
2016-04-23 18:20:46 +08:00
|
|
|
<execution>
|
2017-05-19 04:33:20 +08:00
|
|
|
<id>yarn install</id>
|
2016-04-23 18:20:46 +08:00
|
|
|
<goals>
|
2017-05-19 04:33:20 +08:00
|
|
|
<goal>yarn</goal>
|
2016-04-23 18:20:46 +08:00
|
|
|
</goals>
|
2021-12-31 23:52:48 +08:00
|
|
|
<phase>initialize</phase>
|
2016-04-23 18:20:46 +08:00
|
|
|
</execution>
|
2016-01-19 23:13:33 +08:00
|
|
|
|
2016-04-23 18:20:46 +08:00
|
|
|
<execution>
|
2019-12-09 23:19:06 +08:00
|
|
|
<id>yarn build</id>
|
2016-04-23 18:20:46 +08:00
|
|
|
<goals>
|
2019-12-09 23:19:06 +08:00
|
|
|
<goal>yarn</goal>
|
2016-04-23 18:20:46 +08:00
|
|
|
</goals>
|
2021-12-31 23:52:48 +08:00
|
|
|
<phase>generate-sources</phase>
|
2016-04-23 18:20:46 +08:00
|
|
|
<configuration>
|
2019-12-09 23:19:06 +08:00
|
|
|
<arguments>build</arguments>
|
2016-04-23 18:20:46 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2016-01-19 23:13:33 +08:00
|
|
|
|
2020-01-21 23:48:26 +08:00
|
|
|
<execution>
|
|
|
|
<id>yarn lint</id>
|
|
|
|
<goals>
|
|
|
|
<goal>yarn</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2022-07-22 22:47:30 +08:00
|
|
|
<arguments>lint:ci</arguments>
|
|
|
|
<skip>${yarn.lint.skip}</skip>
|
2020-01-21 23:48:26 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2016-04-23 18:20:46 +08:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2013-07-04 18:23:11 +08:00
|
|
|
</profile>
|
2016-01-19 23:13:33 +08:00
|
|
|
|
|
|
|
<profile>
|
2016-04-23 18:20:46 +08:00
|
|
|
<id>clean-node</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>cleanNode</name>
|
|
|
|
</property>
|
2021-12-31 23:52:48 +08:00
|
|
|
<file>
|
|
|
|
<exists>package.json</exists>
|
|
|
|
</file>
|
2016-04-23 18:20:46 +08:00
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-clean-plugin</artifactId>
|
2021-03-07 03:28:36 +08:00
|
|
|
<!-- Version specified in grandparent POM -->
|
2016-04-23 18:20:46 +08:00
|
|
|
<configuration>
|
|
|
|
<filesets>
|
|
|
|
<fileset>
|
|
|
|
<directory>node</directory>
|
|
|
|
<followSymlinks>false</followSymlinks>
|
|
|
|
</fileset>
|
|
|
|
<fileset>
|
|
|
|
<directory>node_modules</directory>
|
|
|
|
<followSymlinks>false</followSymlinks>
|
|
|
|
</fileset>
|
|
|
|
</filesets>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2016-01-19 23:13:33 +08:00
|
|
|
</profile>
|
2016-04-23 18:20:46 +08:00
|
|
|
</profiles>
|
2009-02-12 05:24:31 +08:00
|
|
|
</project>
|