Package org.apache.maven.plugin.version

Examples of org.apache.maven.plugin.version.PluginVersionResolutionException


            {
                DefaultArtifactVersion requiredVersion =
                    new DefaultArtifactVersion( project.getPrerequisites().getMaven() );
                if ( runtimeInformation.getApplicationVersion().compareTo( requiredVersion ) < 0 )
                {
                    throw new PluginVersionResolutionException( plugin.getGroupId(), plugin.getArtifactId(),
                                                                "Plugin requires Maven version " + requiredVersion );
                }
            }
        }
        catch ( ProjectBuildingException e )
View Full Code Here


            result.setVersion( versions.latestVersion );
            result.setRepository( ( versions.latestRepository == null ) ? localRepo : versions.latestRepository );
        }
        else
        {
            throw new PluginVersionResolutionException( request.getGroupId(), request.getArtifactId(), localRepo,
                                                        request.getRepositories(),
                                                        "Plugin not found in any plugin repository" );
        }

        return result;
View Full Code Here

            result.setVersion( version );
            result.setRepository( repo );
        }
        else
        {
            throw new PluginVersionResolutionException( request.getGroupId(), request.getArtifactId(),
                                                        request.getRepositorySession().getLocalRepository(),
                                                        request.getRepositories(),
                                                        "Plugin not found in any plugin repository" );
        }
    }
View Full Code Here

            {
                DefaultArtifactVersion requiredVersion =
                    new DefaultArtifactVersion( project.getPrerequisites().getMaven() );
                if ( runtimeInformation.getApplicationVersion().compareTo( requiredVersion ) < 0 )
                {
                    throw new PluginVersionResolutionException( plugin.getGroupId(), plugin.getArtifactId(),
                                                                "Plugin requires Maven version " + requiredVersion );
                }
            }
        }
        catch ( ProjectBuildingException e )
View Full Code Here

            {
                DefaultArtifactVersion requiredVersion =
                    new DefaultArtifactVersion( project.getPrerequisites().getMaven() );
                if ( runtimeInformation.getApplicationVersion().compareTo( requiredVersion ) < 0 )
                {
                    throw new PluginVersionResolutionException( plugin.getGroupId(), plugin.getArtifactId(),
                                                                "Plugin requires Maven version " + requiredVersion );
                }
            }
        }
        catch ( ProjectBuildingException e )
View Full Code Here

            {
                DefaultArtifactVersion requiredVersion =
                    new DefaultArtifactVersion( project.getPrerequisites().getMaven() );
                if ( runtimeInformation.getApplicationVersion().compareTo( requiredVersion ) < 0 )
                {
                    throw new PluginVersionResolutionException( plugin.getGroupId(), plugin.getArtifactId(),
                                                                "Plugin requires Maven version " + requiredVersion );
                }
            }
        }
        catch ( ProjectBuildingException e )
View Full Code Here

            result.setVersion( versions.latestVersion );
            result.setRepository( ( versions.latestRepository == null ) ? localRepo : versions.latestRepository );
        }
        else
        {
            throw new PluginVersionResolutionException( request.getGroupId(), request.getArtifactId(), localRepo,
                                                        request.getRepositories(),
                                                        "Plugin not found in any plugin repository" );
        }

        return result;
View Full Code Here

            result.setVersion( version );
            result.setRepository( repo );
        }
        else
        {
            throw new PluginVersionResolutionException( request.getGroupId(), request.getArtifactId(),
                                                        request.getRepositorySession().getLocalRepository(),
                                                        request.getRepositories(),
                                                        "Plugin not found in any plugin repository" );
        }
    }
View Full Code Here

            result.setVersion( versions.latestVersion );
            result.setRepository( ( versions.latestRepository == null ) ? localRepo : versions.latestRepository );
        }
        else
        {
            throw new PluginVersionResolutionException( request.getGroupId(), request.getArtifactId(), localRepo,
                                                        request.getRepositories(),
                                                        "Plugin not found in any plugin repository" );
        }

        return result;
View Full Code Here

        {
            result = resolveFromRepository( request );

            if ( StringUtils.isEmpty( result.getVersion() ) )
            {
                throw new PluginVersionResolutionException( request.getGroupId(), request.getArtifactId(),
                                                            request.getLocalRepository(),
                                                            request.getRemoteRepositories(),
                                                            "Plugin not found in any plugin repository" );
            }
            else if ( logger.isDebugEnabled() )
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.version.PluginVersionResolutionException

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.