<dependency> <groupId>mygroup</groupId> <artifactId>myartifact</artifactId> <version>1.0.0</version> <exclusions> <!--The jdbc driver causes hot-deployment issues--> <exclusion> <groupId>db.drivers</groupId> <artifactId>jdbc</artifactId> </exclusion> </exclusions> </dependency>
I have a maven POM file for a web service. For one of the dependencies I have to specify several exclusions for jar files that are already kept at a higher-level in the web-application server (accessible to all web-applications, not just this particular one). One example of such exclusion is the JAR containing my JDBC driver.
Maven dependency exclusion for War file, but inclusion for tests Maven去除依赖影响
最新推荐文章于 2021-08-30 22:55:14 发布