• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Re: maven build error message

 
Greenhorn
Posts: 13
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
I am using maven in Eclipse Luna, and I got stuck with an error message when I build my project from maven. The error was


I have a hard time to understand why it could not find my class even though i clearly defined it in my POM.xml

My POM.xml as




So any help would be greatly appreciated.

Thanks,
Tom
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


This isn't the name of the class. The class is com.google.cloud.bigquery.samples.BigQueryJavaGettingStarted

main() is the name of the method that kicks off the promo. Java calls it automatically without you specifying that.
 
minhdung tran
Greenhorn
Posts: 13
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks so much for helping me. But I tried to renamed the class to com.google.cloud.bigquery.samples.BigQueryJavaGettingStarted ; and did exec:java from the maven -> build from eclipse.
I still got the same error message as the one I got earlier.
It could not find com.google.cloud.bigquery.samples.BigQueryJavaGettingStarted.

So please advice me on what to do next.
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
exec:java doesn't do a full build. Can you run a Maven install first? That will re-compile the code to pick up on any name changes.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic