[
https://issues.apache.org/jira/browse/MBUILDCACHE-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956915#comment-17956915
]
Olivier Lamy commented on MBUILDCACHE-92:
-----------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-build-cache-extension#272|https://github.com/apache/maven-build-cache-extension/issues/272].
Please visit the GitHub issue to view further activity, add comments, or
subscribe to receive notifications.
> Allow to define 'reconciles' at plugin execution level
> ------------------------------------------------------
>
> Key: MBUILDCACHE-92
> URL: https://issues.apache.org/jira/browse/MBUILDCACHE-92
> Project: Maven Build Cache Extension (Moved to GitHub Issues)
> Issue Type: Improvement
> Affects Versions: 1.1.0
> Reporter: Réda Housni Alaoui
> Priority: Major
> Labels: pull-request-available
>
> I have the following case:
> {code:xml}
> <plugin>
> <groupId>com.github.eirslett</groupId>
> <artifactId>frontend-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>yarn-build-dev</id>
> <goals>
> <goal>yarn</goal>
> </goals>
> <phase>prepare-package</phase>
> <configuration>
> <skip>${build-dev.skip}</skip>
> <arguments>build:dev</arguments>
> </configuration>
> </execution>
> <execution>
> <id>yarn-build-prod</id>
> <goals>
> <goal>yarn</goal>
> </goals>
> <phase>prepare-package</phase>
> <configuration>
> <skip>${build-prod.skip}</skip>
> <arguments>build:prod</arguments>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> {{yarn-build-prod}} produces a more complete output than {{yarn-build-dev}}
> but it also takes more time to execute:
> - on a dev environment (build-prod.skip=true and build-dev.skip=false) using
> a cache produced with build-prod.skip=false and build-dev.skip=true should
> lead to a cache hit
> - on a CI environment (build-prod.skip=false and build-dev.skip=true) using
> a cache produced with build-prod.skip=true and build-dev.skip=false should
> lead to a cache miss
> The only way I can think of implementing this is to track property {{skip}}
> only for execution id {{yarn-build-prod}}, but not for execution id
> {{yarn-build-dev}}.
> But I can't, because as of now, this extension allows to track plugin
> property with reconcile at plugin goal level, not execution level.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)