MeterSphere/api-test/frontend/pom.xml

103 lines
3.4 KiB
XML
Raw Normal View History

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>api-test-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>api-test-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>
2022-10-10 13:41:39 +08:00
<frontend-maven-plugin.version>1.12.1</frontend-maven-plugin.version>
2020-02-03 16:30:16 +08:00
</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>
2021-11-15 20:36:54 +08:00
<nodeVersion>v16.10.0</nodeVersion>
2022-10-10 13:41:39 +08:00
<npmVersion>8.12.1</npmVersion>
2020-02-03 16:30:16 +08:00
</configuration>
</execution>
2022-10-10 13:41:39 +08:00
<execution>
<!-- optional: you don't really need execution ids, but it looks nice in your build log. -->
<id>install node and pnpm</id>
<goals>
<goal>install-node-and-pnpm</goal>
</goals>
<!-- optional: default phase is "generate-resources" -->
<phase>generate-resources</phase>
<configuration>
<nodeVersion>v16.10.0</nodeVersion>
<pnpmVersion>7.9.5</pnpmVersion>
</configuration>
</execution>
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>
<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>