2020-02-03 14:01:28 +08:00
|
|
|
<?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/xsd/maven-4.0.0.xsd">
|
2022-10-10 13:41:39 +08:00
|
|
|
<packaging>pom</packaging>
|
2020-02-03 14:01:28 +08:00
|
|
|
|
2020-02-03 16:30:16 +08:00
|
|
|
<parent>
|
|
|
|
<groupId>io.metersphere</groupId>
|
2022-10-10 13:41:39 +08:00
|
|
|
<artifactId>project-management-parent</artifactId>
|
2022-04-15 09:06:13 +08:00
|
|
|
<version>${revision}</version>
|
2020-02-03 16:30:16 +08:00
|
|
|
</parent>
|
2020-02-03 14:01:28 +08:00
|
|
|
|
2020-02-03 16:30:16 +08:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2022-10-10 13:41:39 +08:00
|
|
|
<artifactId>project-management-frontend</artifactId>
|
2020-02-03 16:30:16 +08:00
|
|
|
|
|
|
|
<properties>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
|
|
<version>${frontend-maven-plugin.version}</version>
|
2022-10-10 13:41:39 +08:00
|
|
|
<configuration>
|
|
|
|
<installDirectory>../../.node</installDirectory>
|
|
|
|
</configuration>
|
2020-02-03 16:30:16 +08:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<!-- optional: you don't really need execution ids, but it looks nice in your build log. -->
|
2021-12-28 18:27:20 +08:00
|
|
|
<id>install node and npm</id>
|
2020-02-03 16:30:16 +08:00
|
|
|
<goals>
|
2021-12-28 18:27:20 +08:00
|
|
|
<goal>install-node-and-npm</goal>
|
2020-02-03 16:30:16 +08:00
|
|
|
</goals>
|
|
|
|
<!-- optional: default phase is "generate-resources" -->
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<configuration>
|
2022-10-26 11:17:28 +08:00
|
|
|
<nodeVersion>${node.version}</nodeVersion>
|
|
|
|
<npmVersion>${npm.version}</npmVersion>
|
2020-02-03 16:30:16 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2022-10-10 13:41:39 +08:00
|
|
|
|
2022-10-26 11:17:28 +08:00
|
|
|
|
2020-02-03 16:30:16 +08:00
|
|
|
<!-- Install all project dependencies -->
|
|
|
|
<execution>
|
2021-12-28 18:27:20 +08:00
|
|
|
<id>npm install</id>
|
2020-02-03 16:30:16 +08:00
|
|
|
<goals>
|
2022-04-08 22:20:49 +08:00
|
|
|
<goal>npm</goal>
|
2020-02-03 16:30:16 +08:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<!-- optional: The default argument is actually
|
|
|
|
"install", so unless you need to run some other yarn command,
|
|
|
|
you can remove this whole <configuration> section.
|
|
|
|
-->
|
2022-04-08 22:20:49 +08:00
|
|
|
<arguments>install</arguments>
|
2020-02-03 16:30:16 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<!-- Build and minify static files -->
|
|
|
|
<execution>
|
2021-12-28 18:27:20 +08:00
|
|
|
<id>npm run build</id>
|
2020-02-03 16:30:16 +08:00
|
|
|
<goals>
|
2021-12-28 18:27:20 +08:00
|
|
|
<goal>npm</goal>
|
2020-02-03 16:30:16 +08:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2021-12-28 18:27:20 +08:00
|
|
|
<arguments>run build</arguments>
|
2020-02-03 16:30:16 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2022-04-20 17:38:53 +08:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<filesets>
|
|
|
|
<fileset>
|
|
|
|
<directory>dist</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**</include>
|
|
|
|
</includes>
|
|
|
|
<followSymlinks>false</followSymlinks>
|
|
|
|
</fileset>
|
|
|
|
</filesets>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2020-02-03 16:30:16 +08:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2020-02-03 14:01:28 +08:00
|
|
|
</project>
|