Search in sources :

Example 6 with BuildBase

use of org.apache.maven.model.BuildBase in project unleash-maven-plugin by shillner.

the class CheckPluginVersions method getSnapshots.

private Set<ArtifactCoordinates> getSnapshots(Profile profile, PomPropertyResolver propertyResolver) {
    this.log.debug("\t\tChecking direct plugin references of profile '" + profile.getId() + "'");
    BuildBase build = profile.getBuild();
    if (build != null) {
        Collection<Plugin> snapshots = Collections2.filter(build.getPlugins(), new IsSnapshotPlugin(propertyResolver));
        return Sets.newHashSet(Collections2.transform(snapshots, PluginToCoordinates.INSTANCE));
    }
    return Collections.emptySet();
}
Also used : BuildBase(org.apache.maven.model.BuildBase) IsSnapshotPlugin(com.itemis.maven.plugins.unleash.util.predicates.IsSnapshotPlugin) IsSnapshotPlugin(com.itemis.maven.plugins.unleash.util.predicates.IsSnapshotPlugin) Plugin(org.apache.maven.model.Plugin)

Aggregations

BuildBase (org.apache.maven.model.BuildBase)6 Plugin (org.apache.maven.model.Plugin)6 ArtifactCoordinates (com.itemis.maven.aether.ArtifactCoordinates)2 IsSnapshotDependency (com.itemis.maven.plugins.unleash.util.predicates.IsSnapshotDependency)2 IsSnapshotPlugin (com.itemis.maven.plugins.unleash.util.predicates.IsSnapshotPlugin)2 Dependency (org.apache.maven.model.Dependency)2 PluginManagement (org.apache.maven.model.PluginManagement)2 Model (org.apache.maven.model.Model)1 Profile (org.apache.maven.model.Profile)1