You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2022/01/12 17:41:51 UTC

[maven-build-cache-extension] branch master updated: MNG-7129 fix for cleanup of partial state

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-build-cache-extension.git


The following commit(s) were added to refs/heads/master by this push:
     new a2cdf82  MNG-7129 fix for cleanup of partial state
a2cdf82 is described below

commit a2cdf8250c8ae084845e0591572fe329ec75fcdc
Author: maximilian-novikov-db <ma...@db.com>
AuthorDate: Wed Jan 12 18:51:15 2022 +0300

    MNG-7129 fix for cleanup of partial state
---
 .../org/apache/maven/buildcache/CachingMojosExecutionStrategy.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/buildcache/CachingMojosExecutionStrategy.java b/src/main/java/org/apache/maven/buildcache/CachingMojosExecutionStrategy.java
index 74307d8..f6b8dc9 100644
--- a/src/main/java/org/apache/maven/buildcache/CachingMojosExecutionStrategy.java
+++ b/src/main/java/org/apache/maven/buildcache/CachingMojosExecutionStrategy.java
@@ -201,8 +201,7 @@ public class CachingMojosExecutionStrategy implements MojosExecutionStrategy
         {
             // cleanup partial state
             project.getArtifact().setFile( null );
-            project.getArtifact().setResolved( false );
-            project.getAttachedArtifacts().clear();
+            project.getArtifact().setResolved( false );            
             mojoListener.remove( project );
             // build as usual
             for ( MojoExecution mojoExecution : cachedSegment )