我正在尝试:
$ mvn release:prepare
但是它会在我的目标目录下打印一个类文件列表,我将hg设置为忽略,然后失败:
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.1:prepare
> (default-cli) on project X: Cannot
> prepare the release because you have
> local modifications
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.1</version>
</plugin>
$ mvn --version
Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_23\jre
Default locale: it_IT, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
答案 0 :(得分:1)
查看hg status
的结果:
关于目标,在将目标添加到.hgignore
文件之前,请确保其内容中的任何内容都不属于您的Git仓库历史记录(已在某些时候提交)。
hgignore
只会忽略未跟踪的文件。