jeudi 26 mars 2015

Spring Tool Suite: Copying and renaming a Maven Web App

I have a HelloWorld Java app called FitnessTracker that I want to clone as another name, FDE3, leaving the original website in tact. I performed the following steps an attempt to do this. Please tell me where I went wrong and/or what else I need to do.


1-Copy the project 2-Paste the project 3-Paste new as FDE3 4-Select new FDE3 5-Close the original 6-Update POM step 1 7-Update POM step 2


Change Context Root


Change Context Root


Confirm Change Context Root


Confirm Change tio Context Root


Still the original "FitnessTracker" name persists and I'm not sure how to get rid of it.


Old Name Persists


If I was able to successfully clone the FitnessTracker webapp as FDE3, I should be able to access the new site as



http://localhost:8080/FDE3


But I get an invalid resource error. Instead, the site is still accessible as



http://localhost:8080/FitnessTracker


..because of reminants of the old name.


What do I need to change within Spring Tool Suite to get the web app to use only the new name? To minimize chance of corruptying the project, I'd rather do it via the STS GUI over manual modification of any system file.


Sorry for being a noob.


Aucun commentaire:

Enregistrer un commentaire