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 { 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