We had clone following things -
git clone https://github.com/Jayakumarrm/ba2sh1.git
After which we need to add the SonarQube dependency in pom.xml.
pom.xml code is -
<!--
Pom file to download jenkins war file and install it using `mvn exec:exec -Dvar.port=8000`
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.Play</groupId>
<artifactId>mvn-jkn</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>mvn-jkn</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>eslint</artifactId>
<version>0.5.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<!-- TO BE REPLACED WITH WAR PLUGIN -->
<version>1.6.0</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
We had replace <!-- TO BE REPLACED WITH WAR PLUGIN -->
with <artifactId>maven-war-plugin</artifactId>
but thing not working. Hence need expertise advice.