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


Java ArtifactHandler.getClassifier方法代码示例

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


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

示例1: excludesDependencies

import org.apache.maven.artifact.handler.ArtifactHandler; //导入方法依赖的package包/类
/**
 * Creates a new ArtifactHandler for the specified Artifact that overrides the includeDependencies flag. When set, this flag prevents transitive
 * dependencies from being printed in dependencies plugin.
 *
 * @param artifact  The artifact
 * @return          The handler for the artifact
 */
private ArtifactHandler excludesDependencies(final Artifact artifact) {
    final ArtifactHandler orig = artifact.getArtifactHandler();

    return new ArtifactHandler() {
        @Override
        public String getExtension() {
            return orig.getExtension();
        }

        @Override
        public String getDirectory() {
            return orig.getDirectory();
        }

        @Override
        public String getClassifier() {
            return orig.getClassifier();
        }

        @Override
        public String getPackaging() {
            return orig.getPackaging();
        }

        // mark dependencies has excluded so they will appear in tree listing
        @Override
        public boolean isIncludesDependencies() {
            return false;
        }

        @Override
        public String getLanguage() {
            return orig.getLanguage();
        }

        @Override
        public boolean isAddedToClasspath() {
            return orig.isAddedToClasspath();
        }
    };
}
 
开发者ID:apache,项目名称:nifi-maven,代码行数:49,代码来源:NarProvidedDependenciesMojo.java

示例2: newArtifactType

import org.apache.maven.artifact.handler.ArtifactHandler; //导入方法依赖的package包/类
public static ArtifactType newArtifactType(String id, ArtifactHandler handler) {
  return new DefaultArtifactType(id, handler.getExtension(), handler.getClassifier(), handler.getLanguage(), handler.isAddedToClasspath(), handler.isIncludesDependencies());
}
 
开发者ID:takari,项目名称:takari-lifecycle,代码行数:4,代码来源:AetherUtils.java

示例3: newArtifactType

import org.apache.maven.artifact.handler.ArtifactHandler; //导入方法依赖的package包/类
public static ArtifactType newArtifactType( String id, ArtifactHandler handler )
{
    return new DefaultArtifactType( id, handler.getExtension(), handler.getClassifier(), handler.getLanguage(),
                                    handler.isAddedToClasspath(), handler.isIncludesDependencies() );
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:6,代码来源:RepositoryUtils.java

示例4: DefaultArtifact

import org.apache.maven.artifact.handler.ArtifactHandler; //导入方法依赖的package包/类
public DefaultArtifact( String groupId, String artifactId, VersionRange versionRange, String scope, String type,
                        String classifier, ArtifactHandler artifactHandler, boolean optional )
{
    this.groupId = groupId;

    this.artifactId = artifactId;

    this.versionRange = versionRange;

    selectVersionFromNewRangeIfAvailable();

    this.artifactHandler = artifactHandler;

    this.scope = scope;

    this.type = type;

    if ( classifier == null )
    {
        classifier = artifactHandler.getClassifier();
    }

    this.classifier = classifier;

    this.optional = optional;

    validateIdentity();
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:29,代码来源:DefaultArtifact.java


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