[
https://issues.apache.org/jira/browse/FLINK-33254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17774812#comment-17774812
]
Matthias Pohl edited comment on FLINK-33254 at 10/13/23 10:45 AM:
------------------------------------------------------------------
I'm analyzing the {{test-compile}} approach again:
{{flink-clients}} failed initially due to {{flink-clients-test-utils not being
being built yet and, therefore, couldn't be copied.
{code:java}
[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]
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :flink-clients {code}
was (Author: mapohl):
I'm analyzing the {{test-compile}} approach again:
{{flink-clients}} failed initially due to {{flink-clients-test-utils not being
being built yet and, therefore, couldn't be copied.
{code:java}
[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]
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :flink-clients {code}
Next error was caused by optional dependencies being not included in the build:
{code:java}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile
(default-testCompile) on project flink-csv: Compilation failure
[ERROR]
/home/mapohl/workspace/flink-xcomp/flink-formats/flink-csv/src/test/java/org/apache/flink/formats/csv/CsvFormatFilesystemStatisticsReportTest.java:[51,29]
cannot access org.apache.calcite.schema.Statistic
[ERROR] class file for org.apache.calcite.schema.Statistic not found {code}
> Improve speed of compile step
> -----------------------------
>
> Key: FLINK-33254
> URL: https://issues.apache.org/jira/browse/FLINK-33254
> Project: Flink
> Issue Type: Sub-task
> Reporter: Matthias Pohl
> Priority: Major
>
> There were issues with the compilation step where I initially thought that
> it's due to the parallelization of the compilation (which is odd). This issue
> is about investigating how to do the compilation and forwarding the artifacts
> in the right way to the downstream jobs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)