<plugin> <artifactId> Maven-assembly-plugin </artifactId> <configuration> <descriptorRefs> <descriptorref>jar -with-dependencies</descriptorref> </descriptorRefs> <archive > <manifest> <mainclass>com.cetc.di.app</ma inclass> </manifest> </archive> </c Onfiguration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals > </execution> </executions> </plugin>
<mainClass>com.cetc.di.App</mainClass> Declares the main method of the Java-jar ****.jar runtime
The file that declares the main method for this display is extracted from the jar package: \meta-inf\manifest. MF inside shows the main method when the declaration is executed directly
such as: Main-class:com.corundumstudio.socketio.demo.chatlauncher
If there are other main methods in the JAR package to run such a command (Windows environment)
such as: Java-classpath. \demo-1.0.0-snapshot-jar-with-depeNdencies.jar Com.corundumstudio.socketio.demo.NamespaceChatLauncher
Package name--------------------------> contains the class name of the main method to execute
Maven hits Fat package (full dependency of jar package) plugin