• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ArtifactMetadataRetrievalException类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



ArtifactMetadataRetrievalException类属于org.apache.maven.artifact.metadata包,在下文中一共展示了ArtifactMetadataRetrievalException类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: useReactor

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入依赖的package包/类
private void useReactor( ModifiedPomXMLEventReader pom, MavenProject parent )
        throws XMLStreamException, MojoExecutionException, ArtifactMetadataRetrievalException
{
    for ( Object reactorProject : reactorProjects )
    {
        MavenProject project = (MavenProject) reactorProject;
        if ( StringUtils.equals( project.getGroupId(), parent.getGroupId() )
                && StringUtils.equals( project.getArtifactId(), parent.getArtifactId() )
                && !StringUtils.equals( project.getVersion(), parent.getVersion() ) )
        {
            if ( PomHelper.setProjectParentVersion( pom, project.getVersion() ) )
            {
                getLog().info( "Updated parent " + toString( parent ) + " to version " + project.getVersion() );
            }
        }

    }
}
 
开发者ID:mojohaus,项目名称:versions-maven-plugin,代码行数:19,代码来源:UseReactorMojo.java


示例4: 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


示例5: 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.
 * @param usePluginRepositories
 * @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 ArtifactMetadataRetrievalException 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 ArtifactMetadataRetrievalException, MojoExecutionException
{
    boolean includeSnapshots = this.allowSnapshots;
    if ( Boolean.TRUE.equals( allowingSnapshots ) )
    {
        includeSnapshots = true;
    }
    if ( Boolean.FALSE.equals( allowingSnapshots ) )
    {
        includeSnapshots = false;
    }
    final ArtifactVersions artifactVersions = getHelper().lookupArtifactVersions( artifact, usePluginRepositories );
    return artifactVersions.getNewestVersion( versionRange, includeSnapshots );
}
 
开发者ID:mojohaus,项目名称:versions-maven-plugin,代码行数:29,代码来源:AbstractVersionsUpdaterMojo.java


示例6: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入依赖的package包/类
@Override
protected void update(ModifiedPomXMLEventReader pom) throws MojoExecutionException, MojoFailureException, XMLStreamException, ArtifactMetadataRetrievalException
{
    try
    {
        Model model = PomHelper.getRawModel( pom );
        Scm scm = model.getScm();
        if (scm == null)
        {
            throw new MojoFailureException( "No <scm> was present" );
        }
        getLog().info( "Updating from tag " + scm.getTag() + " > " + newTag );

        boolean success = PomHelper.setProjectValue(pom, "/project/scm/tag", newTag );
        if ( !success )
        {
            throw new MojoFailureException( "Could not update the SCM tag" );
        }
    }
    catch ( IOException e )
    {
        throw new MojoExecutionException( e.getMessage(), e );
    }
}
 
开发者ID:mojohaus,项目名称:versions-maven-plugin,代码行数:25,代码来源:SetScmTagMojo.java


示例7: 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


示例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().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


示例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() )
        {
            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


示例10: 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


示例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() )
        {
            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


示例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 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


示例13: 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.
 * @param usePluginRepositories
 * @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 ArtifactMetadataRetrievalException
 *          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 ArtifactMetadataRetrievalException, MojoExecutionException
{
    boolean includeSnapshots = Boolean.TRUE.equals( this.allowSnapshots );
    if ( Boolean.TRUE.equals( allowingSnapshots ) )
    {
        includeSnapshots = true;
    }
    if ( Boolean.FALSE.equals( allowingSnapshots ) )
    {
        includeSnapshots = false;
    }
    final ArtifactVersions artifactVersions = getHelper().lookupArtifactVersions( artifact, usePluginRepositories );
    return artifactVersions.getNewestVersion( versionRange, includeSnapshots );
}
 
开发者ID:petr-ujezdsky,项目名称:versions-maven-plugin-svn-clone,代码行数:30,代码来源:AbstractVersionsUpdaterMojo.java


示例14: 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


示例15: lookupDependenciesUpdates

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
public Map<Dependency, ArtifactVersions> lookupDependenciesUpdates( Set dependencies,
                                                                    boolean usePluginRepositories )
    throws ArtifactMetadataRetrievalException, InvalidVersionSpecificationException
{
    Map<Dependency, ArtifactVersions> dependencyUpdates =
        new TreeMap<Dependency, ArtifactVersions>( new DependencyComparator() );
    for ( Object dependency1 : dependencies )
    {
        Dependency dependency = (Dependency) dependency1;

        ArtifactVersions details = lookupDependencyUpdates( dependency, usePluginRepositories );
        dependencyUpdates.put( dependency, details );
    }
    return dependencyUpdates;
}
 
开发者ID:petr-ujezdsky,项目名称:versions-maven-plugin-svn-clone,代码行数:19,代码来源:DefaultVersionsHelper.java


示例16: update

import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; //导入依赖的package包/类
/**
 * @param pom the pom to update.
 * @throws MojoExecutionException when things go wrong
 * @throws MojoFailureException   when things go wrong in a very bad way
 * @throws XMLStreamException     when things go wrong with XML streaming
 * @see AbstractVersionsUpdaterMojo#update(ModifiedPomXMLEventReader)
 */
protected void update( ModifiedPomXMLEventReader pom )
    throws MojoExecutionException, MojoFailureException, XMLStreamException, ArtifactMetadataRetrievalException
{
    // Note we have to get the dependencies from the model because the dependencies in the 
    // project may have already had their range resolved [MNG-4138]
    if ( getProject().getModel().getDependencyManagement() != null &&
        getProject().getModel().getDependencyManagement().getDependencies() != null &&
        isProcessingDependencyManagement() )
    {
        resolveRanges( pom, getProject().getModel().getDependencyManagement().getDependencies() );
    }
    if ( isProcessingDependencies() )
    {
        resolveRanges( pom, getProject().getModel().getDependencies() );
    }
    if ( isProcessingProperties() )
    {
        resolvePropertyRanges( pom );
    }
}
 
开发者ID:petr-ujezdsky,项目名称:versions-maven-plugin-svn-clone,代码行数:28,代码来源:ResolveRangesMojo.java


示例17: 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


示例18: 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


示例19: 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


示例20: 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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java AsyncCompletionTask类代码示例发布时间:2022-05-21
下一篇:
Java TermQueryBuilder类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap