[ https://issues.apache.org/jira/browse/FLINK-33907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17806051#comment-17806051 ]
Matthias Pohl commented on FLINK-33907: --------------------------------------- Hm, it works for me locally: {code:java} $ mvn -pl flink-clients test -Dtest=DefaultPackagedProgramRetrieverTest{code} Your specific Maven command didn't work for me because other modules do not have this test included: {code:java} [...] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on project flink-parent: No tests matching pattern "DefaultPackagedProgramRetrieverTest" were executed! (Set -Dsurefire.failIfNoSpecifiedTests=false to ignore this error.) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException{code} I feel like I'm missing something from your setup. Maybe you're relying on an old version of {{flink-clients}} and you need to build the module once more to have the test jar properly packaged? > 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)