Hi Salva,

Seems similar issue has been reported to Apache RAT project [1] for a long 
time, but there’s no solution yet.

According to Flink contribution guide, it is suggested to run `min clean 
verify` and end-to-end tests before submitting a Pull Request [2].

Best Regards,
Xiqian

[1] https://issues.apache.org/jira/browse/RAT-239
[2] 
https://flink.apache.org/how-to-contribute/contribute-code/#3-open-a-pull-request


Salva Alcántara <salcantara...@gmail.com> 於 2025年2月5日 18:09 寫道:

I was importing the Flink project into IntelliJ 2024.3 following this guide:

https://nightlies.apache.org/flink/flink-docs-master/docs/flinkdev/ide_setup/#importing-flink

but when I click on "Generate Sources and Update Folders" I get the following 
errors:

```
[INFO] Validation error:
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.13:check
(default) on project flink-parent: Cannot read header
[ERROR] Maven server structure problem
flink-rpc/flink-rpc-core/pom.xml (No such file or directory)
```

however, the alternative command:

```
mvn clean package -DskipTests
```

runs fine in my terminal.

How could I solve this? Depending on the fix we might want to update the 
current contributing guide (maybe it's not accurate for newer IntelliJ 
versions).

Finaly, what is the common approach for testing a change in a local project 
before it gets approved/merged? That is not clear to me either / not covered in 
the current guides.

Regards,

Salva

Reply via email to