Hi,
try to configure SCOPE dependency. 
   
        <scope>provided</scope>

Marcelo.

-----Original Message-----
From: Sonar, Nishant [mailto:[EMAIL PROTECTED] 
Sent: 18 September 2007 17:18
To: Maven Users List
Subject: how NOT to include any lib (dependencies) in the WAR ?

Whenever I create a WAR , it creates a WEB-INF/lib inside the war and
adds all the dependencies in the WAR .

What can I do NOT to include any lib (dependencies) in the WAR , and
exclude the lib folder to be in war, here's my POM

<project xmlns="http://maven.apache.org/POM/4.0.0";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0   
       http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <parent>
                <groupId> workspace.samples</groupId>
                <artifactId>simpleWebService</artifactId>
                <version>1.0</version>
        </parent>
        <groupId>workspace.samples.simpleWebService</groupId>
        <artifactId>webService</artifactId>
        <name>${project.artifactId} module for
${project.parent.artifactId}</name>
    <description>${project.artifactId} module for
${project.parent.artifactId}</description>
        <packaging>war</packaging>
        <dependencies>
                <dependency>
                        <groupId>javax.jws</groupId>
                        <artifactId>jsr181</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>3.8.1</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>jaxws-ri</groupId>
                        <artifactId>jaxb-api</artifactId>
                        <version>2.1.1</version>
                </dependency>
                <dependency>
                        <groupId>jaxws-ri</groupId>
                        <artifactId>jaxws-api</artifactId>
                        <version>2.1.1</version>
                </dependency>
                <dependency>
                        <groupId>easymock</groupId>
                        <artifactId>easymock</artifactId>
                        <version>2.0</version>
                </dependency>
                <dependency>
                        <groupId>easymock</groupId>
                        <artifactId>easymockclassextension</artifactId>
                        <version>2.2</version>
                </dependency>
                <dependency>
                        <groupId>commons-logging</groupId>
                        <artifactId>commons-logging-api</artifactId>
                        <version>1.0.4</version>
                </dependency>
                <dependency>
                        <groupId>com.sun.xml.ws</groupId>
                        <artifactId>jaxws-rt</artifactId>
                        <version>2.1.1</version>
                </dependency>
        </dependencies>
        <build>
                <plugins>
                <plugin>
                                <groupId>org.codehaus.mojo</groupId>
        
<artifactId>jaxws-maven-plugin</artifactId>
                                <version>1.2</version>
                                <configuration>
                                        <verbose>false</verbose>
        
<sei>com.service.DateServiceImpl</sei>
                                        <genWsdl>false</genWsdl>
                                        <keep>false</keep>
        
<destDir>target\classes</destDir>
                                </configuration>
                                <executions>
                                        <execution>
                                                <goals>
        
<goal>wsgen</goal>
                                                </goals>
                                                <phase>compile</phase>
                                        </execution>
                                </executions>
                                <!--  for AnnotationProcessorFactory -->
                                <dependencies>
                                        <dependency>
        
<groupId>com.sun</groupId>
        
<artifactId>tools</artifactId>
        
<version>1.5.0_11</version>
                                        </dependency>
                                        <dependency>
        
<groupId>com.sun.xml.ws</groupId>
        
<artifactId>jaxws-tools</artifactId>
                                                <version>2.1.1</version>
                                        </dependency>
                                </dependencies>
                        </plugin>

Thanks,
Nishant

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


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

Reply via email to