You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Christofer Jennings <bo...@gmail.com> on 2006/11/18 00:24:51 UTC

build war for jboss, exclude log4j

Hi All,

How can I exclude log4j stuff from a war?

The log4j stuff is conflicting with jboss.

Thanks!
,chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: build war for jboss, exclude log4j

Posted by Christofer Jennings <bo...@gmail.com>.
Thanks Chris,

I also want to be able to run the web-app with "mvn jetty:run" so I had to
set it up like this...

=== in my top-level pom ===============
<dependency>
   <groupId>log4j</groupId>
   <artifactId>log4j</artifactId>
   <version>1.2.13</version>
   <scope>provided</scope>
</dependency>

=== in my web-app's pom ===============
<build>
...
<plugin>
   <groupId>org.mortbay.jetty</groupId>
   <artifactId>maven-jetty-plugin</artifactId>
   <configuration>
      <scanIntervalSeconds>5</scanIntervalSeconds>
      <webDefaultXml>src/main/resources/jetty/webdefault.xml</webDefaultXml>
   </configuration>
   <dependencies>
      <dependency>
         <groupId>log4j</groupId>
         <artifactId>log4j</artifactId>
         <version>1.2.13</version>
      </dependency>
   </dependencies>
</plugin>
</build>

=======================================

,chris
On 11/18/06, Chris Michiels <ch...@gmail.com> wrote:
>
> Hi Chris,
>
> Simple, just use :
>
>     <dependency>
>       <groupId>log4j</groupId>
>       <artifactId>log4j</artifactId>
>       <version>1.2.9</version>
>       <scope>provided</scope>
>     </dependency>
>
> Chris
>
> 2006/11/18, Christofer Jennings <bo...@gmail.com>:
> >
> > Hi All,
> >
> > How can I exclude log4j stuff from a war?
> >
> > The log4j stuff is conflicting with jboss.
> >
> > Thanks!
> > ,chris
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > .
>
>

Re: build war for jboss, exclude log4j

Posted by Chris Michiels <ch...@gmail.com>.
Hi Chris,

Simple, just use :

    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.9</version>
      <scope>provided</scope>
    </dependency>

Chris

2006/11/18, Christofer Jennings <bo...@gmail.com>:
>
> Hi All,
>
> How can I exclude log4j stuff from a war?
>
> The log4j stuff is conflicting with jboss.
>
> Thanks!
> ,chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> .