[ 
https://issues.apache.org/jira/browse/MASSEMBLY-988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17720346#comment-17720346
 ] 

ASF GitHub Bot commented on MASSEMBLY-988:
------------------------------------------

michael-o commented on code in PR #143:
URL: 
https://github.com/apache/maven-assembly-plugin/pull/143#discussion_r1186895483


##########
src/main/java/org/apache/maven/plugins/assembly/mojos/AbstractAssemblyMojo.java:
##########
@@ -475,19 +475,20 @@ public void execute() throws MojoExecutionException, 
MojoFailureException {
         // TODO: include dependencies marked for distribution under certain 
formats
         // TODO: how, might we plug this into an installer, such as NSIS?
 
-        MavenArchiver mavenArchiver = new MavenArchiver();
-        Date outputDate = mavenArchiver.parseOutputTimestamp(outputTimestamp);
+        FileTime outputDate = 
MavenArchiver.parseBuildOutputTimestamp(outputTimestamp)
+                .map(FileTime::from)
+                .orElse(null);

Review Comment:
   @hboutemy , I don't think that you refer to the `FileTime`, but rather to 
the ultracompact lambda expressions, no?





> Avoid using deprecated methods of plexus-archiver
> -------------------------------------------------
>
>                 Key: MASSEMBLY-988
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-988
>             Project: Maven Assembly Plugin
>          Issue Type: Task
>            Reporter: Slawomir Jaranowski
>            Priority: Major
>             Fix For: 3.6.0
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to