troubleshooting Question

/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/JPQLTest.java:[53,10] cannot find symbol

Avatar of chalie001
chalie001 asked on
* EclipseProgrammingJavaJava EE* Spring Framework
1 Comment1 Solution80 ViewsLast Modified:
hi am geting the following error
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.jpa.hibernate:app >------------------------
[INFO] Building app 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ app ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to C:\solution\app\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\solution\app\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ app ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to C:\solution\app\target\test-classes
[INFO] -------------------------------------------------------------
COMPILATION ERROR :
[INFO] -------------------------------------------------------------
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/NativeQueryTest.java:[13,29] package org.junit.jupiter.api does not exist
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/AppApplicationTests.java:[6,29] package org.junit.jupiter.api does not exist
/C:/solution/app/src/test/java/com/jpa/hibernate/app/CourseRepositoryTest.java:[3,29] package org.junit.jupiter.api does not exist
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/JPQLTest.java:[12,29] package org.junit.jupiter.api does not exist
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/NativeQueryTest.java:[36,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.NativeQueryTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/NativeQueryTest.java:[47,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.NativeQueryTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/NativeQueryTest.java:[57,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.NativeQueryTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/AppApplicationTests.java:[29,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.AppApplicationTests
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/AppApplicationTests.java:[37,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.AppApplicationTests
/C:/solution/app/src/test/java/com/jpa/hibernate/app/CourseRepositoryTest.java:[9,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.CourseRepositoryTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/JPQLTest.java:[35,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.JPQLTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/JPQLTest.java:[44,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.JPQLTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/JPQLTest.java:[53,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.JPQLTest
[INFO] 13 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.686 s
[INFO] Finished at: 2020-03-28T16:41:26+02:00
[INFO] ------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile (default-testCompile) on project app: Compilation failure: Compilation failure:
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/NativeQueryTest.java:[13,29] package org.junit.jupiter.api does not exist
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/AppApplicationTests.java:[6,29] package org.junit.jupiter.api does not exist
/C:/solution/app/src/test/java/com/jpa/hibernate/app/CourseRepositoryTest.java:[3,29] package org.junit.jupiter.api does not exist
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/JPQLTest.java:[12,29] package org.junit.jupiter.api does not exist
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/NativeQueryTest.java:[36,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.NativeQueryTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/NativeQueryTest.java:[47,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.NativeQueryTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/NativeQueryTest.java:[57,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.NativeQueryTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/AppApplicationTests.java:[29,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.AppApplicationTests
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/AppApplicationTests.java:[37,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.AppApplicationTests
/C:/solution/app/src/test/java/com/jpa/hibernate/app/CourseRepositoryTest.java:[9,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.CourseRepositoryTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/JPQLTest.java:[35,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.JPQLTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/JPQLTest.java:[44,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.JPQLTest
/C:/solution/app/src/test/java/com/jpa/hibernate/app/repository/JPQLTest.java:[53,10] cannot find symbol
  symbol:   class Test
  location: class com.jpa.hibernate.app.repository.JPQLTest
-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros