Maven构建版本$ {project.basedir}:未知

时间:2014-08-20 19:33:29

标签: java maven

请帮助我。

当我开始下面的Perform Maven Release erro时出现:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.2:prepare (default-cli) on project JavaWeb: Cannot prepare the release because you have local modifications :
[ERROR] [${project.basedir}:unknown]
[ERROR] -> [Help 1]

SVN中的我的标签目录为空。 pom.xml中:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-release-plugin</artifactId>
    <version>2.2.2</version>
    <configuration>
        <tagBase>https://server01.com/svn/JavaWeb/tags/</tagBase>
        <tag>${project.artifactId}-${maven.build.timestamp}</tag>
        <preparationGoals>clean install</preparationGoals>
        <goals>package</goals>
        <arguments>-DskipTests=false</arguments>

        <providerImplementations>
            <svn>javasvn</svn>
        </providerImplementations>

        <checkModificationExcludes>
            <checkModificationExclude>${project.build.directory}</checkModificationExclude>
        </checkModificationExcludes>
    </configuration>

    <dependencies>
        <dependency>
            <groupId>com.google.code.maven-scm-provider-svnjava</groupId>
            <artifactId>maven-scm-provider-svnjava</artifactId>
            <version>2.0.4</version>
        </dependency>
    </dependencies>
</plugin>

错误是什么意思?我的存储库中存在问题吗?

感谢。

1 个答案:

答案 0 :(得分:0)

  

由于您进行了本地修改,因此无法准备发布:[错误] [$ {project.basedir}:unknown] [错误] - &gt; [帮助1]

这意味着您有本地代码更改,需要在发布

之前检入源代码管理