Home > Back-end >  Turn a springboot about maven management project depends on another springboot project problems
Turn a springboot about maven management project depends on another springboot project problems

Time:10-30

Problem description: currently, the project is still in the early stages, a springboot project needs to be completed in the development of the jar package, is introduced into the other projects, as the chart need to common this project into jars, practice is to use the idea of maven - install, then will appear in the local maven repository of common project jar package ,
At this point in another springboot project (project management) in the pom file add dependence, in the management of the jar package list in the common project of jar package below

But the question arises: at this time in the project management code calls the common class was less than (on call), when guide package also does not have the relevant classes, the diagram below:

Put the jar package sent to my colleagues, in the same way, they can adjust to, but I can't on my computer is adjustable, to delete after reinstalling maven warehouses or not, hope to have a great god give some advice, thank you very much

CodePudding user response:

It relies on shear in the pom, preservation, to import dependence, and then paste on it, try to import dependence
  • Related