Skip to content

Instantly share code, notes, and snippets.

@fatroom
Created August 31, 2012 10:18
Show Gist options
  • Save fatroom/3551158 to your computer and use it in GitHub Desktop.
Save fatroom/3551158 to your computer and use it in GitHub Desktop.
Maven exclude transitive dependencies by wildcard
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment