Package org.apache.maven.archiva.consumers

Examples of org.apache.maven.archiva.consumers.ConsumerException


        {
            this.repositoryLayout = layoutFactory.getLayout( this.repository.getLayoutType() );
        }
        catch ( LayoutException e )
        {
            throw new ConsumerException(
                "Unable to initialize consumer due to unknown repository layout: " + e.getMessage(), e );
        }
    }
View Full Code Here


        }
        catch ( ArchivaDatabaseException e )
        {
            String emsg = "Unable to save problem with artifact location to DB: " + e.getMessage();
            getLogger().warn( emsg, e );
            throw new ConsumerException( emsg, e );
        }
    }
View Full Code Here

            }

        }
        catch ( LayoutException le )
        {
            throw new ConsumerException( le.getMessage() );
        }

        return true;
    }
View Full Code Here

        }
        catch ( ArchivaDatabaseException e )
        {
            String emsg = "Unable to save problem with artifact location to DB: " + e.getMessage();
            getLogger().warn( emsg, e );
            throw new ConsumerException( emsg, e );
        }
    }
View Full Code Here

        {
            this.layout = layoutFactory.getLayout( repository.getModel().getLayoutName() );
        }
        catch ( LayoutException e )
        {
            throw new ConsumerException( e.getMessage(), e );
        }
    }
View Full Code Here

        {
            this.repositoryLayout = layoutFactory.getLayout( repository.getLayoutType() );
        }
        catch ( LayoutException e )
        {
            throw new ConsumerException(
                "Cannot operate with bad layout definition on repo [" + repository.getId() + "]: " + e.getMessage(),
                e );
        }
        this.scanStartTimestamp = System.currentTimeMillis();
    }
View Full Code Here

            updateVersionMetadata( artifact, path );
            updateProjectMetadata( artifact, path );
        }
        catch ( LayoutException e )
        {
            throw new ConsumerException( "Unable to convert to artifact reference: " + path, e );
        }
    }
View Full Code Here

        this.repositoryDir = new File( repository.getUrl().getPath() );

        String layoutName = repository.getModel().getLayoutName();
        if ( !bidirectionalLayoutMap.containsKey( layoutName ) )
        {
            throw new ConsumerException( "Unable to process repository with layout [" + layoutName +
                "] as there is no corresponding " + BidirectionalRepositoryLayout.class.getName() +
                " implementation available." );
        }

        this.layout = (BidirectionalRepositoryLayout) bidirectionalLayoutMap.get( layoutName );
View Full Code Here

        {
            repositoryLayout = layoutFactory.getLayout( repository.getLayoutType() );
        }
        catch ( LayoutException e )
        {
            throw new ConsumerException(
                "Unable to initialize consumer due to unknown repository layout: " + e.getMessage(), e );
        }

        ManagedRepositoryConfiguration repoConfig =
            configuration.getConfiguration().findManagedRepositoryById( repository.getId() );
View Full Code Here

            repoPurge.process( path );
        }
        catch ( RepositoryPurgeException rpe )
        {
            throw new ConsumerException( rpe.getMessage() );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.archiva.consumers.ConsumerException

Copyright © 2018 www.massapicom. 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.