I am new to maven. I was using IntelliJ and want to create a maven quickstart project.
My pom is
<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.travisprogramming.spring.test</groupId>
<artifactId>testprog</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>testprog</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
The java file is under src, and I got errors like this:
Error:(3, 23) java: package junit.framework does not exist
Error:(4, 23) java: package junit.framework does not exist
Error:(5, 23) java: package junit.framework does not exist
Error:(11, 13) java: cannot find symbol
symbol: class TestCase
Error:(26, 19) java: cannot find symbol
symbol: class Test
location: class com.travisprogramming.spring.test.AppTest
I tried deleting the <scope>test</scope> it didn't work.
I tried creating a new java file under the test, and run that file, it got same errors.

pom.xml,Maven->Reimport- buræquetesrc>main>java? Your @test classes should be undersrc>test>javaand not in thesrc>main>java. - VPK