I am getting the below error:
Failed to execute goal .apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project myweb:
Execution default-war of goal .apache.maven.plugins:maven-war-plugin:2.1.1:war failed:
Unable to load the mojo 'war' in the plugin '.apache.maven.plugins:maven-war-plugin:2.1.1' due to an API incompatibility:
.codehaus.plexusponent.repository.exception.ComponentLookupException: Cannot access defaults field of Properties
My Code:
<project xmlns=".0.0" xmlns:xsi=";
xsi:schemaLocation=".0.0 .xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>in.javahome</groupId>
<artifactId>myweb</artifactId>
<packaging>war</packaging>
<version>8.6.9</version>
<name>Java Home myweb</name>
<url>;/url>
<properties>
<docker.image.prefix>kammana</docker.image.prefix>
<sonar.host.url>http://18.181.164.81:9000/</sonar.host.url>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<distributionManagement>
<snapshotRepository>
<id>nexusRepo</id>
<url>http://34.208.218.12:8081/repository/sample-snapshots/</url>
</snapshotRepository>