I am trying to create a WAR file with maven within Eclipse and im getting the following errors
[ERROR]/InformationMethods.java:[6,32] package org.apache.xmlrpc.client does not exist
[ERROR]/InformationMethods.java:[7,32] package org.apache.xmlrpc.client does not exist
[ERROR] /InformationMethods.java:[10,25] package org.apache.xmlrpc does not exist
[ERROR]/InformationMethods.java:[11,32] package org.apache.xmlrpc.client does not exist
Here are the dependencies of my POM.xml
<modelVersion>4.0.0</modelVersion>
<groupId>validateVoucher</groupId>
<artifactId>validateVoucher</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>test</name>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<warSourceDirectory>WebContent</warSourceDirectory>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.xmlrpc</groupId>
<artifactId>xmlrpc</artifactId>
<version>3.1.3</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.util</groupId>
<artifactId>ws-commons-util</artifactId>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.6.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.6.2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<packaging>war</packaging>
</project>
Am I missing something?
Thanks
EDIT: [ERROR] /PersonInformationMethods.java:[16,9] cannot find symbol symbol: class XmlRpcClient location: class PersonInformationMethods
[ERROR] /PersonInformationMethods.java:[16,35] cannot find symbol symbol: class XmlRpcClient location: class PersonInformationMethods
[ERROR] /PersonInformationMethods.java:[97,26] cannot find symbol symbol: class XmlRpcException location: class PersonInformationMethods
[ERROR] /PersonInformationMethods.java:[108,26] cannot find symbol symbol: class XmlRpcException location: class PersonInformationMethods
[ERROR] /PersonInformationMethods.java:[117,17] cannot find symbol symbol: class XmlRpcClientConfigImpl location: class PersonInformationMethods
[ERROR] /PersonInformationMethods.java:[117,53] cannot find symbol symbol: class XmlRpcClientConfigImpl location: class PersonInformationMethods
[ERROR] /PersonInformationMethods.java:[129,20] cannot find symbol symbol: class XmlRpcCommonsTransportFactory location: class PersonInformationMethods
EDIT: Thanks for your help guys, I cant accept two answers but I did exactly what both of you said. I can only upvote the answers and mark one as correct.
Check if you are not missing any of these dependencies: