有没有办法更新Maven的pom.xml文件中package.json中的版本(npm版本较小)?

时间:2019-03-28 14:48:47

标签: maven npm npm-scripts

我想在运行Maven版本时自动更新package.json中的版本。如何更新pom.xml文件中的版本(npm较小的版本)?

我尝试用插件更新pom.xml文件

<plugin>
  <artifactId>maven-release-plugin</artifactId>
  <version>${maven.release.plugin.version}</version>
  <executions>
    <execution>
      <id>npm run version</id>
      <goals>
        <goal>exec</goal>
      </goals>
      <configurations>
        <executable>cd</executable>
        <arguments>
          <argument>web/gui</argument>
        </arguments>
        <executable>npm</executable>
        <arguments>
          <argument>run</argument>
          <argument>version</argument>
        </arguments>
      </configurations>
    </execution>
  <executions>
</plugin>

当我运行mvn clean:release

时,什么都没有发生

0 个答案:

没有答案
相关问题