butterfly
butterfly copied to clipboard
Butterfly API Maven generated pom files are missing API/compile dependencies
Every Butterfly API project generates a Maven pom file. However, the generated pom.xml
files are missing all compile dependencies.
Butterfly API project is every butterfly project which has at least one Gradle api
dependency. They are:
- butterfly-bom
- butterfly-api
- butterfly-utilities
- butterfly-extensions-api
- butterfly-test
- butterfly-persist-couchdb
- butterfly-persist-file
Dependencies marked as api
in Gradle are analog to Maven compile
dependencies. So, the api
dependencies are the ones that are supposed to be the compile
dependencies in the generated pom.xml
file, but are missing, and that is the problem that needs to be solved in this issue.
See this issue, and Stefan Oehme's comments, for further details.
The workaround for now is to require clients to manually add those missing dependencies.
How to reproduce the issue
Using Travis CI, run a new SNAPSHOT deploy build, and check the generated pom file of any of those API projects in Sonatype. You will notice they are missing the compile dependencies.