[ https://issues.apache.org/jira/browse/SCM-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17961843#comment-17961843 ]
ASF GitHub Bot commented on SCM-506: ------------------------------------ jira-importer opened a new issue, #720: URL: https://github.com/apache/maven-scm/issues/720 **[Raffaele Verre](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=verraf)** opened **[SCM-506](https://issues.apache.org/jira/browse/SCM-506?redirect=false)** and commented 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}" --- **Affects:** 1.0, 1.1, 1.2 **Attachments:** - [CheckoutMojo.java](https://issues.apache.org/jira/secure/attachment/12718802/CheckoutMojo.java) (_4.21 kB_) > Read scmVersion directly from pom > --------------------------------- > > Key: SCM-506 > URL: https://issues.apache.org/jira/browse/SCM-506 > Project: Maven SCM (Moved to GitHub Issues) > Issue Type: Improvement > Components: maven-plugin > Affects Versions: 1.0, 1.1, 1.2 > Environment: all environments > Reporter: Raffaele Verre > Priority: Minor > 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 was sent by Atlassian Jira (v8.20.10#820010)