Maven only compile changed sources

I have a multi-maven project with a couple of bundles inside.

pom.xml
|
bundles
\- bundle1--pom.xml
\- bundle2--pom.xml
testproject
\- bundle1--pom.xml

When building mvn package is there a way to just recompile bundles that contain changes? E.g. I only change something in bundle1, so maven actually only needs to recompile this and dependent bundles. What maven does is to recompile every bundle.

I thought maybe there could be a way to detect git changes or similar, so there might be way to do this. Any help appreciated.

Git Baby is a git and github fan, let's start git clone.