<build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-dependency-plugin</artifactId>
                                <executions>
                                        <execution>
        <id>copy-dependencies</id>
        <phase>package</phase>
        <goals>
                <goal>copy-dependencies</goal>
                                                </goals>
                                                <configuration>
                                <!-- excluding test dependencies from copying 
-->                                       <excludeScope>test</excludeScope>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>


Tomas Darbois
Edifixio Grenoble - Projet ScorWare
04 76 29 89 27
[EMAIL PROTECTED]
-----Message d'origine-----
De : youhaodeyi [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 18 avril 2008 05:35
À : [email protected]
Objet : How to filter test dependency?


I add maven dependency plugin in my pom see below. But it will copy the
dependencies which is in test scope. How can I filter them out?

<build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-dependency-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>copy-dependencies</id>
                                                <phase>package</phase>
                                                <goals>
                                                        
<goal>copy-dependencies</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>
--
View this message in context: 
http://www.nabble.com/How-to-filter-test-dependency--tp16759890s177p16759890.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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