How to include pom file in the jar

I use the maven-publish plugin to generate pom file and publish the archives to maven central.

But there is no pom file included in the META-INF directory inside the jar file, which causing the problem that we can’t import the classes inside my project after some user installing the project.

Here is the build.gradle configuration:

       | -- ai.ost.fastjson_protobuf/
             | -- the java files exist here
       | -- META-INF/
             | -- MANIFEST.MF  # But no pom file found here

Any ideas?

1 Like

Some solutions have been given in this issue: