简体   繁体   English

scm插件在哪里存储凭据

[英]where does scm plugin store the crendentials

<project>
  <modelVersion>4.0.0</modelVersion>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <groupId>a</groupId>
  <artifactId>a</artifactId>
  <name>SCM Sample Project</name>
  <url>http://somecompany.com</url>

   <scm>
    <connection>scm:svn:http://my-svn-url/trunk/</connection>
    <developerConnection>scm:svn:http://my-svn-url/trunk/</developerConnection>
    <url>scm:svn:http://my-svn-url/trunk/</url>
  </scm>
  <build>
  </build>

</project>

As you can see I have no svn crendentials I am still able to checkout project. 如您所见,我没有svn凭证,我仍然可以检出项目。 More of I think maven stores all these credentials somewhere in cache as it is NOT taking my basic configurations as "checkoutDirectory". 我更多地认为maven将所有这些凭据存储在缓存中的某个位置,因为它没有将我的基本配置作为“ checkoutDirectory”。 Can anybody please help on how to clean cache ...or I am missin something :( 任何人都可以帮忙如何清理缓存...或者我错过了一些事情:(

The settings.xml file is the correct location for username/passwords: settings.xml文件是用户名/密码的正确位置:

<server>
  <id>my-svn-url</id>
  <username>TheUserIAmOnSVN</username>
  <password>MySVNPassword</password>
</server>

Special things for Subversion you can configure into the scm provider . 您可以在scm提供程序中配置 Subversion的特殊内容。

If you are working locally Subversion stores username/passwords in it's own cache ($HOME/.svn/)... 如果您在本地工作,Subversion会将用户名/密码存储在其自己的缓存($ HOME / .svn /)中...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM