com.exasol.projectkeeper.sources.analyze.MavenSourceAnalyzer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of project-keeper-core Show documentation
Show all versions of project-keeper-core Show documentation
Project keeper is a tool that verifies and fixes project setups.
The newest version!
package com.exasol.projectkeeper.sources.analyze;
import static com.exasol.projectkeeper.shared.config.SourceType.MAVEN;
import static java.util.Collections.emptyMap;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.apache.maven.model.Model;
import com.exasol.errorreporting.ExaError;
import com.exasol.projectkeeper.JavaProjectCrawlerRunner;
import com.exasol.projectkeeper.shared.config.Source;
import com.exasol.projectkeeper.shared.mavenprojectcrawler.CrawledMavenProject;
import com.exasol.projectkeeper.sources.AnalyzedMavenSource;
import com.exasol.projectkeeper.sources.AnalyzedSource;
import com.exasol.projectkeeper.validators.pom.PomFileIO;
/**
* This class analyzes Java Maven projects.
*/
public class MavenSourceAnalyzer implements LanguageSpecificSourceAnalyzer {
private final Path mvnRepositoryOverride;
private final String ownVersion;
/**
* Create a new instance.
*
* @param mvnRepositoryOverride Maven repository override. Use {@code null} for default
* @param ownVersion project-keeper version
*/
public MavenSourceAnalyzer(final Path mvnRepositoryOverride, final String ownVersion) {
this.mvnRepositoryOverride = mvnRepositoryOverride;
this.ownVersion = ownVersion;
}
@Override
public List analyze(final Path projectDir, final List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy