From f3458ce4782260eb120fb28d95a29175b4db12ad Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Wed, 31 Dec 2008 10:37:22 +0000 Subject: [PATCH] [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 --- .../java/org/apache/maven/plugin/plugin/PluginReport.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java index df1c223..b7e9e06 100644 --- a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java +++ b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java @@ -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";