• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Getting LifecycleExecutionException while converting project to Eclipse

 
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am new Maven. I am trying to create a sample Hibernate project by taking a help from a website.
I executed below Maven Commands.

mvn archetype:generate -DgroupId=com.example.hibernate -DartifactId=HibernateSample -DarchetypeArtifactId=maven-archetype-quickstart -Dinteractivemode=false

Above commands executed successfully.

When i tried to run below command if failed with error.

mvn eclipse:eclipse

So i executed it with -X option

mvn -X eclipse:eclipse

Upon executing above command with -X option i got to know that it is failing with "LifecycleExecutionException".

Can anyone please let me know how to i need to resolve it?

Below is the completed output of mvn -X eclipse:eclipse
***********************************************



 
Jay B Shukla
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I solved this by execute mvn eclipse:eclipse command from the directory where pom.xml is located.

I got this to know by closely looking at the full exception.

Thanks,
Jay Shukla
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jay,

mvn eclipse:eclipse is obsolete. It was used back when eclipse didn't support maven projects natively. mvn eclipse:eclipse was a workaround that allowed you to generate the eclipse project from a maven project. The problem with it is that you will have to rerun mven eclipse:eclipse everytime you change your pom. Also, if you change your eclipse project settings, then it won't change your pom

You should use the m2eclipse plugin. It allows you Eclipse to support the maven pom file as the project file. You can edit the pom file from eclipse. It will also use maven to build the code
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic