It can be understood as:
pom :
It can be used as a maven dependency of other projects. For example, you have written two projects, and project a has written some tool classes. Then you can type it into pom, and then add the dependencies of a in project b, and then you are in The tool class defined by a can be used in project b.
jar: It is the commonly used method of tripartite libraries before maven comes out. The more common one is the jdbc driver package. Generally, jar files are downloaded from the official website. It can also be made into an executable file, similar to .exe, and executed with the command java -jar xxx.jar.
war: commonly used in java web projects, but it is not absolute, war can also be executed with java -jar xxx.war, provided that you have configured the main function entry
jar: It is the commonly used method of tripartite libraries before maven comes out. The more common one is the jdbc driver package. Generally, jar files are downloaded from the official website. It can also be made into an executable file, similar to .exe, and executed with the command java -jar xxx.jar.
war: commonly used in java web projects, but it is not absolute, war can also be executed with java -jar xxx.war, provided that you have configured the main function entry
pom is maven dependency file
jar is java normal project packaging
war is java web project packaging