Trouble configuring Maven SCM plugin for RTC
I'm struggling at getting the Maven SCM plugin for RTC properly configured in my pom. My goal is to use the maven-release-plugin, but at the moment, I'm just trying to validate that I have the SCM properly configured. In my pom, I have the following:
And a corresponding <server> entry in my settings.xml with id scm-dev.domain.local.
However, when I try a simple command `mvn scm:status` I get the following error:
If I try `mvn scm:list` I get a different error code:
Is my setup incorrect, or am I misunderstanding how to use this plugin?
|
4 answers
Hi.
Interesting errors. None that I've seen before, either by me or reported to me. Firstly, what version are you using? You should also try running mvn release:prepare with -X (mvn -X release:prepare). That will give you the debug output which will also include all of the raw output from the calls to "scm.exe ..." Here is a section of the pom.xml that I used to test all of my releases whilst developing the plugin: The thing that you need to remember, is that maven is just a wrapper for the underling SCM being used, be it SVN, Git, TFS or as in this case RTC.<!-- Specify the SCM settings. Used as part of the release process to create tags etc. --> <scm> So, when push comes to shove, we need to get the underling scm command working correctly, once they are working, then it's a matter of me getting the plugin to call them correctly. Ah, good I see that you've posted on the main question thread. It's best to keep the main thread of questions/answers there. I'm in the process of upgrading the RTC VM that I have, from V3.0.0 to 3.0.1.6 Ifix 5 (done) to 4.0 and all point releases to 5.0.2, so I can now easily track issues specific to any particular versions. So your timing is good! :) -Chris Comments
Eric Benzacar
commented Apr 17 '15, 1:37 p.m.
I didn't want to pollute the main thread (general questions) with specifics like this, but did try to link to it.
I agree - my first step is to get the SCM working, which is why I was trying something simple like scm:list or scm:status. And getting 54 or 1 as error msgs isn't telling me much unfortuntately. I did find an exit code guide here but both error codes don't tell me much as to where the original problem is.
Could the issue be related to my repo being an HTTPS repo with a self-signed certificate? But I would have expected to see an HTTPS error in the stack trace (for which there is none)
Eric Benzacar
commented Apr 21 '15, 3:12 p.m.
After a bunch of failed trial and error attempts, I finally decided to change the workspace name to something without spaces and it seems to work. Either that, or manually performing an scm login first seems to have unlocked my access issues.
Chris Graham
commented Apr 21 '15, 7:25 p.m.
Heh. Never try two changes at once. :)
|
From your sandbox, what is the output of "SCM status", don't edit it, just paste it all here.
When running release:prepare are you adding the -D to point to a different location?
What version of RTC are you using?
Comments I'm using RTC 4.0.2, and running into some more frustrations. I don't know if there is anyway around my issue.
At the moment, if I have my RTC client (RAD) opened, I cannot seem to run any scm commands:
Which means that every time I want to do anything, I have to close eclipse, run a test, and then re-open eclipse to make changes. Quite a pain.
Is there anything I can do to avoid this headache? Running mvn release:prepare and having it fail b/c files are modified, then having to re-open eclipse to make the changes, close eclipse, re-run mvn release:prepare, etc, is not a functional workflow.
Chris Graham
commented Apr 21 '15, 7:32 p.m.
The "Another RCP app" error is a pure jazz issue - not a maven one. You can not have two jazz clients connected to the same workspace at once.
|
I'm also running into a fairly big limitation right now in that we have an operation behaviour requiring a work item to be assigned to a change set upon deliver. Is there anyway to have the plugin do something like that if we preconfigure which work item to assign?
Is there someway I can fork just the jazz-scm plugin and modify it and tell maven to use a different version of the jazz-scm plugin, or do I have to fork the entire scm plugin to accomplish something like that?
Comments
Chris Graham
commented Apr 21 '15, 7:43 p.m.
Don't bother forking. The reason that I'm working though all of the upgrade pain at the moment is to work though all of the versions of RTC and fix the issues that are specific to RTC releases.
|
I just noticed something that seems a little odd. My release-plugin failed due to the WorkItem issue (as mentioned above); given SCM-775, that's expected behaviour.
But when I looked at my pom, I noticed that the release plugin modified more than just my pom version information. It also modified my <scm> data:
Originally was:
However it was changed to:
As you can see, the connection/developerConnection/url details have had their definitions change to reflect the artifactId-version. This seems unexpected. Or is this normal/expected behaviour?
Comments No, that is totally normal. The URL's are rewritten so that they point to the tag location. If you look closely, you will now have a release_poc_parent-0.0.1 workspace.
Chris Graham
commented Apr 22 '15, 10:24 p.m.
When the release process completes successfully, you'll see that the scm section urls are put back to their originals.
Eric Benzacar
commented Apr 23 '15, 12:09 p.m.
That's somewhat what I had suspected. However, I'm a bit unclear on the value as that URL doesn't actually exist and doesn't actually work (at least in my case). Or is that just something inherited from the scm plugin that can't be touched?
Chris Graham
commented Apr 23 '15, 6:11 p.m.
I'm still waiting on a full -X execution log. Please email it to me privately if needed.
Eric Benzacar
commented Apr 23 '15, 10:00 p.m.
Sorry - I never bothered sending you a -X log as I had managed to make it work finally (getting rid of those strange exit code errors). Please let me know if you still want it, and I will email a log to you. |
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.