|
|
@ -51,45 +51,88 @@
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
|
|
<version>1.5.0</version>
|
|
|
|
<version>${frontend.mave.version}</version>
|
|
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
|
|
<workingDirectory>${npm.working.dir}</workingDirectory>
|
|
|
|
|
|
|
|
<!-- where to install npm -->
|
|
|
|
|
|
|
|
<installDirectory>${npm.install.dir}</installDirectory>
|
|
|
|
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<execution>
|
|
|
|
<id>npm install (initialize)</id>
|
|
|
|
<id>install node and npm</id>
|
|
|
|
<goals>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
<goal>install-node-and-npm</goal>
|
|
|
|
</goals>
|
|
|
|
</goals>
|
|
|
|
<phase>initialize</phase>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<workingDirectory>react-app</workingDirectory>
|
|
|
|
<nodeVersion>${node.version}</nodeVersion>
|
|
|
|
<executable>${npm.executable}</executable>
|
|
|
|
<npmVersion>${npm.version}</npmVersion>
|
|
|
|
<arguments>
|
|
|
|
|
|
|
|
<argument>install</argument>
|
|
|
|
|
|
|
|
<argument>--silent</argument>
|
|
|
|
|
|
|
|
</arguments>
|
|
|
|
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<execution>
|
|
|
|
<id>npm run build (compile)</id>
|
|
|
|
<id>npm install</id>
|
|
|
|
<goals>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
</goals>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<!-- Optional configuration which provides for running any npm command -->
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<workingDirectory>react-app</workingDirectory>
|
|
|
|
<arguments>install</arguments>
|
|
|
|
<executable>${npm.executable}</executable>
|
|
|
|
|
|
|
|
<arguments>
|
|
|
|
|
|
|
|
<argument>run</argument>
|
|
|
|
|
|
|
|
<argument>${npm.build.command}</argument>
|
|
|
|
|
|
|
|
</arguments>
|
|
|
|
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<execution>
|
|
|
|
|
|
|
|
<id>prod</id>
|
|
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
|
|
<goal>npm</goal>
|
|
|
|
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<workingDirectory>${npm.working.dir}</workingDirectory>
|
|
|
|
<arguments>run-script ${npm.build.command}</arguments>
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<!-- <plugin>-->
|
|
|
|
|
|
|
|
<!-- <groupId>org.codehaus.mojo</groupId>-->
|
|
|
|
|
|
|
|
<!-- <artifactId>exec-maven-plugin</artifactId>-->
|
|
|
|
|
|
|
|
<!-- <version>1.5.0</version>-->
|
|
|
|
|
|
|
|
<!-- <executions>-->
|
|
|
|
|
|
|
|
<!-- <execution>-->
|
|
|
|
|
|
|
|
<!-- <id>npm install (initialize)</id>-->
|
|
|
|
|
|
|
|
<!-- <goals>-->
|
|
|
|
|
|
|
|
<!-- <goal>exec</goal>-->
|
|
|
|
|
|
|
|
<!-- </goals>-->
|
|
|
|
|
|
|
|
<!-- <phase>initialize</phase>-->
|
|
|
|
|
|
|
|
<!-- <configuration>-->
|
|
|
|
|
|
|
|
<!-- <workingDirectory>react-app</workingDirectory>-->
|
|
|
|
|
|
|
|
<!-- <executable>${npm.executable}</executable>-->
|
|
|
|
|
|
|
|
<!-- <arguments>-->
|
|
|
|
|
|
|
|
<!-- <argument>install</argument>-->
|
|
|
|
|
|
|
|
<!-- <argument>--silent</argument>-->
|
|
|
|
|
|
|
|
<!-- </arguments>-->
|
|
|
|
|
|
|
|
<!-- </configuration>-->
|
|
|
|
|
|
|
|
<!-- </execution>-->
|
|
|
|
|
|
|
|
<!-- <execution>-->
|
|
|
|
|
|
|
|
<!-- <id>npm run build (compile)</id>-->
|
|
|
|
|
|
|
|
<!-- <goals>-->
|
|
|
|
|
|
|
|
<!-- <goal>exec</goal>-->
|
|
|
|
|
|
|
|
<!-- </goals>-->
|
|
|
|
|
|
|
|
<!-- <phase>compile</phase>-->
|
|
|
|
|
|
|
|
<!-- <configuration>-->
|
|
|
|
|
|
|
|
<!-- <workingDirectory>react-app</workingDirectory>-->
|
|
|
|
|
|
|
|
<!-- <executable>${npm.executable}</executable>-->
|
|
|
|
|
|
|
|
<!-- <arguments>-->
|
|
|
|
|
|
|
|
<!-- <argument>run</argument>-->
|
|
|
|
|
|
|
|
<!-- <argument>${npm.build.command}</argument>-->
|
|
|
|
|
|
|
|
<!-- </arguments>-->
|
|
|
|
|
|
|
|
<!-- </configuration>-->
|
|
|
|
|
|
|
|
<!-- </execution>-->
|
|
|
|
|
|
|
|
<!-- </executions>-->
|
|
|
|
|
|
|
|
<!-- <configuration>-->
|
|
|
|
|
|
|
|
<!-- <workingDirectory>${npm.working.dir}</workingDirectory>-->
|
|
|
|
|
|
|
|
<!-- </configuration>-->
|
|
|
|
|
|
|
|
<!-- </plugin>-->
|
|
|
|
</plugins>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</build>
|
|
|
|
<profiles>
|
|
|
|
<profiles>
|
|
|
@ -111,6 +154,7 @@
|
|
|
|
<npm.executable>npm</npm.executable>
|
|
|
|
<npm.executable>npm</npm.executable>
|
|
|
|
<npm.build.command>build_prod</npm.build.command>
|
|
|
|
<npm.build.command>build_prod</npm.build.command>
|
|
|
|
<npm.working.dir>./react-app</npm.working.dir>
|
|
|
|
<npm.working.dir>./react-app</npm.working.dir>
|
|
|
|
|
|
|
|
<npm.install.dir>./react-app/tmp</npm.install.dir>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<npm.output.directory>react-app</npm.output.directory>
|
|
|
|
<npm.output.directory>react-app</npm.output.directory>
|
|
|
|
</properties>
|
|
|
|
</properties>
|
|
|
|