[ https://issues.apache.org/jira/browse/MDEPLOY-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965608#comment-17965608 ]
Olivier Lamy commented on MDEPLOY-53: ------------------------------------- This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-deploy-plugin#135|https://github.com/apache/maven-deploy-plugin/issues/135]. > Should return an error when deploying a version of SNAPSHOT > ----------------------------------------------------------- > > Key: MDEPLOY-53 > URL: https://issues.apache.org/jira/browse/MDEPLOY-53 > Project: Maven Deploy Plugin (Moved to GitHub Issues) > Issue Type: Bug > Affects Versions: 2.3 > Reporter: Kristof Van Cleemput > Priority: Major > > The snapshot that I want to use in a maven2 project is created by maven1. > So I deployed it with the following command: > mvn deploy:deploy-file -DgroupId=GROUP -DartifactId=ARTIFACT > -Dversion=SNAPSHOT -Dpackaging=jar -Dfile=ARTIFACT -SNAPSHOT.jar > -DrepositoryId=REPO-Durl=scp://REPO/maven2/dev > This is NOT correct for maven 2 it should state -Dversion=x.x-SNAPSHOT but > everything just deployed without errors. > Later when using ${baseVersion} it doesn't return SNAPSHOT but the number > After cleaning the repo and redeploying the jar with x.x-SNAPHOT everything > worked like it should => ${baseVersion} returns x.x-SNAPSHOT -- This message was sent by Atlassian Jira (v8.20.10#820010)