Package org.apache.maven.artifact.resolver

Examples of org.apache.maven.artifact.resolver.ArtifactNotFoundException


        return DiagnosisUtils.containsInCausality( error, ArtifactNotFoundException.class );
    }

    public String diagnose( Throwable error )
    {
        ArtifactNotFoundException exception =
            (ArtifactNotFoundException) DiagnosisUtils.getFromCausality( error, ArtifactNotFoundException.class );

        StringBuffer message = new StringBuffer();

        message.append( "Failed to resolve artifact.\n" );
        message.append( "\nGroupId: " ).append( exception.getGroupId() );
        message.append( "\nArtifactId: " ).append( exception.getArtifactId() );
        message.append( "\nVersion: " ).append( exception.getVersion() );
        message.append( "\n\n" );
        message.append( "Reason: " ).append( exception.getMessage() );

        if ( !wagonManager.isOnline() )
        {
            message.append( "\n" ).append( SystemWarnings.getOfflineWarning() );
        }
View Full Code Here


            try
            {
                String version = resolveVersion( artifact, localRepository, remoteRepositories );
                if ( Artifact.LATEST_VERSION.equals( version ) )
                {
                    throw new ArtifactNotFoundException( "Unable to determine the latest version", artifact );
                }

                artifact.setBaseVersion( version );
                artifact.updateVersion( version, localRepository );
            }
View Full Code Here

            {
                String version = resolveVersion( artifact, localRepository, remoteRepositories );

                if ( Artifact.RELEASE_VERSION.equals( version ) )
                {
                    throw new ArtifactNotFoundException( "Unable to determine the release version", artifact );
                }

                artifact.setBaseVersion( version );
                artifact.updateVersion( version, localRepository );
            }
View Full Code Here

            {
                String version = resolveVersion( artifact, request );

                if ( Artifact.RELEASE_VERSION.equals( version ) )
                {
                    throw new ArtifactNotFoundException( "Unable to determine the release version", artifact );
                }

                artifact.setBaseVersion( version );
                artifact.updateVersion( version, request.getLocalRepository() );
            }
View Full Code Here

            {
                String version = resolveVersion( artifact, request );

                if ( Artifact.RELEASE_VERSION.equals( version ) )
                {
                    throw new ArtifactNotFoundException( "Unable to determine the release version", artifact );
                }

                artifact.setBaseVersion( version );
                artifact.updateVersion( version, request.getLocalRepository() );
            }
View Full Code Here

            try
            {
                String version = resolveVersion( artifact, request );
                if ( Artifact.LATEST_VERSION.equals( version ) )
                {
                    throw new ArtifactNotFoundException( "Unable to determine the latest version", artifact );
                }

                artifact.setBaseVersion( version );
                artifact.updateVersion( version, request.getLocalRepository() );
            }
View Full Code Here

            if ( throwArtifactResolutionException )
            {
                throw new ArtifactResolutionException( "Catch!", artifact );
            }

            throw new ArtifactNotFoundException( "Catch!", artifact );
        }
    }
View Full Code Here

            if ( throwArtifactResolutionException )
            {
                throw new ArtifactResolutionException( "Catch!", artifact );
            }

            throw new ArtifactNotFoundException( "Catch!", artifact );
        }
    }
View Full Code Here

        return DiagnosisUtils.containsInCausality( error, ArtifactNotFoundException.class );
    }

    public String diagnose( Throwable error )
    {
        ArtifactNotFoundException exception =
            (ArtifactNotFoundException) DiagnosisUtils.getFromCausality( error, ArtifactNotFoundException.class );

        StringBuffer message = new StringBuffer();

        message.append( "Failed to resolve artifact.\n" );
        message.append( "\nGroupId: " ).append( exception.getGroupId() );
        message.append( "\nArtifactId: " ).append( exception.getArtifactId() );
        message.append( "\nVersion: " ).append( exception.getVersion() );
        message.append( "\n\n" );
        message.append( "Reason: " ).append( exception.getMessage() );

        if ( !wagonManager.isOnline() )
        {
            message.append( "\n" ).append( SystemWarnings.getOfflineWarning() );
        }
View Full Code Here

            try
            {
                String version = resolveVersion( artifact, localRepository, remoteRepositories );
                if ( Artifact.LATEST_VERSION.equals( version ) )
                {
                    throw new ArtifactNotFoundException( "Unable to determine the latest version", artifact );
                }

                artifact.setBaseVersion( version );
                artifact.updateVersion( version, localRepository );
            }
View Full Code Here

TOP

Related Classes of org.apache.maven.artifact.resolver.ArtifactNotFoundException

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.