xmen-5
xmen-5

Reputation: 1906

run a maven plugin goal with parameter in intiliji idea

I'm using the liquibase maven plugin to run and rollback the migrations.

I'm running the rollback goal using the command line as follows:

mvn liquibase:rollback -Dliquibase.rollbackCount=1

How to edit the configuration in intiliji idea to run the goal with the given parameter.

I'm using the intellij idea version : 2021.3.2

enter image description here

Upvotes: 0

Views: 833

Answers (1)

streetturtle
streetturtle

Reputation: 5850

You need to create a custom Run Configuration for that, here is how to do it: Run/Debug Configuration: Maven

You'll basically need to

  • From the main menu, select Add Configuration.
  • Name you configuration and provide the command and parameters.

Done! Now you just need to select it from the dropdown menu of run configurations and execute it.

Upvotes: 2

Related Questions