Examples of updateTimestamp()


Examples of org.apache.maven.artifact.repository.metadata.Versioning.updateTimestamp()

    }

    private ArtifactMetadata createMetadata( Artifact artifact )
    {
        Versioning versioning = new Versioning();
        versioning.updateTimestamp();
        versioning.addVersion( artifact.getVersion() );

        if ( artifact.isRelease() )
        {
            versioning.setRelease( artifact.getVersion() );
View Full Code Here

Examples of org.apache.maven.artifact.repository.metadata.Versioning.updateTimestamp()

            snapshot.setLocalCopy( true );
            artifact.addMetadata( new SnapshotArtifactRepositoryMetadata( artifact, snapshot ) );
        }

        Versioning versioning = new Versioning();
        versioning.updateTimestamp();
        versioning.addVersion( artifact.getBaseVersion() );
        if ( artifact.isRelease() )
        {
            versioning.setRelease( artifact.getBaseVersion() );
        }
View Full Code Here

Examples of org.apache.maven.artifact.repository.metadata.Versioning.updateTimestamp()

    }

    private ArtifactMetadata createMetadata( Artifact artifact )
    {
        Versioning versioning = new Versioning();
        versioning.updateTimestamp();
        versioning.addVersion( artifact.getVersion() );

        if ( artifact.isRelease() )
        {
            versioning.setRelease( artifact.getVersion() );
View Full Code Here

Examples of org.apache.maven.artifact.repository.metadata.Versioning.updateTimestamp()

    }

    private ArtifactMetadata createMetadata( Artifact artifact )
    {
        Versioning versioning = new Versioning();
        versioning.updateTimestamp();
        versioning.addVersion( artifact.getVersion() );

        if ( artifact.isRelease() )
        {
            versioning.setRelease( artifact.getVersion() );
View Full Code Here

Examples of org.apache.maven.artifact.repository.metadata.Versioning.updateTimestamp()

    }

    private ArtifactMetadata createMetadata( Artifact artifact )
    {
        Versioning versioning = new Versioning();
        versioning.updateTimestamp();
        versioning.addVersion( artifact.getVersion() );

        if ( artifact.isRelease() )
        {
            versioning.setRelease( artifact.getVersion() );
View Full Code Here

Examples of org.apache.maven.artifact.repository.metadata.Versioning.updateTimestamp()

    }

    private ArtifactMetadata createMetadata( Artifact artifact )
    {
        Versioning versioning = new Versioning();
        versioning.updateTimestamp();
        versioning.addVersion( artifact.getVersion() );

        if ( artifact.isRelease() )
        {
            versioning.setRelease( artifact.getVersion() );
View Full Code Here

Examples of org.apache.maven.artifact.repository.metadata.Versioning.updateTimestamp()

    }

    private ArtifactMetadata createMetadata( Artifact artifact )
    {
        Versioning versioning = new Versioning();
        versioning.updateTimestamp();
        versioning.addVersion( artifact.getVersion() );

        if ( artifact.isRelease() )
        {
            versioning.setRelease( artifact.getVersion() );
View Full Code Here

Examples of org.apache.maven.artifact.repository.metadata.Versioning.updateTimestamp()

        }
        Artifact projectArtifact = project.getArtifact();

        Versioning versioning = new Versioning();
        versioning.setLatest( projectArtifact.getVersion() );
        versioning.updateTimestamp();
        ArtifactRepositoryMetadata metadata = new ArtifactRepositoryMetadata( projectArtifact, versioning );
        projectArtifact.addMetadata( metadata );

        GroupRepositoryMetadata groupMetadata = new GroupRepositoryMetadata( project.getGroupId() );
        groupMetadata.addPluginMapping( getGoalPrefix(), project.getArtifactId(), project.getName() );
View Full Code Here

Examples of org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp()

    log.debug("Created temporary indexing context " + location + " for repository " + repository.getId());

    try {
      runnable.run(temporary);

      temporary.updateTimestamp(true);

      exclusiveSingle(repository, new Runnable()
      {
        @Override
        public void run(IndexingContext target)
View Full Code Here

Examples of org.apache.maven.index.context.IndexingContext.updateTimestamp()

                            // TODO check if update exists !!
                            nexusIndexer.deleteArtifactFromIndex( ac, context );
                            nexusIndexer.addArtifactToIndex( ac, context );
                        }

                        context.updateTimestamp();

                        // close the context if not a repo scan request
                        if ( !indexingTask.isExecuteOnEntireRepo() )
                        {
                            log.debug( "Finishing indexing task on resource file : {}",
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.