Link to home
Create AccountLog in
Avatar of chalie001
chalie001

asked on

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

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
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer