MeterSphere/frontend/pom.xml

70 lines
2.3 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>
2021-10-26 13:57:19 +08:00
<frontend-maven-plugin.version>1.12.0</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-10-26 13:57:19 +08:00
<id>install node and npm</id>
2020-02-03 16:30:16 +08:00
<goals>
2021-10-26 13:57:19 +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-10-26 13:57:19 +08:00
<nodeVersion>v16.12.0</nodeVersion>
2020-02-03 16:30:16 +08:00
</configuration>
</execution>
<!-- Install all project dependencies -->
<execution>
2021-10-26 13:57:19 +08:00
<id>npm install</id>
2020-02-03 16:30:16 +08:00
<goals>
2021-10-26 13:57:19 +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.
-->
<arguments>install</arguments>
</configuration>
</execution>
<!-- Build and minify static files -->
<execution>
2021-10-26 13:57:19 +08:00
<id>npm run build</id>
2020-02-03 16:30:16 +08:00
<goals>
2021-10-26 13:57:19 +08:00
<goal>npm</goal>
2020-02-03 16:30:16 +08:00
</goals>
<configuration>
2021-10-26 13:57:19 +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>