It's all about the answers!

Ask a question

Maven SCM plugin is not working?


Ruben Fragoso (611) | asked Jun 16 '14, 12:19 p.m.
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.




Comments
Ralph Schoon commented Jun 16 '14, 12:36 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.


sam detweiler commented Jun 16 '14, 9:41 p.m. | edited Jun 16 '14, 9:47 p.m.

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


Ruben Fragoso commented Jun 17 '14, 6:12 a.m.

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


Ralph Schoon commented Jun 17 '14, 6:25 a.m. | edited Jun 17 '14, 6:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.


Ruben Fragoso commented Jun 17 '14, 6:29 a.m.

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


Ralph Schoon commented Jun 17 '14, 6:32 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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


Ruben Fragoso commented Jun 17 '14, 6:58 a.m.

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?


Ruben Fragoso commented Jun 17 '14, 7:01 a.m.

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 ?


sam detweiler commented Jun 17 '14, 8:33 a.m.

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


Ruben Fragoso commented Jun 17 '14, 8:37 a.m. | edited Jun 17 '14, 8:38 a.m.

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


Ruben Fragoso commented Jun 17 '14, 8:42 a.m.

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


Ruben Fragoso commented Jun 17 '14, 8:49 a.m.

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




sam detweiler commented Jun 17 '14, 8:51 a.m. | edited Jun 17 '14, 9:07 a.m.

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
Chetan Chokshi (1) | answered Jun 23 '14, 3:34 p.m.
You have to download "Build Toolkit".

Your answer


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