Examples of PluginVersionResolutionException


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

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

            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

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

            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

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

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

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

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

            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

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

            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

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

            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

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

        {
            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
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.