Maven: How to clean integration-test configurations

In our maven project, we have integration test that sets all sorts of things on the integration test server.

I want to be be able to easily clean this things in a command. I want to be able to run:

mvn integration-clean

And this will clean all the things on the server, by running some cleaning mojos from my maven plugin.

How should this be done?

Answers


These are the commands in order to perform a complete integration test:

Step 1: mvn deploy

Step 2: mvn integration-test

Finally do a complete clean install in order to update the changes.

Step 3: mvn clean install

You could refer this for the exact life cycle of the build.


You must be having the integration profile defined in settings.xml.

<settings>
  ...
  <activeProfiles>
    <activeProfile>integrationProfile</activeProfile>
  </activeProfiles>
  ...
</settings>

Assuming the integration profile is active ,

mvn clean install -P integrationProfile

should work for you.


Need Your Help

Need help on getArea() function

c++

I'm trying to calculate the area of the circle and the rectangle by using the existing data (radius ,width, and height). But i have some errors, i hope you can help me fix it.

Why can't I execute ffmpeg using shell_exec in a MAMP environment?

php ffmpeg mamp

I'm trying to run ffmpeg commands from php in my MAMP environment and it won't work. I've already added it to my path. I can run shell commands like whoami and ls -la with success but ffmpeg doesn'...