com.lewisd.maven.lint.model.VersionPropertiesModelBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lint-maven-plugin Show documentation
Show all versions of lint-maven-plugin Show documentation
Generates a report of suspicious/inconsistent POM elements, and optionally fails the build if violations are found.
The newest version!
package com.lewisd.maven.lint.model;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.apache.maven.project.MavenProject;
import org.springframework.beans.factory.annotation.Autowired;
import com.lewisd.maven.lint.ModelFactory;
import com.lewisd.maven.lint.util.ModelUtil;
public class VersionPropertiesModelBuilder extends AbstractModelBuilder {
private final ModelUtil modelUtil;
@Autowired
public VersionPropertiesModelBuilder(final ModelUtil modelUtil, final ModelFactory modelFactory) {
super(modelFactory);
this.modelUtil = modelUtil;
}
public Set getRequiredModels() {
return Collections.singleton(MAVEN_PROJECT);
}
public Object buildModel(final Map models) {
final Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy