Maven 2.x One Plugin

[maven-one-plugin] uniqueVersion=true to generate snapshots with timestamp in m1 repo

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    all
  • Number of attachments :
    0

Description

As the uniqueVersion=true in distribution management to deploy in m2 repo with jars with timestamps.
Is there any way to have the same parameters with the maven-one-plugin ?
Thanks,

  • Olivier

Activity

Hide
Michal Szalinski added a comment -

solution which I found on my side for this problem is to change:

line 119 of MavenOneRepositoryDeployMojo

ArtifactRepository deploymentRepository = factory.createDeploymentArtifactRepository( remoteRepositoryId,
remoteRepositoryUrl,
legacyLayout, false );
into:

ArtifactRepository deploymentRepository = factory.createDeploymentArtifactRepository( remoteRepositoryId,
remoteRepositoryUrl,
legacyLayout, true );
then with usage of SnapshotTransformation (from maven 2.1.0?)
it timestamps artifact correctly in maven1 repository

Show
Michal Szalinski added a comment - solution which I found on my side for this problem is to change: line 119 of MavenOneRepositoryDeployMojo ArtifactRepository deploymentRepository = factory.createDeploymentArtifactRepository( remoteRepositoryId, remoteRepositoryUrl, legacyLayout, false ); into: ArtifactRepository deploymentRepository = factory.createDeploymentArtifactRepository( remoteRepositoryId, remoteRepositoryUrl, legacyLayout, true ); then with usage of SnapshotTransformation (from maven 2.1.0?) it timestamps artifact correctly in maven1 repository

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated: