Commit dcf4ff94 authored by fforever14's avatar fforever14

修改dlink-web的编译插件为frontend-maven-plugin

parent 744c07a2
...@@ -16,42 +16,42 @@ ...@@ -16,42 +16,42 @@
<plugins> <plugins>
<!-- 调用npm命令插件 --> <!-- 调用npm命令插件 -->
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>com.github.eirslett</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>frontend-maven-plugin</artifactId>
<version>1.6.0</version> <version>1.12.0</version>
<executions> <executions>
<!-- 先执行前端依赖下载 -->
<execution> <execution>
<id>exec-npm-install</id> <id>install node and npm</id>
<phase>package</phase>
<goals> <goals>
<goal>exec</goal> <goal>install-node-and-npm</goal>
</goals>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals> </goals>
<configuration> <configuration>
<executable>npm</executable> <!-- 国内npm源加速可在后面加入(去掉空格) - -registry https://repo.huaweicloud.com/repository/npm/ -->
<arguments> <arguments>install --force</arguments>
<argumnet>install</argumnet>
</arguments>
<workingDirectory>${basedir}</workingDirectory>
</configuration> </configuration>
</execution> </execution>
<!-- npm打包 -->
<execution> <execution>
<id>exec-npm-run-build</id> <id>npm run build</id>
<phase>package</phase>
<goals> <goals>
<goal>exec</goal> <goal>npm</goal>
</goals> </goals>
<configuration> <configuration>
<executable>npm</executable> <arguments>run build</arguments>
<arguments>
<argumnet>run</argumnet>
<argumnet>build</argumnet>
</arguments>
<workingDirectory>${basedir}</workingDirectory>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
<configuration>
<nodeVersion>v14.17.0</nodeVersion>
<npmVersion>7.19.0</npmVersion>
<!-- 国内node下载加速 -->
<!--<nodeDownloadRoot>https://mirrors.huaweicloud.com/nodejs/</nodeDownloadRoot>-->
</configuration>
</plugin> </plugin>
</plugins> </plugins>
<finalName>${project.artifactId}-${project.version}</finalName> <finalName>${project.artifactId}-${project.version}</finalName>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment