Package org.apache.maven.archiva.configuration

Examples of org.apache.maven.archiva.configuration.LegacyArtifactPath.match()


        getLogger().info( "remove [" + path + "] from legacy artifact path resolution" );
        Configuration configuration = archivaConfiguration.getConfiguration();
        for ( Iterator iterator = configuration.getLegacyArtifactPaths().iterator(); iterator.hasNext(); )
        {
            LegacyArtifactPath legacyArtifactPath = (LegacyArtifactPath) iterator.next();
            if (legacyArtifactPath.match( path ))
            {
                iterator.remove();
            }
        }
        return saveConfiguration( configuration );
View Full Code Here


        // First, look if a custom resolution rule has been set for this artifact
        Collection legacy = configuration.getConfiguration().getLegacyArtifactPaths();
        for ( Iterator iterator = legacy.iterator(); iterator.hasNext(); )
        {
            LegacyArtifactPath legacyPath = (LegacyArtifactPath) iterator.next();
            if ( legacyPath.match( path ) )
            {     
          artifact.setGroupId( legacyPath.getGroupId() );
          artifact.setArtifactId( legacyPath.getArtifactId() );
          artifact.setClassifier( legacyPath.getClassifier() );
          artifact.setVersion( legacyPath.getVersion() );
View Full Code Here

        log.info( "remove [" + path + "] from legacy artifact path resolution" );
        Configuration configuration = archivaConfiguration.getConfiguration();
        for ( Iterator<LegacyArtifactPath> iterator = configuration.getLegacyArtifactPaths().iterator(); iterator.hasNext(); )
        {
            LegacyArtifactPath legacyArtifactPath = (LegacyArtifactPath) iterator.next();
            if (legacyArtifactPath.match( path ))
            {
                iterator.remove();
            }
        }
        return saveConfiguration( configuration );
View Full Code Here

        // First, look if a custom resolution rule has been set for this artifact
        Collection legacy = configuration.getConfiguration().getLegacyArtifactPaths();
        for ( Iterator iterator = legacy.iterator(); iterator.hasNext(); )
        {
            LegacyArtifactPath legacyPath = (LegacyArtifactPath) iterator.next();
            if ( legacyPath.match( path ) )
            {     
          artifact.setGroupId( legacyPath.getGroupId() );
          artifact.setArtifactId( legacyPath.getArtifactId() );
          artifact.setClassifier( legacyPath.getClassifier() );
          artifact.setVersion( legacyPath.getVersion() );
View Full Code Here

        getLogger().info( "remove [" + path + "] from legacy artifact path resolution" );
        Configuration configuration = archivaConfiguration.getConfiguration();
        for ( Iterator iterator = configuration.getLegacyArtifactPaths().iterator(); iterator.hasNext(); )
        {
            LegacyArtifactPath legacyArtifactPath = (LegacyArtifactPath) iterator.next();
            if (legacyArtifactPath.match( path ))
            {
                iterator.remove();
            }
        }
        return saveConfiguration( configuration );
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.