public class CompareDependenciesMojo extends AbstractVersionsDependencyUpdaterMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ignoreRemoteDependencies
Ignore the list of remote dependencies and only compare the remote dependencyManagement
|
protected boolean |
ignoreRemoteDependencyManagement
Ignore the remote dependency management and only check against the actual dependencies of the remote project
|
protected org.apache.maven.project.MavenProjectBuilder |
mavenProjectBuilder
The project builder used to initialize the remote project.
|
protected String |
remotePom
The groupId, artifactId, and version of the remote project (POM) to which we are comparing.
|
protected boolean |
reportMode
Display the dependency version differences on the command line, but do not update the versions in the current
pom.
|
protected File |
reportOutputFile
If the output file is set, the diff report will be written to this file.
|
protected boolean |
updateDependencies
Update dependency versions in the current POM.
|
protected boolean |
updatePropertyVersions
Update dependency versions stored in properties
|
allowSnapshots, artifactFactory, artifactMetadataSource, artifactResolver, localRepository, pathTranslator, projectBuilder, reactorProjects, remoteArtifactRepositories, remotePluginRepositories, resolver, session, settings| Constructor and Description |
|---|
CompareDependenciesMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
update(ModifiedPomXMLEventReader pom)
Updates the pom.
|
findArtifact, isExcludeReactor, isIncluded, isProcessingDependencies, isProcessingDependencyManagement, isProducedByReactor, separatePatterns, toArtifact, toStringdetermineUnchangedSegment, execute, findLatestVersion, getHelper, getProject, getPropertyValue, newModifiedPomXER, process, setProject, shouldApplyUpdate, updatePropertyToNewestVersion, writeFileprotected String remotePom
protected boolean ignoreRemoteDependencies
protected boolean ignoreRemoteDependencyManagement
protected boolean updateDependencies
protected boolean updatePropertyVersions
protected boolean reportMode
protected File reportOutputFile
protected org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder
protected void update(ModifiedPomXMLEventReader pom) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, XMLStreamException
AbstractVersionsUpdaterMojoupdate in class AbstractVersionsUpdaterMojopom - the pom to update.org.apache.maven.plugin.MojoExecutionException - Something wrong with the plugin itselforg.apache.maven.plugin.MojoFailureException - The plugin detected an error in the buildXMLStreamException - when things go wrong with XML streamingAbstractVersionsUpdaterMojo.update(org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader)Copyright © 2008-2014. All Rights Reserved.