aitor moragas created MBUILDCACHE-77:
----------------------------------------

             Summary: Archtypes can't be build using maven build cache in CI/CD 
environments.
                 Key: MBUILDCACHE-77
                 URL: https://issues.apache.org/jira/browse/MBUILDCACHE-77
             Project: Maven Build Cache Extension
          Issue Type: Bug
          Components: remote build cache
    Affects Versions: 1.1.0
            Reporter: aitor moragas


Our build  in the CI/CD pipeline is like follows:

 
 * compute next version
 * update next version in all components
 * launch build

 

For archetype projects the build can never be cached because of the way the 
hash is computed.

This is a snippet of the buildinfo.xml file produced:

 

 
{code:java}
  </project>
    </item>
      <!-- other items -->
      <item type="file" hash="c5021fd9037b1aca" isText="unknown" 
charset="US-ASCII" eol="LF">../../pom.xml</item>
    </items>
  </projectsInputInfo>
</build> {code}
The fact that pom.xml has been updated with the new version makes it impossible 
that the hash matches and therefore the build is always done.

 

When computing the effective pom, we need something equivalent to 
<excludedproperty> for maven plugins.

 

 

 

 



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

Reply via email to