0

我做常规的Maven命令:

mvn clean package

...但不断得到同样的错误:

svn: The path 'D:\Projects' appears to be part of a Subversion 1.7 or greater
working copy.  Please upgrade your Subversion client to use this
working copy.

有我的环境:

d:\Projects>svn --version
svn, version 1.7.8 (r1419691)
   compiled Dec 12 2012, 21:11:09

d:\Projects>mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 14:46:01-0430)
Java version: 1.6.0_30
Java home: C:\Program Files\Java\jdk1.6.0_30\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"

我能做些什么来解决这个问题?

4

1 回答 1

1

通过添加svn-1.7配置文件解决它pom.xml

<profile>
    <id>svn-1.7</id>
    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>buildnumber-maven-plugin</artifactId>
                <version>1.0</version>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>create</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</profile>
于 2013-02-22T18:39:07.593 回答