Eccenux commented on issue #3605:
URL: https://github.com/apache/netbeans/issues/3605#issuecomment-3097339009

   Still the same on NB26.
   
   Even relatively simple micro service projects that use latest SpringBoot 
deploy twice.
   
   Workaround:
   
   1. Clear work and temp dirs (I use a script for that, on Windows running 
with Git bash). Crucially this removes: `work\Catalina\localhost\aash\`
   2. Remove project's xml from conf dir: `conf\Catalina\localhost\aash.xml`.
   
   Perhaps Netbeans could do something like that: before starting Tomcat remove 
`localhost/projectName.xml` and `localhost/projectName/` (where projectName is 
the name of the project being deployed).
   
   clear-temp.sh:
   ```bash
   : <<'COMMENT'
   
   Running on Windows:
   1. Open Tomcat's main dir in Git Bash (the dir with `conf` and `bin`).
   2. Run this file. (or paste the code in console)
   
   Or create lnk with tomcat as the workdir.
   
   COMMENT
   
   # del
   echo "Removing work contents..."
   rm -rf ./work/*
   echo "Removing temp contents..."
   rm -rf ./temp/*
   
   echo -e "\nDone\n"
   
   # PAUSE
   read -rsp $'Press any key to continue...\n' -n 1 key
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to