Class RequirementsHistory
java.lang.Object
org.apache.maven.plugin.plugin.report.RequirementsHistory
Plugin requirements history.
- Author:
- Slawomir Jaranowski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdiscoverJdkRequirement(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) Tries to determine the JDK requirement from the following sources (until one is found) use JDK requirement from plugin descriptor usereleaseconfiguration oforg.apache.maven.plugins:maven-compiler-pluginusemaven.compiler.release<property usetargetconfiguration oforg.apache.maven.plugins:maven-compiler-pluginusemaven.compiler.targetpropertystatic StringdiscoverMavenRequirement(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) Tries to determine the Maven requirement from either the plugin descriptor or (if not set) from the Maven prerequisites element in the POM.static RequirementsHistorydiscoverRequirements(org.apache.maven.project.MavenProject project) getJdk()getMaven()booleantoString()
-
Constructor Details
-
RequirementsHistory
public RequirementsHistory()
-
-
Method Details
-
getVersion
-
getMaven
-
getJdk
-
toString
-
discoverRequirements
public static RequirementsHistory discoverRequirements(org.apache.maven.project.MavenProject project) -
discoverMavenRequirement
public static String discoverMavenRequirement(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) Tries to determine the Maven requirement from either the plugin descriptor or (if not set) from the Maven prerequisites element in the POM.- Parameters:
project- not nullpluginDescriptor- the plugin descriptor (can be null)- Returns:
- the Maven version or null if not specified
-
discoverJdkRequirement
public static String discoverJdkRequirement(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) Tries to determine the JDK requirement from the following sources (until one is found)- use JDK requirement from plugin descriptor
- use
releaseconfiguration oforg.apache.maven.plugins:maven-compiler-plugin - use
maven.compiler.release<property - use
targetconfiguration oforg.apache.maven.plugins:maven-compiler-plugin - use
maven.compiler.targetproperty
- Parameters:
project- not nullpluginDescriptor- the plugin descriptor (can be null)- Returns:
- the JDK version
-
hasSameRequirements
-