mensinda commented on issue #449:
URL: 
https://github.com/apache/maven-build-cache-extension/issues/449#issuecomment-3846427390

   I also had a look at the `buildinfo.xml` at the relevant stages and the 
cache state:
   
   ### Running only `mvn clean compile`
   
   The `artifact` section in the `buildinfo.xml`:
   
   ```xml
     <artifact>
       <groupId>test</groupId>
       <artifactId>maven-build-cache-test</artifactId>
       <version>1.0-SNAPSHOT</version>
       <type>jar</type>
       <fileName>maven-build-cache-test.jar</fileName>
       <filePath>target/classes</filePath>
       <isDirectory>true</isDirectory>
     </artifact>
   ```
   
   The `maven-build-cache-test.jar` is a ZIP file
   
   ### Running only `mvn clean verify`
   
   The `artifact` section in the `buildinfo.xml`:
   
   ```xml
     <artifact>
       <groupId>test</groupId>
       <artifactId>maven-build-cache-test</artifactId>
       <version>1.0-SNAPSHOT</version>
       <type>jar</type>
       <fileName>maven-build-cache-test.jar</fileName>
       
<fileHash>636d1f4d28f4ca6b6a87209000d07ea6d967b90d14191e80cb519742379c7ecd</fileHash>
       <fileSize>2757</fileSize>
       <filePath>target/maven-build-cache-test-1.0-SNAPSHOT.jar</filePath>
     </artifact>
   ```
   
   The `maven-build-cache-test.jar` is a ZIP file
   
   ### Running `mvn clean compile` and then `mvn clean verify`
   
   The `artifact` section in the `buildinfo.xml`:
   
   ```xml
     <artifact>
       <groupId>test</groupId>
       <artifactId>maven-build-cache-test</artifactId>
       <version>1.0-SNAPSHOT</version>
       <type>jar</type>
       <fileName>maven-build-cache-test.jar</fileName>
       <filePath>target/classes</filePath>
       <isDirectory>true</isDirectory>
     </artifact>
   ```
   
   The `maven-build-cache-test.jar` is an empty directory
   
   ---
   
   @cowwoc There seems to be a logic error related to #394 when the `compile` 
results are restored and then the built / packaged JAR is (at least supposed to 
be) cached.
   
   This only seems to affect the main JAR, the artefact from the 
`maven-source-plugin` is stored / cached correctly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to