<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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.baeldung</groupId> <artifactId>apache-solrj</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>apache-solrj</name> <properties> <junit.version>4.12</junit.version> <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version> </properties> <dependencies> <dependency> <groupId>org.apache.solr</groupId> <artifactId>solr-solrj</artifactId> <version>6.4.0</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${maven-surefire-plugin.version}</version> <configuration> <source>1.8</source> <target>1.8</target> <excludes> <exclude>**/*IntegrationTest.java</exclude> <exclude>**/*LiveTest.java</exclude> </excludes> </configuration> </plugin> </plugins> </build> </project>