Maven 未提供SCM URL以从执行发布

Maven 未提供SCM URL以从执行发布,maven,version-control,nexus,maven-release-plugin,Maven,Version Control,Nexus,Maven Release Plugin,我正在尝试使用maven发布插件,然后使用nexus将其自动化 以下是我的pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xs

我正在尝试使用maven发布插件,然后使用nexus将其自动化

以下是我的pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.ozge.net</groupId>
  <artifactId>com.ozge.net</artifactId>
  <version>1.1- snapshot</version>
  <build>
    <pluginManagement>
      <plugins> 
       <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-release-plugin</artifactId>
       <version>2.5.1</version>
       <configuration>
       <tagBase>svn://local/exekuce/com.ozge.net</tagBase>
      </configuration>
       </plugin>
      </plugins>
    </pluginManagement>

  </build>
    <scm>
   <tag>HEAD</tag>
   <connection>scm:svn:svn://[svnusername]:[svn password]@local/exekuce/com.ozge.net</connection>
   <developerConnection>scm:svn:svn://[svnusername]:[svn password]@local/exekuce/com.ozge.net</developerConnection>
   <url>scm:svn:svn://[svnusername]:[svn password]@local/exekuce/com.ozge.net</url>
</scm>
  <distributionManagement>
  <repository>
    <id>OzgeRelease</id>
    <url>http://localhost:8081/nexus/content/repositories/OzgeRelease</url>
  </repository>
</distributionManagement>
</project>

4.0.0
com.ozge.net
com.ozge.net
1.1-快照
org.apache.maven.plugins
maven发布插件
2.5.1
svn://local/exekuce/com.ozge.net
头
scm:svn:svn://[svnusername]:[svn password]@local/exekuce/com.ozge.net
scm:svn:svn://[svnusername]:[svn password]@local/exekuce/com.ozge.net
scm:svn:svn://[svnusername]:[svn password]@local/exekuce/com.ozge.net
奥奇雷莱斯
http://localhost:8081/nexus/content/repositories/OzgeRelease
在我运行命令
mvn release之后:在命令提示符下执行

上面说

未提供SCM URL以从执行发布

我相信是我提供的


这里有没有人试图通过maven subversion nexus hudson来自动化构建?

首先尝试执行
release:clean

mvn版本:干净


然后再试一次。

您是否先做了
mvn发行版:prepare
?是的,我做了,没有问题。my settings.xml中有一个关于nexus服务器id的错误。我现在更正了它,它正在工作。