healchow opened a new pull request, #8158:
URL: https://github.com/apache/inlong/pull/8158
### Prepare a Pull Request
- Fixes #8157
### Motivation
Support execute Maven commands in any submodule.
### Modifications
First, I use the `directory-maven-plugin` plugin to obtain the root path of
the project, and then I can successfully execute commands such as `mvn compile`
in the submodule.
But soon I found that the life cycle of this plug-in cannot be associated
with the `mvn spotless:check / apply` command, that is, when executing `mvn
spotless:check / apply`, an error will be reported saying that
`${inlong.root.dir}` cannot be found this variable.
Finally, I refer to the practice of the Apache Avro community[1] and define
the same variable in each pom.xml. Although it is a bit troublesome, this way I
can successfully use the `mvn` commands (like `mvn compile`) and the `mvn
spotless` commands in the submodule.
> [1] Usage in Apache Avro:
> https://github.com/healchow/avro/blob/master/lang/java/pom.xml?#L37
> https://github.com/healchow/avro/blob/master/lang/java/pom.xml?#L306
### Verifying this change
- [x] This change is a trivial rework/code cleanup without any test coverage.
### Documentation
- Does this pull request introduce a new feature? (no)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]