WildDev
WildDev

Reputation: 2367

Maven - can i include third-party dependencies during app's runtime?

Maven - can i include third-party dependency during app runtime (mb using command line)?

Upvotes: 0

Views: 36

Answers (1)

Eugene Kuleshov
Eugene Kuleshov

Reputation: 31795

If dependency is not required for compilation, but is required for execution or test execution you can use "runtime" dependency scope. For example:

<dependency>
  ...
  <scope>runtime</scope>
</dependency>

Upvotes: 1

Related Questions