Starting and stopping Appium with Maven

When we run our tests we want the ability to start and stop everything, so we are going to add another profile and a series of additional plugins. First of all, we need to add some properties into our <properties> block in preparation for this new profile with all these new plugins:

<appium-maven-plugin.version>0.2.0</appium-maven-plugin.version><maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version><frontend-maven-plugin.nodeVersion>v7.4.0</frontend-maven-plugin.nodeVersion><frontend-maven-plugin.npmVersion>4.1.1</frontend-maven-plugin.npmVersion><port-allocator-maven-plugin.version>1.2</port-allocator-maven-plugin.version>

Next we have our new profile, this is quite a big one:

<profile> ...

Get Mastering Selenium WebDriver 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.