There are many ways to filter the contents of what this picks up. Take a look at the plugin docs: http://maven.apache.org/plugins/maven-dependency-plugin.
I also wrote about using assembly and dependency plugin together and it shows how the filtering can work: http://www.dzone.com/links/rss/how_to_share_resources_across_projects_in _maven.html -----Original Message----- From: youhaodeyi [mailto:[EMAIL PROTECTED] Sent: Thursday, April 17, 2008 11:35 PM To: users@maven.apache.org Subject: 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--tp16759890s177p1675 9890.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]