Maven exec plugin- how to include “system” classpath?

后端 未结 4 810
情话喂你
情话喂你 2020-12-17 14:35

I have a project that uses \"system\" scope to specify a jar file included in my project\'s WEB-INF/lib dir. This artifact is not in any of the maven repositori

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 15:37

    Use 'compile' scope to run maven exec plugin - mvn exec:java -Dexec.classpathScope=compile. This will include system-scoped dependencies.

提交回复
热议问题