转载:
http://lavasoft.blog.51cto.com/62575/1388866/
一般要加<type>jar</type>
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency>