Skip to content

Commit

Permalink
changed build process to use global node installation
Browse files Browse the repository at this point in the history
  • Loading branch information
vegarrsm committed Sep 29, 2023
1 parent beed170 commit aac406b
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -256,40 +256,39 @@
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.14.0</version>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<inherited>false</inherited>
<executions>
<execution>
<id>npm install</id>
<id>npm-install</id>
<goals>
<goal>npm</goal>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
<workingDirectory>./db-scheduler-ui-frontend</workingDirectory>
<arguments>install</arguments>
<nodeExecutable>/usr/local/bin/node</nodeExecutable> <!-- Point this to your global node executable -->
</configuration>
</execution>
<execution>
<id>npm run build</id>
<id>npm-build</id>
<phase>generate-resources</phase>
<goals>
<goal>npm</goal>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>build</argument>
</arguments>
<workingDirectory>./db-scheduler-ui-frontend</workingDirectory>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<inherited>false</inherited>
<executions>
<execution>
<id>create-static-folder</id>
<phase>generate-resources</phase>
Expand Down

0 comments on commit aac406b

Please sign in to comment.