Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaowei
dlink
Commits
45fedaef
Unverified
Commit
45fedaef
authored
Dec 02, 2021
by
aiwenmo
Committed by
GitHub
Dec 02, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #43 from fforever14/dev
修改dlink-web的编译插件为frontend-maven-plugin
parents
744c07a2
dcf4ff94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
pom.xml
dlink-web/pom.xml
+22
-22
No files found.
dlink-web/pom.xml
View file @
45fedaef
...
...
@@ -16,42 +16,42 @@
<plugins>
<!-- 调用npm命令插件 -->
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
exec
-maven-plugin
</artifactId>
<version>
1.
6
.0
</version>
<groupId>
com.github.eirslett
</groupId>
<artifactId>
frontend
-maven-plugin
</artifactId>
<version>
1.
12
.0
</version>
<executions>
<!-- 先执行前端依赖下载 -->
<execution>
<id>
exec-npm-install
</id>
<phase>
package
</phase>
<id>
install node and npm
</id>
<goals>
<goal>
exec
</goal>
<goal>
install-node-and-npm
</goal>
</goals>
</execution>
<execution>
<id>
npm install
</id>
<goals>
<goal>
npm
</goal>
</goals>
<configuration>
<executable>
npm
</executable>
<arguments>
<argumnet>
install
</argumnet>
</arguments>
<workingDirectory>
${basedir}
</workingDirectory>
<!-- 国内npm源加速可在后面加入(去掉空格) - -registry https://repo.huaweicloud.com/repository/npm/ -->
<arguments>
install --force
</arguments>
</configuration>
</execution>
<!-- npm打包 -->
<execution>
<id>
exec-npm-run-build
</id>
<phase>
package
</phase>
<id>
npm run build
</id>
<goals>
<goal>
exec
</goal>
<goal>
npm
</goal>
</goals>
<configuration>
<executable>
npm
</executable>
<arguments>
<argumnet>
run
</argumnet>
<argumnet>
build
</argumnet>
</arguments>
<workingDirectory>
${basedir}
</workingDirectory>
<arguments>
run build
</arguments>
</configuration>
</execution>
</executions>
<configuration>
<nodeVersion>
v14.17.0
</nodeVersion>
<npmVersion>
7.19.0
</npmVersion>
<!-- 国内node下载加速 -->
<!--<nodeDownloadRoot>https://mirrors.huaweicloud.com/nodejs/</nodeDownloadRoot>-->
</configuration>
</plugin>
</plugins>
<finalName>
${project.artifactId}-${project.version}
</finalName>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment