#SB-118 Implement artifact metadata support

- Fixed release & snapshot version sorting.
- Fixed plugin metadata generation.
- Fixed test case.
- Set proper versions for snapshot, latest, release in the metadata.