Skip to content

Commit 26585c9

Browse files
committed
修改ApiBoot Logging Admin Ui npm install所需插件
1 parent 35fc56f commit 26585c9

File tree

3 files changed

+23
-16
lines changed

3 files changed

+23
-16
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cache:
88
- $HOME/.m2
99
- $HOME/.npm
1010
- node_modules
11-
install: ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true
11+
install: ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true -DskipNpmBuild=true

api-boot-project/api-boot-plugins/api-boot-plugin-logging-admin-ui/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.DS_Store
22
node_modules
3-
node
43

54
# local env files
65
.env.local

api-boot-project/api-boot-plugins/api-boot-plugin-logging-admin-ui/pom.xml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,39 @@
5454
<build>
5555
<plugins>
5656
<plugin>
57-
<groupId>com.github.eirslett</groupId>
58-
<artifactId>frontend-maven-plugin</artifactId>
59-
<version>${frontend-maven-plugin.version}</version>
57+
<groupId>org.codehaus.mojo</groupId>
58+
<artifactId>exec-maven-plugin</artifactId>
59+
<version>1.6.0</version>
6060
<executions>
61-
<!-- Install all project dependencies -->
6261
<execution>
63-
<id>npm install</id>
62+
<id>npm-install</id>
63+
<phase>validate</phase>
6464
<goals>
65-
<goal>npm</goal>
65+
<goal>exec</goal>
6666
</goals>
67-
<!-- optional: default phase is "generate-resources" -->
68-
<phase>generate-resources</phase>
69-
<!-- Optional configuration which provides for running any npm command -->
7067
<configuration>
71-
<arguments>install</arguments>
68+
<executable>npm</executable>
69+
<arguments>
70+
<argument>ci</argument>
71+
</arguments>
7272
</configuration>
7373
</execution>
74-
<!-- Build and minify static files -->
7574
<execution>
76-
<id>npm run build</id>
75+
<id>npm-build</id>
76+
<phase>generate-resources</phase>
7777
<goals>
78-
<goal>npm</goal>
78+
<goal>exec</goal>
7979
</goals>
8080
<configuration>
81-
<arguments>run build</arguments>
81+
<skip>${skipNpmBuild}</skip>
82+
<executable>npm</executable>
83+
<arguments>
84+
<argument>run</argument>
85+
<argument>build</argument>
86+
</arguments>
87+
<environmentVariables>
88+
<PROJECT_VERSION>${project.version}</PROJECT_VERSION>
89+
</environmentVariables>
8290
</configuration>
8391
</execution>
8492
</executions>

0 commit comments

Comments
 (0)