Generating jar package IntelliJ IDEA

Right-click on the [Project] -> [Open Module Settings] 

 

 

or

 

 

找到【Artifacts】 -> 【JAR】 -> 【From modules with dependences】 

 

 

 

 

 

Main Class is the main class of the JAR file

 

JAR files from libraries中的

 

extract to the target JAR extracting means bytecode file dependencies to the target JAR file

copy to the output directory and link via manifest the dependencies mean copied to the output directory, and adds the corresponding attribute in the manifest

Directory for META-INF / MANIFEST.MF will generate META-INF / MANIFEST.MF file in the directory filled

 

 

 

 

 

 

 

 

 

Appears "META-INF / MANIFEST.MF" already exists in VFS error

 

Description "META-INF / MANIFEST.MF" already exists in the file system, we can delete the corresponding file in the reconstituted to success.

$ rm -rf src/main/resources/META-INF/

 

Guess you like

Origin www.cnblogs.com/zengsong-restService/p/11278822.html