• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

How to rename a maven project

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a maven project which I import in Eclipse. I want to rename the project.Could you please tell me what are the steps.

Thanks,
Sidharth
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maven projects are defined based on three facets which are:



You can have any name to your project just by changing it on your folder structure, though I'm not sure if Eclipse offers you the possibility to change the name of your project!

 
author & internet detective
Posts: 42160
937
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
It's a two step procedure:

1) Rename the project in Eclipse (F2 or Refactor -> Rename)
2) Update the artifactId in your pom.xml
 
Marshal
Posts: 5996
417
IntelliJ IDE Python TypeScript Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For completeness, here's the two step procedure for doing it manually.

1) Rename the module directory
2) Rename the artifactId in your pom.xml

So for a multi-module project, the directory structure starts out like this:


and ends up like this

Then your pom.xml contents change from

to
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic