Examples of LegacyArtifactPath


Examples of org.apache.maven.archiva.configuration.LegacyArtifactPath

        // 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() );
          artifact.setType( legacyPath.getType() );
                return artifact;
            }
        }

        String normalizedPath = StringUtils.replace( path, "\\", "/" );
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.