You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Raffaele Verre (JIRA)" <ji...@codehaus.org> on 2009/10/23 12:33:27 UTC

[jira] Created: (SCM-506) Read scmVersion directly from pom

Read scmVersion directly from pom
---------------------------------

                 Key: SCM-506
                 URL: http://jira.codehaus.org/browse/SCM-506
             Project: Maven SCM
          Issue Type: Improvement
          Components: maven-plugin
    Affects Versions: 1.2, 1.1, 1.0
         Environment: all environments
            Reporter: Raffaele Verre
         Attachments: CheckoutMojo.java

Is impossible to run "mvn scm:bootstrap" without specifing the parameter scmVersionType and scmVersion and retrieve all that I need to checkout a project from the pom because the CheckoutMojo class doesn't read the project/scm/tag value so, by default, checkout the HEAD if no parameter is passing.
This can be trivial if we use this command in a particular configuration in whitch no parameter can be passed to maven and the project is on a different branch

To resolve this issue, I've modified the source code from 

@parameter expression="${scmVersion}"

to 

@parameter expression="${scmVersion}" default-value="${project.scm.tag}"




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SCM-506) Read scmVersion directly from pom

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated SCM-506:
-----------------------------

         Priority: Minor  (was: Major)
    Fix Version/s: 1.x

> Read scmVersion directly from pom
> ---------------------------------
>
>                 Key: SCM-506
>                 URL: http://jira.codehaus.org/browse/SCM-506
>             Project: Maven SCM
>          Issue Type: Improvement
>          Components: maven-plugin
>    Affects Versions: 1.0, 1.1, 1.2
>         Environment: all environments
>            Reporter: Raffaele Verre
>            Priority: Minor
>             Fix For: 1.x
>
>         Attachments: CheckoutMojo.java
>
>
> Is impossible to run "mvn scm:bootstrap" without specifing the parameter scmVersionType and scmVersion and retrieve all that I need to checkout a project from the pom because the CheckoutMojo class doesn't read the project/scm/tag value so, by default, checkout the HEAD if no parameter is passing.
> This can be trivial if we use this command in a particular configuration in whitch no parameter can be passed to maven and the project is on a different branch
> To resolve this issue, I've modified the source code from 
> @parameter expression="${scmVersion}"
> to 
> @parameter expression="${scmVersion}" default-value="${project.scm.tag}"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-506) Read scmVersion directly from pom

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=199868#action_199868 ] 

Olivier Lamy commented on SCM-506:
----------------------------------

why not ${project.version} ?
btw this will work only for released version.
For trunk/depending on the scm you have to specify the version with the parameter.


> Read scmVersion directly from pom
> ---------------------------------
>
>                 Key: SCM-506
>                 URL: http://jira.codehaus.org/browse/SCM-506
>             Project: Maven SCM
>          Issue Type: Improvement
>          Components: maven-plugin
>    Affects Versions: 1.0, 1.1, 1.2
>         Environment: all environments
>            Reporter: Raffaele Verre
>             Fix For: 1.x
>
>         Attachments: CheckoutMojo.java
>
>
> Is impossible to run "mvn scm:bootstrap" without specifing the parameter scmVersionType and scmVersion and retrieve all that I need to checkout a project from the pom because the CheckoutMojo class doesn't read the project/scm/tag value so, by default, checkout the HEAD if no parameter is passing.
> This can be trivial if we use this command in a particular configuration in whitch no parameter can be passed to maven and the project is on a different branch
> To resolve this issue, I've modified the source code from 
> @parameter expression="${scmVersion}"
> to 
> @parameter expression="${scmVersion}" default-value="${project.scm.tag}"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira