I see the problem:
1. In first build, Maven generate MyApp.1.0-SNAPSHOT.jar and MyApp.1.0.war
includes it.
2. In second build, because MyApp war depends on MyApp jar (SNAPSHOT), so
Maven download MyApp.1.0-20080501.201241-13.jar (which is last build jar)
and insert into WEB-INF/lib. After the MyApp.jar is build, it automatically
insert MyApp.1.0-SNAPSHOT.jar into WEB-INF/lib too. So I get two jars.
Question is:
* Should I always run clean before each build? I hesitate to do that because
clean also clear checkout/ directory which is source code from subversion.
I'd rather keep the source code there and only update it in each build.
* Is there anyway tell Maven not to download that old
MyApp.1.0-20080501.201241-13.jar?
On Wed, Apr 30, 2008 at 9:03 PM, Olivier Dehon <[EMAIL PROTECTED]> wrote:
> Most likely you had the MyApp.1.0-2008***.jar in the
> ${warSourceDirectory}/WEB-INF/lib folder prior to running the build the
> second time. Maybe you ran "mvn war:inplace" between the two builds?
>
> HTH,
> -Olivier
>
>