[ https://issues.apache.org/jira/browse/SCM-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17962947#comment-17962947 ]
ASF GitHub Bot commented on SCM-774: ------------------------------------ jira-importer commented on issue #981: URL: https://github.com/apache/maven-scm/issues/981#issuecomment-2964637193 **[Chris Graham](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=chrisgwarp)** commented From what I can see and remember, the --dir option, which was present from RTC 2.x, 3.x to 4.0.1. I believe that 4.0.2 to 4.0.5 broke my implementation as they renamed the command to --directory for better consistency with other commands. It was changed back to working in 4.0.6, and should also work for 5.0+ as well. https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=263772 My issue is that --directory did not exist prior to 4.0.2. I will have to check to see if I can use -d across all versions. RTC V2 is now officially out of support since V5 has been released, so that may work in my favor. The other important thing to note, is that you can use older versions of the client to connect to the server, but not a newer. So if you are using RTC 4.0.5 on the server, your only option would be to install an older version of the client (one that works, eg 4.0.1) rather than upgrade to a V5 client. So the recommendation to work around this issue is to downgrade the client to one that works <4.0.2. > scm load issue with mvn release:perform + Jazz RTC > -------------------------------------------------- > > Key: SCM-774 > URL: https://issues.apache.org/jira/browse/SCM-774 > Project: Maven SCM (Moved to GitHub Issues) > Issue Type: Bug > Components: maven-scm-api, maven-scm-client, maven-scm-provider-jazz > Affects Versions: 1.9.1 > Environment: $ mvn -v > Apache Maven 3.0.3 (r1075438; 2011-02-28 10:31:09-0700) > Maven home: /u01/app/apache-maven-3.0.3 > Java version: 1.7.0_55, vendor: Oracle Corporation > Java home: /u01/app/oracle/java/jdk1.7.0_55/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "2.6.32-431.20.3.el6.x86_64", arch: "amd64", > family: "unix" > RTC 4.0.5 > $ scm -v > Build Id: RTC-I20131025-2055 > com.ibm.team.filesystem.cli.core, version 3.2.0.v20131023_0208 > Provides Subcommands: > daemon/start, daemon, daemon/stop, daemon/deregister, daemon/register > com.ibm.team.filesystem.cli.client, version 3.2.0.v20131024_0535 > .... > ... > .... > Reporter: AShit Shah > Assignee: Chris Graham > Priority: Major > > I am having issue with {{mvn release:perform}} command. {{[ERROR] Subcommand > "load" does not support option "--dir". Try 'scm help load' for more > information.}} > Maven {{release:perform}} is calling RTC {{scm load}} command with "--dir" > flag. > But as per RTC CLI only " -d" and > "--directory" > are the valid flag but not "--dir". > Please help. > Thanks. > -Ashit Shah > Note: I am getting below error. > {noformat} > [INFO] --- maven-release-plugin:2.5:perform (default-cli) @ junit-ext --- > [INFO] Checking out the project to perform the release ... > [INFO] Executing: /bin/sh -c cd /tmp/maven && scm load --force > --repository-uri https://localhost:9443/ccm --dir /tmp/maven > junit-ext-1.0.0.0.10 > [INFO] Working directory: /tmp/maven > [ERROR] Error: Argument syntax error: > Subcommand "load" does not support option "--dir". Try 'scm help load' for > more information. > [ERROR] Error code for Jazz SCM checkout (load) command - 1 > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2.779s > [INFO] Finished at: Fri Sep 05 16:25:20 MDT 2014 > [INFO] Final Memory: 24M/1963M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-release-plugin:2.5:perform (default-cli) on > project junit-ext: Unable to checkout from SCM > [ERROR] Provider message: > [ERROR] Error code for Jazz SCM checkout (load) command - 1 > [ERROR] Command output: > [ERROR] Argument syntax error: > [ERROR] Subcommand "load" does not support option "--dir". Try 'scm help > load' for more information. > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)