Re: maven snapshot dependencies and recompilation

2009-09-28 Thread Daniel Bell
Comments below...


> > Hi,
> >
> > My question is similar to this one:
> >
> > http://mail-archives.apache.org/mod_mbox/maven-users/200512.mbox/browser
> >
> > but for maven 2.0.9 -> 2.2.1.
> >
> > I have two projects A and B. B is dependent upon A. A produces
> > A-1.0-SNAPSHOT.jar.
> >
> > When a change is introduced into A and the new snapshot is installed
> > into the local repository, B is not fully recompiled unless "clean" is
> > specified when building B. This means that if an interface is changed in
> > A, B will not be recompiled against the changed interface.
> >
> > Is there something wrong with my configuration? If not, what is accepted
> > practice? Manually doing a clean whenever a change in snapshot is
> > detected seems inefficient and error-prone.
> >
> mvn clean compile  --> maven will do clean operaion before the comile


I understand that "mvn clean compile" will do what is required. However,
this means that whenever there is the possibility of snapshots being
updated (ie. "mvn -U" or manual compilation of a dependent project) that
the "clean" target should be invoked. I was hoping that maven would be
intelligent enough to determine that a dependent jar had changed and be
able to automatically do a "clean". Is this not possible?

Thanks,
Dan.


maven snapshot dependencies and recompilation

2009-09-24 Thread Daniel Bell
Hi,

My question is similar to this one: 

http://mail-archives.apache.org/mod_mbox/maven-users/200512.mbox/browser

but for maven 2.0.9 -> 2.2.1. 

I have two projects A and B. B is dependent upon A. A produces
A-1.0-SNAPSHOT.jar. 

When a change is introduced into A and the new snapshot is installed
into the local repository, B is not fully recompiled unless "clean" is
specified when building B. This means that if an interface is changed in
A, B will not be recompiled against the changed interface.

Is there something wrong with my configuration? If not, what is accepted
practice? Manually doing a clean whenever a change in snapshot is
detected seems inefficient and error-prone.

Thanks,
Daniel.


maven snapshot dependencies and recompilation

2009-09-24 Thread Daniel Bell
Hi,

My question is similar to this one: 

http://mail-archives.apache.org/mod_mbox/maven-users/200512.mbox/browser

but for maven 2.0.9 -> 2.2.1. 

I have two projects A and B. B is dependent upon A. A produces
A-1.0-SNAPSHOT.jar. 

When a change is introduced into A and the new snapshot is installed
into the local repository, B is not fully recompiled unless "clean" is
specified when building B. This means that if an interface is changed in
A, B will not be recompiled against the changed interface.

Is there something wrong with my configuration? If not, what is accepted
practice? Manually doing a clean whenever a change in snapshot is
detected seems inefficient and error-prone.

Thanks,
Daniel.