Does it also happen after you do an mvn clean?
On 5/29/06, Roland Asmann <[EMAIL PROTECTED]> wrote:
Yes, I know how to do that. But like I said, it doesn't always work the way it
is supposed to!
I have no clue as to why this wouldn't work, might be some sort of bug in
Maven...
Roland
On Monday 29 May 2006 15:14, Kees de Kooter wrote:
> Just to make sure you understood my answer, this is how we do it:
>
> <dependency>
> <groupId>commons-logging</groupId>
> <artifactId>commons-logging</artifactId>
> <version>1.0.4</version>
> <scope>provided</scope>
> </dependency>
>
> It works for us, using maven 2.0.4
>
> On 5/29/06, Roland Asmann <[EMAIL PROTECTED]> wrote:
> > That only seems to work at random! For some strange reason 3 out of 5
> > builds are correct when the scope is set, but those other 2 builds still
> > have the JAR!
> > I have no problem with building a couple of times more, but for automated
> > testing this is disastrous!
> >
> > Roland
> >
> > On Monday 29 May 2006 15:09, Kees de Kooter wrote:
> > > Give it scope "provided".
> > >
> > > On 5/29/06, Roland Asmann <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I am building a WAR, in which I would like to remove some JAR's that
> > > > come up transitively. I've tried to configure my war-plugin like
> > > > this:
> > > >
> > > > <plugin>
> > > > <artifactId>maven-war-plugin</artifactId>
> > > > <configuration>
> > > > <archive>
> > > > <compress>false</compress>
> > > > <manifest>
> > > > <addClasspath>true</addClasspath>
> > > > </manifest>
> > > > </archive>
> > > >
> > > > <dependentWarExcludes>commons-logging</dependentWarExcludes>
> > > > </configuration>
> > > > </plugin>
> > > >
> > > > But this doesn't seem to work. Could anybody tell me how to exclude
> > > > commons-logging from the WAR? And also, could someone explain what
> > > > this 'dependentWarExcludes' does??
> > > >
> > > > Thanks,
> > > >
> > > > Roland
> > > >
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]