0

I want to execute a small groovy script via the groovy-maven-plugin(or gmavenplus) during build, I need a third-party dependency, but the project itself doesn't need this dependency, how to add this dependency only for executing groovy scriptes?

Tom Jerry
  • 307
  • 2
  • 10

1 Answers1

0

Add the needed library as a plugin dependency.

<plugin>
    <artifactId>groovy-maven-plugin</artifactId>
    ...
    <dependencies>
        <dependency>
            ....
        </dependency>
    </dependencies>
</plugin>
user944849
  • 14,524
  • 2
  • 61
  • 83