如果没有更改,是否有一种不将test.html提交给scm的方法?
因为,当您使用git提交提交一个未更改的文件时,它不允许提交。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.9.2</version>
<configuration>
<connectionType>connection</connectionType>
</configuration>
<inherited>false</inherited>
<executions>
<execution>
<id>add-version-to-git</id>
<phase>package</phase>
<goals>
<goal>checkin</goal>
</goals>
<configuration>
<basedir>${project.basedir}</basedir>
<includes>test.html</includes>
<message>Test HTML Update</message>
</configuration>
</execution>
</executions>
</plugin>发布于 2016-10-27 11:29:41
可以使用Maven配置文件激活,如:
<activation>
<property>
<name>testChanged</name>
</property>
</activation> 可以在进行更改的位置设置testChanged属性。
https://stackoverflow.com/questions/40281451
复制相似问题