当前位置: 首页>>代码示例>>Java>>正文


Java ArtifactMetadataRetrievalException.getMessage方法代码示例

本文整理汇总了Java中org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException.getMessage方法的典型用法代码示例。如果您正苦于以下问题:Java ArtifactMetadataRetrievalException.getMessage方法的具体用法?Java ArtifactMetadataRetrievalException.getMessage怎么用?Java ArtifactMetadataRetrievalException.getMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException的用法示例。


在下文中一共展示了ArtifactMetadataRetrievalException.getMessage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException when things go wrong with XML streaming
 * @see org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useNextSnapshots( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( getProject().getDependencies() != null && isProcessingDependencies() )
        {
            useNextSnapshots( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:mojohaus,项目名称:versions-maven-plugin,代码行数:27,代码来源:UseNextSnapshotsMojo.java

示例2: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException when things go wrong with XML streaming
 * @see AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( isProcessingParent() && getProject().hasParent() ) {
            useReactor( pom, getProject().getParent() );
        }
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useReactor( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( getProject().getDependencies() != null && isProcessingDependencies() )
        {
            useReactor( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:mojohaus,项目名称:versions-maven-plugin,代码行数:30,代码来源:UseReactorMojo.java

示例3: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException when things go wrong with XML streaming
 * @see AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useReleases( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( getProject().getDependencies() != null && isProcessingDependencies() )
        {
            useReleases( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:mojohaus,项目名称:versions-maven-plugin,代码行数:27,代码来源:ForceReleasesMojo.java

示例4: findLatestVersion

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * Finds the latest version of the specified artifact that matches the version range.
 *
 * @param artifact The artifact.
 * @param versionRange The version range.
 * @param allowingSnapshots <code>null</code> for no override, otherwise the local override to apply.
 * @return The latest version of the specified artifact that matches the specified version range or
 *         <code>null</code> if no matching version could be found.
 * @throws MojoExecutionException If the artifact metadata could not be found.
 * @since 1.0-alpha-1
 */
protected ArtifactVersion findLatestVersion( Artifact artifact, VersionRange versionRange,
                                             boolean allowingSnapshots, boolean usePluginRepositories )
    throws MavenReportException
{
    boolean includeSnapshots = this.allowSnapshots;
    if ( allowingSnapshots )
    {
        includeSnapshots = true;
    }
    if ( allowingSnapshots )
    {
        includeSnapshots = false;
    }
    try
    {
        final ArtifactVersions artifactVersions =
            getHelper().lookupArtifactVersions( artifact, usePluginRepositories );
        return artifactVersions.getNewestVersion( versionRange, includeSnapshots );
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MavenReportException( e.getMessage(), e );
    }
}
 
开发者ID:mojohaus,项目名称:versions-maven-plugin,代码行数:36,代码来源:AbstractVersionsReport.java

示例5: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException when things go wrong with XML streaming
 * @see org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getParent() != null && isProcessingParent() )
        {
            useReleases( pom, getProject().getParent() );
        }

        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useReleases( pom, PomHelper.readImportedPOMsFromDependencyManagementSection( pom ) );
            useReleases( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( getProject().getDependencies() != null && isProcessingDependencies() )
        {
            useReleases( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:mojohaus,项目名称:versions-maven-plugin,代码行数:33,代码来源:UseReleasesMojo.java

示例6: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException when things go wrong with XML streaming
 * @see org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useLatestReleases( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( getProject().getDependencies() != null && isProcessingDependencies() )
        {
            useLatestReleases( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:mojohaus,项目名称:versions-maven-plugin,代码行数:27,代码来源:UseLatestReleasesMojo.java

示例7: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException when things go wrong with XML streaming
 * @see AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useLatestSnapshots( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( getProject().getDependencies() != null && isProcessingDependencies() )
        {
            useLatestSnapshots( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:mojohaus,项目名称:versions-maven-plugin,代码行数:27,代码来源:UseLatestSnapshotsMojo.java

示例8: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException when things go wrong with XML streaming
 * @see org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useNextVersions( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( getProject().getDependencies() != null && isProcessingDependencies() )
        {
            useNextVersions( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:mojohaus,项目名称:versions-maven-plugin,代码行数:27,代码来源:UseNextVersionsMojo.java

示例9: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException
 *          when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException
 *          when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException
 *          when things go wrong with XML streaming
 * @see org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useNextSnapshots( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( isProcessingDependencies() )
        {
            useNextSnapshots( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:petr-ujezdsky,项目名称:versions-maven-plugin-svn-clone,代码行数:30,代码来源:UseNextSnapshotsMojo.java

示例10: findLatestVersion

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * Finds the latest version of the specified artifact that matches the version range.
 *
 * @param artifact          The artifact.
 * @param versionRange      The version range.
 * @param allowingSnapshots <code>null</code> for no override, otherwise the local override to apply.
 * @return The latest version of the specified artifact that matches the specified version range or
 *         <code>null</code> if no matching version could be found.
 * @throws MojoExecutionException If the artifact metadata could not be found.
 * @since 1.0-alpha-1
 */
protected ArtifactVersion findLatestVersion( Artifact artifact, VersionRange versionRange,
                                             Boolean allowingSnapshots, boolean usePluginRepositories )
    throws MavenReportException
{
    boolean includeSnapshots = Boolean.TRUE.equals( this.allowSnapshots );
    if ( Boolean.TRUE.equals( allowingSnapshots ) )
    {
        includeSnapshots = true;
    }
    if ( Boolean.FALSE.equals( allowingSnapshots ) )
    {
        includeSnapshots = false;
    }
    try
    {
        final ArtifactVersions artifactVersions =
            getHelper().lookupArtifactVersions( artifact, usePluginRepositories );
        return artifactVersions.getNewestVersion( versionRange, includeSnapshots );
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MavenReportException( e.getMessage(), e );
    }
}
 
开发者ID:petr-ujezdsky,项目名称:versions-maven-plugin-svn-clone,代码行数:36,代码来源:AbstractVersionsReport.java

示例11: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException
 *          when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException
 *          when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException
 *          when things go wrong with XML streaming
 * @see org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useReleases( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( isProcessingDependencies() )
        {
            useReleases( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:petr-ujezdsky,项目名称:versions-maven-plugin-svn-clone,代码行数:30,代码来源:UseReleasesMojo.java

示例12: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException
 *          when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException
 *          when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException
 *          when things go wrong with XML streaming
 * @see AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useLatestVersions( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( isProcessingDependencies() )
        {
            useLatestVersions( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:petr-ujezdsky,项目名称:versions-maven-plugin-svn-clone,代码行数:30,代码来源:UseLatestVersionsMojo.java

示例13: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException
 *          when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException
 *          when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException
 *          when things go wrong with XML streaming
 * @see org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useLatestReleases( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( isProcessingDependencies() )
        {
            useLatestReleases( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:petr-ujezdsky,项目名称:versions-maven-plugin-svn-clone,代码行数:30,代码来源:UseLatestReleasesMojo.java

示例14: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException
 *          when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException
 *          when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException
 *          when things go wrong with XML streaming
 * @see AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useLatestSnapshots( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( isProcessingDependencies() )
        {
            useLatestSnapshots( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:petr-ujezdsky,项目名称:versions-maven-plugin-svn-clone,代码行数:30,代码来源:UseLatestSnapshotsMojo.java

示例15: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入方法依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws org.apache.maven.plugin.MojoExecutionException
 *          when things go wrong
 * @throws org.apache.maven.plugin.MojoFailureException
 *          when things go wrong in a very bad way
 * @throws javax.xml.stream.XMLStreamException
 *          when things go wrong with XML streaming
 * @see org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo#update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException
{
    try
    {
        if ( getProject().getDependencyManagement() != null && isProcessingDependencyManagement() )
        {
            useNextVersions( pom, getProject().getDependencyManagement().getDependencies() );
        }
        if ( isProcessingDependencies() )
        {
            useNextVersions( pom, getProject().getDependencies() );
        }
    }
    catch ( ArtifactMetadataRetrievalException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:petr-ujezdsky,项目名称:versions-maven-plugin-svn-clone,代码行数:30,代码来源:UseNextVersionsMojo.java


注:本文中的org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException.getMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。