From 2d5161a3e1bbb11cbea4684fd629ab9502350a1e Mon Sep 17 00:00:00 2001 From: wuzhiping Date: Wed, 25 Dec 2019 19:04:15 +0800 Subject: [PATCH 1/2] fix bug, cron doesn't support "yyyy" format anymore. --- .../smartloli/kafka/eagle/common/util/QuartzManagerUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kafka-eagle-common/src/main/java/org/smartloli/kafka/eagle/common/util/QuartzManagerUtils.java b/kafka-eagle-common/src/main/java/org/smartloli/kafka/eagle/common/util/QuartzManagerUtils.java index 12ea6ef7..ccb528d6 100644 --- a/kafka-eagle-common/src/main/java/org/smartloli/kafka/eagle/common/util/QuartzManagerUtils.java +++ b/kafka-eagle-common/src/main/java/org/smartloli/kafka/eagle/common/util/QuartzManagerUtils.java @@ -132,7 +132,7 @@ public static void shutdownJobs() { * */ public static String getCron(final Date date, int delaySecond) { - SimpleDateFormat sdf = new SimpleDateFormat("ss mm HH dd MM ? yyyy"); + SimpleDateFormat sdf = new SimpleDateFormat("ss mm HH dd MM ?"); String formatTimeStr = ""; if (date != null) { try { From 1318f64374401a0b6d5bac6947e5d028f5285b8d Mon Sep 17 00:00:00 2001 From: wuzhiping Date: Wed, 25 Dec 2019 19:15:16 +0800 Subject: [PATCH 2/2] fix error when building with jdk1.8 --- pom.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pom.xml b/pom.xml index 9854f958..13b509f5 100644 --- a/pom.xml +++ b/pom.xml @@ -22,4 +22,17 @@ kafka-eagle-core kafka-eagle-plugin + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + 1.8 + 1.8 + + + + \ No newline at end of file