To exclude ognl jar,say, from your war file :

In Maven 1.0.2 project.xml :
 
                <dependency>
                        <groupId>ognl</groupId>
                        <artifactId>ognl</artifactId>
                        <version>2.6.7</version>
                        <properties>
                               
<war.bundle>false</war.bundle>
                        </properties>
                </dependency>


In Maven 2 pom.xml :
   
    <dependency>
      <groupId>ognl</groupId>
      <artifactId>ognl</artifactId>
      <version>2.6.7</version>
       <scope>test</scope>
    </dependency>
    

To build a war file :
In Maven 1.0.2 , at project root directory >  maven
war
In Maven 2,  at project root directory > mvn package


In case you did not know, there is a free book on
Maven 2 at

http://maven.apache.org/articles.html

HTH
Shing

--- Henri Dupre <[EMAIL PROTECTED]> wrote:

> I'm thinking about moving my current horrible ant
> file to a nice and fresh
> maven file.
> I read the getting started guide and some other mini
> guides but I have not
> seen any documentation about building a war file.
> Maven seems to have a war task but it is not much
> documented.
> I don't get how you can have any control over what
> jar(s) will go in the lib
> directory of the war.
> I want to have most jars outside the war file...
> Would anyone have an
> example of a serious tapestry web project built with
> maven?
> 
> Thanks,
> 
> Henri.
> 


Home page :
  http://uk.geocities.com/matmsh/index.html


                
___________________________________________________________ 
Inbox full of spam? Get leading spam protection and 1GB storage with All New 
Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to