Maven解决: Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin

[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4:create (default) on project shiro-root: Cannot get the revision information from the scm repository :

 

解决:搜索插件:buildnumber-maven-plugin 注释掉类似下面的代码

 

 

<plugin>
                <!-- Add SVN Revision To A JAR Manifest
                     - http://maven.apache.org/plugin-developers/cookbook/add-svn-revision-to-manifest.html
                -->
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>buildnumber-maven-plugin</artifactId>
                <version>1.0-beta-4</version>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>create</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <doCheck>false</doCheck>
                    <doUpdate>false</doUpdate>
                </configuration>
            </plugin>

你可能感兴趣的:(maven)