Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Maven SCM plugin is not working?

Hello Everyone

i am trying to setup the link between Maven release plugin and Jazz, and after consulting several blogs, pages, wikis, i am all the time getting this maven error:

Executing: cmd.exe /X /C "scm status --username fraru02 --password ***** --wide"
Working directory: E:\projects\eclipse\Services SandBox\testing-release
Error: 'scm' is not recognized as an internal or external command,
operable program or batch file.

Provider message:
Error code for Jazz SCM status command - 1
Command output:
'scm' is not recognized as an internal or external command,
operable program or batch file.


I am using the scm plugin version 1.9, and i tried to use several but all with the same error. I am reading that scm command should work, and it is not, what could be missing here?

Hope to hear from you, thank you in advance.



0 votes

Comments

From the error message,I would guess, the scm command is not in the path. Provide a path to it or add the folder it is contained to the path.

You will also have to install the scm tools, as it provides the scm command line tool. 

is the scm tools part of the eclipse plugin? or part of the Build Toolkit ? (i have eclipse with RTC plugin)

It is available as part of the Eclipse client (TeamConcert\jazz\scmtools\eclipse) or as separate download. Path depends on the install/version the above is the zipped client.

Thank you Ralph, if i dont have the Eclipse Client, where do i get the separate download?

On the All Downloads Tab for your version. Search for SCM in your browser.

ok, i have installed the scm tool (although i could find it in the All Downloads section). i am getting the error 54, which according to the documentation, Indicates that one or more of the workspaces that are loaded in the sandbox are unreachable; therefore, the output from the status command does not include the status of all the workspaces in the sandbox.

I dont know why this is happening, because the <scm> tag in the Maven POM looks good to me.

 <scm>
        <developerConnection>scm:jazz:<username>;<password>@https://<serveraddress>/ccm01:Services Sandbox Area Stream Workspace</developerConnection>
    </scm>

I think this is correct way, but while typing this, the idea did occur, am i having problems because in the password, i am using the "@" character?

I was able to get the scm tools (although i could not find in the All download section), and now i am getting the error 54 which acording to the IBM website,
indicates that one or more of the workspaces that are loaded in the sandbox are unreachable; therefore, the output from the status command does not include the status of all the workspaces in the sandbox.

I have this in my POM file
 <scm>
        <developerConnection>scm:jazz:<usernamer>;<password>@https://<servername>/ccm01:Services Sandbox Area Stream Workspace</developerConnection>
    </scm>
    
Now this seams correct to me, but while writting this, and idea came to mind, am i getting this error, because the password contains the "@"  character ?

does this command work on its own from the commandline?

scm list workspaces -u username -P password -r https://localhost:9143/ccm

change username, password and server url

Yes it does, but that is a different way from when using the settings in the POM, and i cannot see my workspace, because this command is not accepting the -m (maximum) parameter

ok, that was dumb of me, using the -m 1000, i can see the workspace that i am looking for, but again, i am suspecting that it is something to do with the POM configuration, i have tried to use <username> in the scm plugin configuration, but i still get 54 error

also executing in the command like the maven does:

Executing: cmd.exe /X /C "scm status --username <username> --password * --wide"

i get this info

Workspace: (1000) "Services Sandbox Area Stream Workspace" <-> (1001) "Services Sandbox Area Stream"
  Component: (1002) "Services Sandbox Area Default Component"
    Baseline: (1003) 1 "Initial Baseline"

i am running out of ideas what could be wrong



looking back at the prior post

scm:jazz:<username>;<password>@https://<serveraddress>;

I'd say it looks like a parser error

scm:jazz:sam;password@something@https://<serveraddress>;
if it is looking for the @
strange to use two different delimiters on the same string.

but I get

Could not log in to https://localhost:9143/ccm/ as user xxx: CRJAZ0124E The user  name or password is invalid.
when the password is wrong

and 
Invalid repository URI: phttps://localhost:9145/ccm
if the repo string is wrong (has part of password as leading chars)

and
Could not log in to https://localhost:9145/ccm as user xxx: CRJAZ2381E Cannot connect to the repository at URL "https://localhost:9145/ccm", make sure that the ...

so I don't see how you get the error 45 yet.
if the url is wrong (bad port number)

showing 5 of 13 show 8 more comments


One answer

Permanent link
You have to download "Build Toolkit".

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 70
× 45

Question asked: Jun 16 '14, 12:19 p.m.

Question was seen: 6,821 times

Last updated: Jun 23 '14, 3:34 p.m.

Confirmation Cancel Confirm