How do I get Maven to check if source code has changed before deciding a dependency is resolved?

In a multi module build that is set up correctly it will just do what you want fine. This is referred to a reactor build. It just depends a bit on your setup If you have separate projects it will always get its dependencies from the local repo so you will have to make sure they get there by building them.

You can either do that manually or create a multi module pom that ties things together.

In a multi module build that is set up correctly it will just do what you want fine. This is referred to a reactor build. It just depends a bit on your setup.

If you have separate projects it will always get its dependencies from the local repo so you will have to make sure they get there by building them. You can either do that manually or create a multi module pom that ties things together.

I went back to play with the reactor thing again because I didn't have much luck with it the first time. I have found that if I add a new class, it behaves the way I'd expect: it compiles only the new file and rebuilds the jar. However, if I modify an existing class, it says "Nothing to compile - all classes are up to date", which is wrong.

– Argyle Mar 22 at 19:29 What version of Maven are you using? Try with a 3x version.. lots of improvements related to reactor builds and more are in it.. – Manfred Moser Mar 22 at 19:33 I'm using Maven 3.0.2. – Argyle Mar 22 at 20:01 It turns out that if I go have a cup of coffee and come back, the modified class gets picked up by the reactor.

There seems to be some kind of cool-down on the timestamp reader or something. A minute or so seems to be enough, but a couple seconds is not. – Argyle Mar 22 at 20:09 thats weird and should not happen.

Might want to file a bug or ask on the maven dev list.. – Manfred Moser Mar 22 at 21:31.

The project which creates the foo-0.1.0-SNAPSHOT should do a mvn deploy everytime it has changed something. And than you will be able to get the changes simply by doing an other mvn clean compile in the project which use the foo-0.1.0-SNAPTSHOT as dependency.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions