maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Graham (JIRA)" <j...@codehaus.org>
Subject [jira] (SCM-774) issue with mvn release:prepare + Jazz RTC
Date Wed, 10 Sep 2014 01:05:10 GMT

    [ https://jira.codehaus.org/browse/SCM-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=352567#comment-352567
] 

Chris Graham commented on SCM-774:
----------------------------------

>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.

> issue with mvn release:prepare + Jazz RTC
> -----------------------------------------
>
>                 Key: SCM-774
>                 URL: https://jira.codehaus.org/browse/SCM-774
>             Project: Maven SCM
>          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
>
> I am having issue with {{mvn release:prepare}} command. {{[ERROR] Subcommand "load" does
not support option "--dir". Try 'scm help load' for more information.}}
> Maven {{release:prepare}} 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
(v6.1.6#6162)

Mime
View raw message