没有提供SCM URL来执行发布

时间:2015-03-19 11:50:07

标签: maven version-control nexus maven-release-plugin

我正在尝试使用maven release插件,之后使用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>

在命令提示符

上运行命令mvn release:perform之后

它说

  

没有提供SCM URL来执行

的发布

我相信我提供了。

有人在这里尝试使用maven-subversion-nexus-hudson进行自动化构建吗?

1 个答案:

答案 0 :(得分:0)

尝试先执行release:clean

  

MVN版本:clean

然后重试。

相关问题