You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2020/12/22 00:10:33 UTC
[maven-help-plugin] 01/01: [MPH-162] Do not append a timestamp to
the generated xml header
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch MPH-162
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git
commit 8db80cd94158be927002203a213e135c4a59abce
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Tue Dec 22 00:40:39 2020 +0100
[MPH-162] Do not append a timestamp to the generated xml header
---
.../java/org/apache/maven/plugins/help/AbstractEffectiveMojo.java | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/help/AbstractEffectiveMojo.java b/src/main/java/org/apache/maven/plugins/help/AbstractEffectiveMojo.java
index 0654985..6575224 100644
--- a/src/main/java/org/apache/maven/plugins/help/AbstractEffectiveMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/AbstractEffectiveMojo.java
@@ -31,7 +31,6 @@ import java.util.List;
import java.util.Properties;
import java.util.Set;
-import org.apache.commons.lang3.time.DateFormatUtils;
import org.codehaus.plexus.util.IOUtil;
import org.codehaus.plexus.util.WriterFactory;
import org.codehaus.plexus.util.xml.XMLWriter;
@@ -94,11 +93,8 @@ public abstract class AbstractEffectiveMojo
{
XmlWriterUtil.writeCommentLineBreak( writer );
XmlWriterUtil.writeComment( writer, " " );
- // Use ISO 8601 format for date and time
- String formattedDateTime = DateFormatUtils.ISO_8601_EXTENDED_DATETIME_TIME_ZONE_FORMAT
- .format( System.currentTimeMillis() );
- XmlWriterUtil.writeComment( writer, "Generated by Maven Help Plugin on " + formattedDateTime );
- XmlWriterUtil.writeComment( writer, "See: http://maven.apache.org/plugins/maven-help-plugin/" );
+ XmlWriterUtil.writeComment( writer, "Generated by Maven Help Plugin" );
+ XmlWriterUtil.writeComment( writer, "See: https://maven.apache.org/plugins/maven-help-plugin/" );
XmlWriterUtil.writeComment( writer, " " );
XmlWriterUtil.writeCommentLineBreak( writer );
}