3
早些時候,我使用以下運行.SH和.RB文件中的Maven的生命週期,運行Maven生命週期中的JavaScript文件
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>Version Calculation</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>${basedir}/scripts/IndexRunner/test.rb</executable>
</configuration>
</plugin>
現在我想運行一個.js文件,我試圖通過更換測試。 rb某些文件test.js但它不工作,任何幫助 如何在maven生命週期中運行javascript文件
你會在那個javascript裏執行什麼? –
我需要在該JavaScript文件中運行一些mongoDB命令 –