[MPLUGIN-140] Plugin report states wrong JDK requirement
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@730368 13f79535-47bb-0310-9956-ffa450edef68master
parent
c2b40e8397
commit
f3458ce478
|
|
@ -562,6 +562,10 @@ public class PluginReport
|
|||
{
|
||||
String jdk = requirements.getJdk();
|
||||
if ( jdk == null )
|
||||
{
|
||||
jdk = discoverJdkRequirementFromPlugins( project.getBuild().getPluginsAsMap() );
|
||||
}
|
||||
if ( jdk == null )
|
||||
{
|
||||
if ( project.getPluginManagement() != null )
|
||||
{
|
||||
|
|
@ -569,10 +573,6 @@ public class PluginReport
|
|||
}
|
||||
}
|
||||
if ( jdk == null )
|
||||
{
|
||||
jdk = discoverJdkRequirementFromPlugins( project.getBuild().getPluginsAsMap() );
|
||||
}
|
||||
if ( jdk == null )
|
||||
{
|
||||
// The Maven Compiler Plugin uses a fixed default value, not the current JDK version.
|
||||
jdk = "1.1";
|
||||
|
|
|
|||
Loading…
Reference in New Issue