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

Issue while performing mvn:perform

Hi All,

I was involved in converting the CVS project to RTC/Jazz.
And I was able to successfully load in the jazz server using the Svn dump file created from the CVS repository.
And in our project we were using maven-scm-jazz for the build process.
I was able to execute the mvn release:prepare
And able to prepare the project for release.
But when I was running the mvn release:perfrom -DworkingDirectory=/tmp/maven.
I was getting the below error in the checkout process of the perform step

 [INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.469s
[INFO] Finished at: Fri Sep 05 03:38:53 EDT 2014
[INFO] Final Memory: 8M/25M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:perform (default-cli) on project financing_tools_icfs: Unable to checkout from SCM
[ERROR] Provider message:
[ERROR] Error code for Jazz SCM checkout (load) command - 1
[ERROR] Command output:
[ERROR] Argument syntax error:
[ERROR] Subcommand "load" does not support option "--dir". Try 'scm help load' for more information.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:perform (default-cli) on project financing_tools_icfs: Unable to checkout from SCM
Provider message:
Error code for Jazz SCM checkout (load) command - 1
Command output:
Argument syntax error:
Subcommand "load" does not support option "--dir". Try 'scm help load' for more information.

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:600)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to checkout from SCM
Provider message:
Error code for Jazz SCM checkout (load) command - 1
Command output:
Argument syntax error:
Subcommand "load" does not support option "--dir". Try 'scm help load' for more information.

        at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:140)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
        ... 19 more
Caused by: org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable to checkout from SCM
Provider message:
Error code for Jazz SCM checkout (load) command - 1
Command output:
Argument syntax error:
Subcommand "load" does not support option "--dir". Try 'scm help load' for more information.

        at org.apache.maven.shared.release.phase.CheckoutProjectFromScm.execute(CheckoutProjectFromScm.java:171)
        at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:343)
        at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:289)
        at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:269)
        at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:132)
        ... 21 more
[ERROR]
[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\


But Stil  I am getting the same error.

And also I would Like to get the step for running  build step using  maven-scm-jazz from any one. I m little confuses as i m new to this technologies(Jazz, SCM, Maven).
I m hoping for some one to help me.
Thanks in Advance. 

0 votes

Comments

 Hi All, 

I would like to get suggestion for above issue at the earliest.

Thanks 
Silamparasan.N

If I just throw in a log file dump without a question or more details, I would not expect anyone to really have a look at it.

Skimming through the log reveals that the initial error is that the SCM command line does not succeed to load the files. Carefully read your log and look at the help hinted.

Thanks for providing a bit more information, however, there is still not enough to work with. I would assume there is a maven script. How does it look like? The error message mentions an invalid option, where is the step in the build script? Did you look at the SCM commandline help?


Accepted answer

Permanent link
 I was able to execute "release:prepare" successfully after I down-graded my RTC Client version to 3.0.5 from 3.2.0.

In RTC Client 3.0.5 "scm load" command support "--dir" flag which is used by 1.9 Jazz maven scm provider.

We called IBM and at first they tried to say it was a maven plug-in they didn't control but after our pushing, they looked deeper and found the defect.

Also please note IBM have fixed this issue and supported "--dir" flag again in RTC client version 4.0.6.

Reported workitem:

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=297167 <https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem%26id=297167>  
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=296615 <https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem%26id=296615>  

Silamparasan Navamani selected this answer as the correct answer

0 votes


2 other answers

Permanent link
 Hi Ralph,

I am also getting same error.  "  Subcommand "load" does not support option "--dir".  ""

[INFO] --- maven-release-plugin:2.5:perform (default-cli) @ junit-ext ---
[INFO] Checking out the project to perform the release ...
[INFO] Executing: /bin/sh -c cd /tmp/maven && scm load --force --repository-uri https://localhost:9443/ccm --dir /tmp/maven junit-ext-1.0.0.0.10
[INFO] Working directory: /tmp/maven
[ERROR] Error: Argument syntax error:
Subcommand "load" does not support option "--dir". Try 'scm help load' for more information.

I think this is a bug in maven release plugin. when we execute mvn release:perform command, maven release plugin call scm load command with "--dir" flag which is wrong. scm load command only support "-d" and "--directory" flag but not "--dir".

By any chance do you know any fix or work around for this issue?

Thanks.

0 votes


Permanent link
Hi Ralph,

Thanks, Here I had added the POM of my project.
<scm>
        <url>https://server.com:9443/jazz</url>
        <connection>scm:jazz:user;password;@https://server.com:9443/jazz:web_wkspc</connection>
        <developerConnection>scm:jazz:user;password@https://server.com:9443/jazz:web_wkspc</developerConnection>
    </scm>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.2</version>
                    <configuration>
                        <source>${java-version}</source>
                        <target>${java-version}</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.1.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.7</version>
                    <configuration>
                        <skip>true</skip>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>2.5</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.1</version>
                    <configuration>
                        <remoteTagging>false</remoteTagging>
                    </configuration>
                    <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-provider-jazz</artifactId>
                        <version>1.9</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-api</artifactId>
                        <version>1.9</version>
                    </dependency>
                </dependencies>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-scm-plugin</artifactId>
                <version>1.9</version>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-provider-jazz</artifactId>
                        <version>1.9</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-api</artifactId>
                        <version>1.9</version>
                    </dependency>
                </dependencies>
               
                <configuration>
                    <providerImplementations>
                        <jazz>jazz</jazz>
                    </providerImplementations>
                    <connectionType>developerConnection</connectionType>
                </configuration>
            </plugin>
        </plugins>
    </build>
I believe this would help in analysis the build step. If you required more details of POM. I can help you with the required.
Thanks in advance.

0 votes

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
× 12,031

Question asked: Sep 05 '14, 4:09 a.m.

Question was seen: 5,121 times

Last updated: Sep 08 '14, 8:09 p.m.

Confirmation Cancel Confirm