jira-importer commented on issue #510: URL: https://github.com/apache/maven-scm/issues/510#issuecomment-2964600049
**[Emmanuel Venisse](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=evenisse)** commented Possible solution without modification in continuum: instead of system property, we can store the clientspec in ${user.home}/.scm/perforce.xml (other providers use a xml file to configure the provider too) In this file we store a mapping between the scmurl and the clientspec ``` <settings> <clientSpecMappings> <clientSpecMapping> <scmUrl>scm:perforce:username@host:port:path_to_repository1</scmUrl> <clientSpecName>username-host-MavenSCM-path-to-repo1</clientSpecName> </clientSpecMapping> <clientSpecMapping> <scmUrl>scm:perforce:username@host:port:path_to_repository2</scmUrl> <clientSpecName>username-host-MavenSCM-path-to-repo2</clientSpecName> </clientSpecMapping> </clientSpecMappings> </settings> ``` and in PerforceScmProvider.getClientspecName(...) we return the clientSpecName from the xml file. If if doesn't exist, we generate a default name and we store it in the xml file. WDYT? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
