I have a question connecting maven version 3.6, exec-maven-plugin version 1.6.0, npm version 6.13.4
Plugin definition in my pom.xml file look like this
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>exec-npm-install</id>
<phase>generate-sources</phase>
<configuration>
<executable>npm</executable>
<workingDirectory>../my-frontend-app</workingDirectory>
<arguments>
<argument>run</argument>
<argument>build</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
Thank's to this plugin I'm able to run npm run build during my maven build.
I have problem with is passing additional argument to my npm build using this plugin. I would like to pass application version from pom.xml to my-frontend-app during maven build.
Can any body help me with this?