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

Matthias Pohl commented on FLINK-33907:
---------------------------------------

Fair point: This is due to the fact that the {{test}} phase is executed before 
the {{pre-package}} phase even in your {{./mvnw clean deploy}} call ([Maven 
lifecycle|https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html]
 for reference). Flink's CI does do an initial build w/t tests. I guess, that's 
why we didn't run into that issue in our CI. But we shouldn't see this issue 
anymore with the [new change|https://github.com/apache/flink/pull/24095] 
because the two tests that are affected are moved into the {{integration-test}} 
phase with the jar being moved into the right place in 
{{pre-integration-test}}. The order will be correct again. 

> Makes copying test jars being done later
> ----------------------------------------
>
>                 Key: FLINK-33907
>                 URL: https://issues.apache.org/jira/browse/FLINK-33907
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Build System / CI
>    Affects Versions: 1.18.0, 1.19.0
>            Reporter: Matthias Pohl
>            Assignee: Matthias Pohl
>            Priority: Major
>              Labels: github-actions, pull-request-available
>             Fix For: 1.19.0, 1.18.1
>
>
> We experienced an issue in GHA which is due to the fact how test resources 
> are pre-computed in GHA:
> {code:java}
> This fixes the following error when compiling flink-clients:
> Error: 2.054 [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-dependency-plugin:3.2.0:copy-dependencies 
> (copy-dependencies) on project flink-clients: Artifact has not been packaged 
> yet. When used on reactor artifact, copy should be executed after packaging: 
> see MDEP-187. -> [Help 1] {code}
> We need to move this goal to a later phase.
> The reason why this popped up is (as far as I remember) that we do only do 
> test-compile in GitHub Actions.



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

Reply via email to