Good afternoon!

Please help with a simple question:

There is an intellij idea. There is an assembly of the project through maven. Question: How can I debug a collected project?

There is a debugger in the Idea, but it works with the assembly through the Idea itself. That is, through some of its internal script, artifacts, etc. And it is more convenient for me to collect through Maven. Hence the question: how can I do this so that the project is going to Maven, while debugging through the Idea?

The second question is probably related to the first: how to make the Idea collect the project with my Maven-script? I'm not talking about the Maven Plugin, I'm talking about the Build in the IDE. Probably if I succeed, I can run the debugger too.

    1 answer 1

    In short, I did this: Edit Run Configuration, there is a tick "before launching to fulfill the Maven goal", in Deployment I set to place not an artifact, but an external source - target / war. Works debazhit.

    I think the question is closed (though I do not know how to close it).

    • After a couple of days a check mark will appear with your answer. - Anton Mukhin