Examples of toArtifactReference()


Examples of org.apache.archiva.repository.ManagedRepositoryContent.toArtifactReference()

        log.info( "Processing entry [" + path + "] from repository [" + this.repository.getId() + "]" );

        try
        {
            ManagedRepositoryContent repositoryContent = repositoryContentFactory.getManagedRepositoryContent( repository.getId() );
            ArtifactReference artifact = repositoryContent.toArtifactReference( path );

            repositorySession.getRepository().getArtifacts( repository.getId(), artifact.getGroupId(),
                                                            artifact.getArtifactId(), artifact.getVersion() );
        }
        catch ( RepositoryException | LayoutException | MetadataResolutionException e )
View Full Code Here

Examples of org.apache.maven.archiva.repository.layout.BidirectionalRepositoryLayout.toArtifactReference()

                return;
            }

            try
            {
                artifact = resourceLayout.toArtifactReference( resource );
                if ( artifact != null )
                {
                    connectors.fetchFromProxies( managedRepository, artifact );
                    request.getRequest().setPathInfo( layout.toPath( artifact ) );
                    return;
View Full Code Here

Examples of org.apache.maven.archiva.repository.layout.BidirectionalRepositoryLayout.toArtifactReference()

            String relativePath = PathUtil.getRelative( managedRepository.getUrl().getPath(), repoFiles[i] );

            if ( matchesArtifactPattern( relativePath ) )
            {
                ArtifactReference artifact = layout.toArtifactReference( relativePath );

                return artifact;
            }
        }
View Full Code Here

Examples of org.apache.maven.archiva.repository.layout.BidirectionalRepositoryLayout.toArtifactReference()

            String relativePath = PathUtil.getRelative( managedRepository.getUrl().getPath(), repoFiles[i] );

            if ( matchesArtifactPattern( relativePath ) )
            {
                ArtifactReference artifact = layout.toArtifactReference( relativePath );

                if ( VersionUtil.isSnapshot( artifact.getVersion() ) )
                {
                    foundVersions.add( artifact.getVersion() );
                }
View Full Code Here

Examples of org.apache.maven.archiva.repository.layout.BidirectionalRepositoryLayout.toArtifactReference()

            return;
        }

        try
        {
            artifact = resourceLayout.toArtifactReference( resource );
            if ( artifact != null )
            {
                applyServerSideRelocation( artifact );

                connectors.fetchFromProxies( managedRepository, artifact );
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.