• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile error

 
Nakataa Kokuyo
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day,

Below is my pom.xml, and when i run the "clean package" or "clean install" command, it prompt me on build failure as shown below, appreciated someone can show me pointers on my mistake, thanks ahead!

p/s:Eclipse Juno, Java SE 7u17




error :
 
Nakataa Kokuyo
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope can help someone, the test class should place into src/test/java, and then the error resolved.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like those error were printed during the "compile" phase. I am guessing that the missing class is in the spring-test artifact, which you have scoped as 'test'. Looks like you have test classes in src/main, they should be in src/test.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic