AFAIK, you can run the install command from any directory as long as you specify the project root of your addon.
I presume the main point is because this is where the pom is.
Thank you!But i would also be interested to know why forge addon structure is like this.
1 of 1 people found this helpful
Here is an explanation of each module and their relationship:
- addon: The addon project. This module should depend on api (and spi if available) in compile time and impl in runtime. The artifact produced by this project should be a JAR with the classifier forge-addon
- api: any artifact that is supposed to be exposed by your addon.
- impl: this is where the implementation of your API lies and they should never be accessed externally.
- spi (when feasible): Use a SPI when you want other addons to provide extensions for your addon.
- tests: This is where the integration tests are kept.
Thank you for clarifying.I always had this doubt!!