The packing portion idea class files into the jar

Sometimes there is too much work piled up a bit confusing module, a function will be: module (eg party payment) required to be packaged into a jar easy to use point.

Proceed as follows:

Select the Empty, then hit a name for himself in the jar

Then create a directory if the red arrow in the top right myjar.

Then create a module in the top module com

Then create

Finally, the structure diagram

The next step is, util corresponding class file is added to the package model

Click the + sign to select file, select your corresponding class module file compiled in the project, are generally below the target module

After you add the corresponding class file, click apply, ok. Perform the last step, hit the jar

Select the module to recompile just created, and finally generate the jar on the choice of when creating the jar output directory address inside.

Finally direct the generated jar jar as a third-party import project using enough.

Guess you like

Origin www.cnblogs.com/prettrywork/p/10950055.html