Home > Back-end >  How to package springboot more module project
How to package springboot more module project

Time:11-19

I have three springboot module, there is no parent module, module, A reference B C reference A module, the idea and the eclipse is started successfully, the development is also no problem;
Three modules of the parent is

Org. Springframework. Boot
Spring - the boot - starter - parent
1.5.10. RELEASE


C module packaging plug-in

Org. Springframework. Boot
Spring - the boot - maven - plugin

Com. Yun. Web. Application
True




Repackage




There is no other special configuration;
Framework related configuration files, such as application. Yml, mybaties etc are C module;
Because springboot own packaging plug-in spring - the boot - maven - the plugin is an executable jar, cannot be reference;
So, I put A, B module packaging plug-in for the package of the ordinary maven plugin maven - compiler - the plugin,
C plug-in modules is springbooot executable packages spring - the boot - maven plugin;
B module install first installed in the local warehouse, then carry out the install installation of A module to A local warehouse, then do C module package, packaging success;
Java - jar start error, error is under the C module mybaties configuration & lt; TypeAliases> , scanning A module package, no effect;
The individual feels C module configuration file, without the A, B module generated jar, but don't know how to set up three modules

CodePudding user response:

I don't know. Google it

CodePudding user response:

You should be in the project of the root directory of the target only generated inside A jar package, open the jar package, you can see A and B are in the lib directory

CodePudding user response:

The command line, MVN package
  • Related