It's all about the answers!

Ask a question

Jazz scm provider fails in maven with "Failed to execute goal org.apache.maven.plugins:maven-release-plugin"


jayeshkumar patel (611) | asked Sep 25 '14, 9:26 a.m.
edited Apr 28 '15, 8:23 a.m. by Krzysztof Kaźmierczyk (7.4k374103)
Hello,
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

Comments
Ralph Schoon commented Sep 26 '14, 3:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The error message only shows

https://rtc01-gr.cgi.int
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.

One answer



permanent link
jayeshkumar patel (611) | answered Sep 26 '14, 10:36 a.m.
Hi,
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
Chris Graham commented Apr 18 '15, 8:19 a.m.

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.

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.