ljustin
ljustin

Reputation: 163

how build automatically works with eclipse using maven

I have a maven projects checked out locally with dependency hierarchy as below in eclipse.

A -> B -> C -> D

Whiling running the application, and I make changes to the code in project D, should eclipse pick up the change automatically?

I noticed this not to be the case and I had to do a manual maven install. But changes to the project C is somehow picked up at runtime. Can someone explain how does this process work? Do I have to do some other configuration to make it work? Thanks.

Upvotes: 0

Views: 1470

Answers (2)

ljustin
ljustin

Reputation: 163

Issue I was facing it turns out is actually not something to do with maven or m2e, but with hot swap/deploy (basically changing code at runtime without having to restart the app).

Apparently there are some limitation there where it only supports method body changes. When I added a new property or method, I had to restart the app for it to take effect.

Upvotes: 1

Prerak Jain
Prerak Jain

Reputation: 29

In .settings folder of your project there is a file for m2e preferences, you can enable or diable local projects lookup property.

Upvotes: 0

Related Questions