MeterSphere/frontend/pom.xml

71 lines
2.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">
2020-02-03 16:30:16 +08:00
<parent>
<artifactId>metersphere-server</artifactId>
<groupId>io.metersphere</groupId>
2021-04-28 11:38:39 +08:00
<version>1.9</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>
<artifactId>frontend</artifactId>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2022-04-08 14:30:16 +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>
<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>
2021-12-28 18:27:20 +08:00
<npmVersion>6.14.15</npmVersion>
2020-02-03 16:30:16 +08:00
</configuration>
</execution>
<!-- 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>
</plugins>
</build>
2020-02-03 14:01:28 +08:00
</project>