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

Felix Simmendinger commented on MBUILDCACHE-49:
-----------------------------------------------

It is not only the build logic. The comment in the 
{{org.apache.maven.buildcache.checksum.MavenProjectInput#getMutableDependencies}}
 that it is sufficient to cache effective poms is wrong. In our project, we 
have a pom module that serves as a dependency holder for runtime dependencies 
to be managed by a command-line client to enable/disable extensions to an 
application. With the extension ignoring to cache pom dependencies, the 
depenency tracking is broken and changes to transitive dependencies referenced 
by this pom project won't trigger a rebuild of the application module.

 
{code:java}
 app
  |
-----
|    \
libs  `- module-x (type jar)
         | (runtime scope, snapshot from same project)
        extension-dependencies (type pom)
         | (runtime scope, snapshot from same project)
         `- extension-a (type jar, snapshot from same project){code}
if i change a line in extension-a, app won't be rebuild.

> Allow caching for pom package projects
> --------------------------------------
>
>                 Key: MBUILDCACHE-49
>                 URL: https://issues.apache.org/jira/browse/MBUILDCACHE-49
>             Project: Maven Build Cache Extension
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>            Reporter: Tomáš Mrázek
>            Priority: Major
>
> In class `MavenProjectInput` and method `calculateChecksum()` at line `207` 
> is check for pom project and if true, input files are skipped. What was the 
> reason behind ignoring pom projects? I've seen plenty of pom projects with 
> some build logic where caching does make a sense. For example some resource 
> transformations or building external projects via exec-maven-plugin. In those 
> cases both source and target files exist but different packaing other than 
> pom does not make a lot of sense.



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

Reply via email to