Ken McWilliams created NETBEANS-42:
--------------------------------------

             Summary: Netbeans Maven:Java Application when run several times 
creates multiple instances (once for each time run), resulting in a port 
confilct
                 Key: NETBEANS-42
                 URL: https://issues.apache.org/jira/browse/NETBEANS-42
             Project: NetBeans
          Issue Type: New Feature
          Components: apisupport - Project
    Affects Versions: 8.2
         Environment: Ubuntu Linux 17.04
            Reporter: Ken McWilliams
            Priority: Trivial


I generally use JEE and Glassfish to create web applications, however I've 
created a web application using Jetty which does not require a container. 
However each time I run the application I have to manually stop the currently 
running instance. This doesn't take long but it is a bit of a pain. I would 
like a smoother development cycle, I'm sure it can be automated at the command 
line and will do so, but I think it should be a pretty common issue.

I'm creating my project using NB 8.2. File -> New Project -> Under Categories 
selecting "Maven", Under Projects "Java Application"

Each time the project is run, a new running instance is deployed, such that 
after 5 runs there are 5 running programs (well that would normally be the case 
for this type of application but because of a port conflict I must stop the 
previous instance).

Any of the following would be a viable solution:

    Ideally, if their is a running instance of the program it is compiled and 
relaunched on save, don't know if this is possible outside of a container like 
Glassfish.
    The application kills any previous deployment and compiles and runs a new 
instance when "Run Project" button is pressed (F6).
    Anything else that meets this intention.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to