How to configuration maven.

Answered

When I try to run a "main" function to use custom run configuration at maven project. I got a error. How should I configuration to skip some plugins.

0
1 comment

It is not possible to pass Maven goal arguments to a maven-run configuration type right now. Filled a request about it: FL-16199 maven-run configuration type: add ability to pass arguments just like to a maven task

As a workaround, one may create usual maven run configuration type with the following config:

{
  "type": "maven",
  "name": "run maven",
  "tasks": ["compile", "exec:java"],
  "args": ["-Dexec.mainClass=YourMainClass", "-Dexec.args=\"foo,bar\"", "-DskipTests"],
}
0

Please sign in to leave a comment.