Introduce the outsourced jar package when maven is packaged

Import external jar packages when Maven is packaged

Scenario: Today, when our village flower Sun Dajun writes the project, we need to introduce a jar package written by her colleague. When packaging, this strange jar package could not be entered into the jar (SpringBoot project); although I have been working overtime for 4 or 5 days. Yes, but Dajun’s business is mine. I am still actively helping Dajun solve the problem.

Method 1. Add this jar package to the local warehouse:


Method 2. Add dependency in pom.xml file:

  1.  <dependency>

    2. Focus


    Need to add in Maven's packaging plugin: true

Guess you like