Closed nodje closed 9 years ago
I have no idea why... if you have time to debug it, maybe you can find out why? I also thought the way to run it was mvn frontend-maven-plugin:npm, but apparently not...
<execution>
<id>server-build</id>
<goals>
<goal>gulp</goal>
</goals>
<configuration>
<arguments>server-build</arguments>
</configuration>
</execution>
I'm having the same issue when setting arguments in the configuration within execution. It is simply ignored unless it is within the plugin level configuration:
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.23</version>
<configuration>
<workingDirectory>src/main/jcr_root/etc/designs/${project.artifactId}/clientlibs/${project.type}/</workingDirectory>
<nodeVersion>v0.10.26</nodeVersion>
<npmVersion>1.4.3</npmVersion>
<arguments>server-build</arguments>
</configuration>
But this way it will add it for every goal. My current workaround is to set the 'server-build' task as my default. Any ideas how to fix this?
This behavior is consistent across all execution tasks in the plugin config.
I've come to realize that mvn frontend:xxx
I'll try to look into it.
I think this is a general problem with Maven. Reopen the case if you find out more!
just doesn't work:
mvn frontend:npm
will executenpm --no-color install
anyway.