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

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

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

0 votes

Comments

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
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

0 votes

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.

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
× 6,160
× 45

Question asked: Sep 25 '14, 9:26 a.m.

Question was seen: 6,511 times

Last updated: Apr 28 '15, 8:23 a.m.

Confirmation Cancel Confirm