Jazz scm provider fails in maven with "Failed to execute goal org.apache.maven.plugins:maven-release-plugin"
I am jay and recently we started running maven build using release plugin.
as a part of this plugin i have to provide scm url for connecting to my work space.
now as I have provided that in my parent pom its throwing error during the build that scm url syntax error.
I have check the jazz other link and i am using the same process of providing the scm url for jazz the way they mention.
so i don't know what really wrong with it.
I am also putting that error log here if that help AND also some other info regarding scm and plugin which are in my parent pom.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project aferewrite-master-config: Jazz Url "https://rtc01-gr.cgi.int" is not a valid URL. The Jazz Url syntax is scm:jazz:[username[;password]@]http[s]://server_name[:port]/contextRoot:repositoryWorkspace -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :aferewrite-master-config
MY SCM URL IN MY POM LOOK LIKE THIS
<scm>
<url>scm:jazz:USERID;PASSWORD@https://rtc01-gr.cgi.int:PORT/ccm/:AFE_TEST_0923_TEST</url>
<connection>scm:jazz:https://rtc01-gr.cgi.int:PORT/ccm/:AFE_TEST_0923_TEST</connection>
<developerConnection>scm:jazz:https://rtc01-gr.cgi.int:PORT/ccm/:AFE_TEST_0923_TEST</developerConnection>
</scm>
ALSO I HAVE ADDED SCM DEPNEDENCY IN MY PARENT POM AND JAZZ PROVIDER WHICH ARE AS FOLLOW
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<configuration>
<goals>deploy -Dmaven.test.skip=true</goals>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-jazz</artifactId>
<version>1.9.2</version>
</dependency>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-api</artifactId>
<version>1.9.2</version>
</dependency>
</dependencies>
</plugin>
looking forward to get proper answer if possible.
Thanks
Jay
One answer
Thanks for reply.
So the URL we have is as it is.
But the syntax we are using for scm jazz it's the same way it's mention on jazz.
I still don't know why it's keep saying my jazz URL syntax has error.
Thanks
Comments
Did you get it to work?
<url>scm:jazz:USERID;PASSWORD@https://rtc01-gr.cgi.int:PORT/ccm/:AFE_TEST_0923_TEST</url>
Did you try:
<url>scm:jazz:USERID;PASSWORD@https://rtc01-gr.cgi.int:PORT/ccm:AFE_TEST_0923_TEST</url>
(removal from the trailing space from the contect root).
When I'm back to worting again, I'll run this through the parsing tests.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Sep 26 '14, 3:18 a.m.The error message only shows
so whatever URL you configured it did not make it into the call, I think. I don't know the plugin,however that is what I would look at.