We help IT Professionals succeed at work.
Get Started

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

78 Views
Last Modified: 2020-04-09
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
Comment
Watch Question
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE