title: Spring Tool Suite: Copying and renaming a Maven Web App
body: <p>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.</p>
  
  <p><img src="https://i.stack.imgur.com/aTW3A.png" alt="1-Copy the project">
  <img src="https://i.stack.imgur.com/Kallj.png" alt="2-Paste the project">
  <img src="https://i.stack.imgur.com/ZcnGg.png" alt="3-Paste new as FDE3">
  <img src="https://i.stack.imgur.com/cGdWv.png" alt="4-Select new FDE3">
  <img src="https://i.stack.imgur.com/e7k84.png" alt="5-Close the original">
  <img src="https://i.stack.imgur.com/7mktH.png" alt="6-Update POM step 1">
  <img src="https://i.stack.imgur.com/SeP3K.png" alt="7-Update POM step 2"></p>
  
  <p>Change Context Root</p>
  
  <p><img src="https://i.stack.imgur.com/ynNoS.png" alt="Change Context Root"></p>
  
  <p>Confirm Change Context Root</p>
  
  <p><img src="https://i.stack.imgur.com/yfct8.png" alt="Confirm Change tio Context Root"></p>
  
  <p>Still the original "FitnessTracker" name persists and I'm not sure how to get rid of it.</p>
  
  <p><img src="https://i.stack.imgur.com/oqMo4.png" alt="Old Name Persists"></p>
  
  <p>If I was able to successfully clone the FitnessTracker webapp as FDE3, I should be able to access the new site as </p>
  
  <pre><code>http://localhost:8080/FDE3
  </code></pre>
  
  <p>But I get an invalid resource error. Instead, the site is still accessible as </p>
  
  <pre><code>http://localhost:8080/FitnessTracker
  </code></pre>
  
  <p>..because of reminants of the old name.</p>
  
  <p>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.</p>
  
  <p>I see that the following file contains the text "FitnessTracker" but I would rather not modify it manully for fear of breaking. What GUI option controls this?</p>
  
  <pre><code>Search "fitnesstracker" (2 hits in 1 file)
    C:\Dev\Workspace\FDE3\.settings\org.eclipse.wst.common.component (2 hits)
      Line 2:     &lt;wb-module deploy-name="FitnessTracker"&gt;
      Line 7:         &lt;property name="java-output-path" value="/FitnessTracker/target/classes"/&gt;
  </code></pre>
  
  <p>Sorry for being a noob.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I'm not sure what I did, maybe just clean, refresh, open/close a million time, dunno, but now when I run the web server from with the Spring IDE the site is coming up using the FDE3 path, however, I am wondering why I see a reference to Fitness in Parens in the project node. </p>
  
  <p><img src="https://i.stack.imgur.com/YnzYl.png" alt="enter image description here"></p>
  
  <p>Earlier, it just displayed "FitnessTracker" in parens, now I see a full path to a Test folder...</p>
  
  <p><strong>Update 2:</strong></p>
  
  <p>When I copied the FitnessTracker project  as FDE3, I didn't expect that the new FDE3 project would have any ties to FitnessTracker project and I didn't think that the new FD3 project would be in SVN until I added it to SVN, but based on the icons I see below, it looks like it is, (I'm new to SVN, too)</p>
  
  <p><img src="https://i.stack.imgur.com/MfTzh.png" alt="enter image description here"></p>
  
  <p>It looks like my issues are related to SVN.</p>
  
  <p><img src="https://i.stack.imgur.com/t4dru.png" alt="enter image description here"></p>
  
  <p>Why is there a tie to the original FT project and why? How should I have clone the FitnessTracker project?</p>