[HAP-639] Possible to release Maven project with snapshot dependencies when versions are defined as properties Created: 25/Sep/15 Updated: 14/Nov/17 Resolved: 08/Jun/16
|Project:||Jenkins Artifactory Plug-in|
|Reporter:||Christoffer Kylvåg||Assignee:||Tamir Hadad|
|Labels:||jenkins, maven3, release|
Code snippet below seem to contain the faulty code:
The code only checks the versions tag for text that ends with "-SNAPSHOT". If the pom looks like this:
The code will not find "-SNAPSHOT" in the version-tag text and will therefore let the release go through.
Expected result: Code should when finding a reference to a property in the versions tag look for properties defined either in this pom or a parent pom and also check those for snapshot references.