Home > Back-end >  IDEA MAVEN rely on project cannot be associated packaging problems
IDEA MAVEN rely on project cannot be associated packaging problems

Time:01-12

Scenario:
A project to write Service
B project as the WEB project, relying on A project
Now I want to put into WAR file B project in the tomcat startup, found in the process of packaging, didn't find A project,

Don't know what method can automatically when package B project put the project into A. Jar in B project lib

CodePudding user response:

How do you pack?
Using maven command can be packaged according to the truth, if you want to all the source code package, get a new packaging engineering, all want to put in packaging engineering as a module

CodePudding user response:

reference 1st floor maradona1984 response:
how do you pack?
Use maven command can be packaged according to the truth, if you want to all the source code package, get a new packaging engineering, all to packaging engineering as a module in


Just tried, in the idea of mavenproject toolbar click B package will appear this kind of problem, but if the CMD command window into B and Ax project the root directory of the donkey using the command MVN clean package packaging success

CodePudding user response:

Write directly into the pom

CodePudding user response:

The
refer to the original poster abc5141 response:
scene description:
A project to write Service
B project as the WEB project, relying on A project
Now I want to put into WAR file B project in the tomcat startup, found in the process of packaging, didn't find A project,

Don't know what method can automatically when package B project put the project into A. Jar in B project lib



& lt; Packaging> Jar

A project need to add the above sentence.

CodePudding user response:

The
refer to the original poster abc5141 response:
scene description:
A project to write Service
B project as the WEB project, relying on A project
Now I want to put into WAR file B project in the tomcat startup, found in the process of packaging, didn't find A project,

Don't know what method can automatically when package B project put the project into A. Jar in the lib B project

Amy polumbo om file & lt; Packaging> Jar

CodePudding user response:

Can you tell me the final solution
  • Related