Examples of SetSnapshotOperation


Examples of org.sonatype.nexus.proxy.maven.metadata.operations.SetSnapshotOperation

      gavMd.setVersion(gav.getBaseVersion());

      // GAV metadata is only meaningful to snapshot artifacts
      if (gav.isSnapshot()) {
        operations.add(new SetSnapshotOperation(new SnapshotOperand(
            ModelVersionUtility.getModelVersion(gavMd), TimeUtil.getUTCTimestamp(),
            MetadataBuilder.createSnapshot(request.getVersion()), buildVersioning(gav))));

        MetadataBuilder.changeMetadata(gavMd, operations);
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.metadata.operations.SetSnapshotOperation

      throws MetadataException
  {
    List<MetadataOperation> ops = new ArrayList<MetadataOperation>();

    for (Gav gav : artifactNames) {
      ops.add(new SetSnapshotOperation(new SnapshotOperand(ModelVersionUtility.LATEST_MODEL_VERSION,
          TimeUtil.getUTCTimestamp(), buildSnapshot(gav), buildVersion(gav))));
    }

    MetadataBuilder.changeMetadata(metadata, ops);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.