How to generate a Maven.pom file (not pom.xml)? This seems not so easy to google because results about the normal pom.xml are overwhelming.

So, I just have learned there are also Maven artefact related files with .pom extension. This seems to be some special thing about how repositories work - a meta-file for an artefact?

For example, if you check folder contents for an artefact in your local repository, you will find these files in any artefact folder I guess, just like in the path below.

\.m2\repository\org\json\json\20090211\json-20090211.pom


Contents:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
  &lt;!-- this POM is released under an Apache 2.0 license--&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;org.json&lt;/groupId&gt;
  &lt;artifactId&gt;json&lt;/artifactId&gt;
  &lt;version&gt;20090211&lt;/version&gt;
  &lt;name&gt;JSON (JavaScript Object Notation)&lt;/name&gt;
  &lt;description&gt;
    JSON (JavaScript Object Notation) is a lightweight data-interchange format.
    It is easy for humans to read and write. It is easy for machines to parse and generate.
    It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition
    - December 1999. JSON is a text format that is completely language independent but uses
    conventions that are familiar to programmers of the C-family of languages, including C, C++, C#,
    Java, JavaScript, Perl, Python, and many others.
    These properties make JSON an ideal data-interchange language.
  &lt;/description&gt;
  &lt;url&gt;http://www.json.org/java/index.html&lt;/url&gt;
  &lt;licenses&gt;
    &lt;license&gt;
      &lt;name&gt;provided without support or warranty&lt;/name&gt;
      &lt;url&gt;http://www.json.org/license.html&lt;/url&gt;
    &lt;/license&gt;
  &lt;/licenses&gt;

  &lt;organization&gt;
    &lt;name&gt;JSON&lt;/name&gt;
    &lt;url&gt;http://json.org/&lt;/url&gt;
  &lt;/organization&gt;

  &lt;dependencies/&gt;
&lt;/project&gt;


Question: What is exactly this file and is it possible to generate this file as part of a Maven build? Or do we have to create these files manually as part of the codebase ?

(In the context of what I am doing, I use generic Artifactory deployment plugin for Bamboo to deploy artefacts there but this .pom file is not being created automatically).

UPD I have solved my problem by using a copy of the pom.xml as this pom file and it works but I consider this can not be the correct way.
Answer from here:


  Every jar needs to have a pom file describing it, you can just add
  something simple like this:


Every jar needs to have a pom file describing it, you can just add something simple like this:


http://maven.apache.org/maven-v4_0_0.xsd">
    4.0.0
    aGroup
    aArtifactId
    aVersion
    jar
    a Name