[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-ffa450edef68
master
Benjamin Bentmann 2008-12-31 10:37:22 +00:00
parent c2b40e8397
commit f3458ce478
1 changed files with 4 additions and 4 deletions

View File

@ -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";