我想先執行mvn版本:TFS的準備,並得到錯誤:我不能執行MVN發佈:準備
Command line - cmd.exe /X /C "tf status -login:[domain]\[username],null -workspace:workspace -recursive -format:detailed [pathToTheProject]"
[INFO] err - TF30063: You are not authorized to access [serverName].
我懷疑Maven的有問題,確認密碼,或者我把我的developerConnection錯 我SCM:
<scm>
<developerConnection>scm:tfs:[domain]\\[username];[password]http[s]://server_name:workspace:$/TeamProject/Path/To/Project</developerConnection>
<url>[domain]\\[username];[password]http[s]://server_name:workspace:$/TeamProject/Path/To/Project</url>
</scm>
我在Maven構建標籤:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-scm-plugin</artifactId>
<version>1.5</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-tfs</artifactId>
<version>1.9.5</version>
<scope>compile</scope>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-tfs</artifactId>
<version>1.9.5</version>
<scope>compile</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
檢查連接和developerConnection配置是否正確...此外,maven-scm-plugin和maven-scm-providers應該使用相同的版本...檢查調試輸出是否正確接收連接信息。 ..(我已經放棄使用TFS與maven-release-plugin關係;可能是由奇怪的TFS設置引起的)。 – khmarbaise