There are several questions about maven exception and transitive dependency. However, I do not work. I have some dependencies in my pom that repackaged some libraries to reduce the size of the pom. So far it is successful. But when I execute mvn eclipse:eclipse, these transitive dependencies are written to the .classpath file. Even if they are excluded, as in the following passage.
<dependency>
<groupId>foo.bar</groupId>
<artifactId>foobar</artifactId>
<version>1.2.4</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T13: 57: 37 + 02: 00)
Java Version: 1.7.0_45, Supplier: Oracle Corporation
source
share