Project: talendesb
Issue TESB-3654: Add flexibility in artifact publishing with SNAPSHOTS
Since the fixed version once published can't be overwritten in the Archiva repository we need to give our users a support and guidance to use SNAPSHOT versions instead. Practially speaking publishing of the non-SNAPSHOT versions is very rare event, therefore by default we should always use SNAPSHOT version, and ask an explicit confirmation from user if she would like to publish a released version. Following things need to be doable: * Change the Archiva settings in the Studio preferences. User should be able to configure two repository locations instead of one. It should be 'Snapshot repository' and 'Release repository', default names are *repo-snapshot* and *repo-release*. Default username/password should be *tadmin*/*tadmin*. These settings will be pre-configured in Archiva by default which is done by TAC team now. * Make sure a SNAPSHOT version is published by default, and snapshots are published to the 'Snapthos repository'. * Make sure we comply with *maven-3* SNAPSHOT naming policy (example SNAPSHOT-[TIMESTAMP].jar) * Make sure user is warned and an explicit confirmation is requested when publishing the release version. * Make sure releases are published to the 'Release repository' and not to the 'Snapshot repository'.
Story points: 2