Skip to content
Discussion options

You must be logged in to vote

Yes it is not always easy when it comes to mappings, but you can open the LifeCycle Mappings as a view to at least get the info what is executed.

In this particular case I think the reason is that m2e has a default mapping for maven-dependency-plugin here that is used when nothing else is configured.

So even if the package-phase is "uninteresting" by default, if there is a mapping (either implicit or explicit) m2e can execute mojos in such a phase.

So here we have:

  1. maven-antrun-plugin:run has no explicit or implicit binding and package phase is uninteresting -> ignored
  2. maven-dependency-plugin:copy-dependency has implicit default binding -> execute regardless of phase.

Replies: 9 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@HannesWell
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by reto-hoehener
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1792 on July 30, 2024 07:28.