Regretfully it is not problem of an application. At work I have simultaneously installed NB 5.0 and NB 6.0 M4. On NB 5.0 the same project runs & debugs ok on NB 6.0 M4 it hangs.
------------------------------------------
GOOD SCENARIO
------------------------------------------
The progress in NB 5.O is follow - i Hit F5 (and I have set breakpoint on first line of code):
1) new window appears with name fmc.prototypes:JavaMail:jar:1-0-SNAPSHOT
2) it displays following:
[INFO]JPDA Listening Starting...
[INFO]JPDA Address: novoj:44553
[INFO]Port=44553
[INFO]sourcepath=ClassPath[Entryfile:/home/novoj/Sources/Prototypes/JavaMail/src/main/java/, Entryfile:/home/novoj/Sources/Prototypes/JavaMail/src/test/java/]
[INFO]jdkSources=ClassPath[Entry[jar:file:/usr/lib/j2sdk1.6-sun/src.zip!/]]
3) then Debugger console appears with text (and other windows like local variables, watches and so):
Listening on 44553
4) meanwhile in window fmc.prototypes:JavaMail:jar:1-0-SNAPSHOT build continues:
[INFO]Scanning for projects...
[INFO]----------------------------------------------------------------------------
[INFO]Building JavaMail Prototype
[INFO] task-segment: [package, org.codehaus.mevenide:netbeans-run-plugin:LATEST:run-jar]
[INFO]----------------------------------------------------------------------------
project-execute
[INFO]artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from netbeansIDE-repo-internal
[INFO]artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from netbeansIDE-repo-internal
[INFO]artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from netbeansIDE-repo-internal
[INFO]artifact org.apache.maven.plugins:maven-jar-plugin: checking for updates from netbeansIDE-repo-internal
[INFO]artifact org.apache.maven.plugins:maven-assembly-plugin: checking for updates from netbeansIDE-repo-internal
[resources:resources]
[INFO]Using default encoding to copy filtered resources.
[compiler:compile]
Compiling 3 source files to /home/novoj/Sources/Prototypes/JavaMail/target/classes
[resources:testResources]
[INFO]Using default encoding to copy filtered resources.
[compiler:testCompile]
[INFO]No sources to compile
[surefire:test]
[INFO]No tests to run.
[jar:jar]
[INFO]Building jar: /home/novoj/Sources/Prototypes/JavaMail/target/JavaMail-1.0-SNAPSHOT.jar
[INFO]Preparing assembly:directory
[INFO]----------------------------------------------------------------------------
[INFO]Building JavaMail Prototype
[INFO]----------------------------------------------------------------------------
[WARN]Removing: directory from forked lifecycle, to prevent recursive invocation.
[resources:resources]
[INFO]Using default encoding to copy filtered resources.
[compiler:compile]
[INFO]Nothing to compile - all classes are up to date
[resources:testResources]
[INFO]Using default encoding to copy filtered resources.
[compiler:testCompile]
[INFO]No sources to compile
[surefire:test]
[INFO]No tests to run.
[jar:jar]
[WARN]DEPRECATED [descriptor]: Please use descriptors instead
[assembly:directory
{execution: nb}
]
[INFO]Copying 8 files to /home/novoj/Sources/Prototypes/JavaMail/target/executable-netbeans
[INFO]artifact org.apache.maven:maven-project: checking for updates from netbeansIDE-repo-internal
[INFO]artifact org.apache.maven:maven-project: checking for updates from mevenide
[INFO]artifact org.apache.maven:maven-plugin-api: checking for updates from netbeansIDE-repo-internal
[INFO]artifact org.apache.maven:maven-plugin-api: checking for updates from mevenide
[netbeans-run:run-jar]
[INFO]Executing "java -Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=49985 -jar JavaMail-1.0-SNAPSHOT.jar " in directory /home/novoj/Sources/Prototypes/JavaMail/target/executable-netbeans
5) then it stops on break point - in debugger console renders:
User program running
Breakpoint hit at line 67 in class fmc.prototypes.javamail.JavaMail by thread main.
Thread main stopped at JavaMail.java:67.
6) after finishing program ... build finishes in window fmc.prototypes:JavaMail:jar:1-0-SNAPSHOT with this text:
ans
[INFO]Exited with return code=0
[INFO]------------------------------------------------------------------------
[INFO]BUILD SUCCESSFUL
[INFO]------------------------------------------------------------------------
[INFO]Total time: 2 minutes 36 seconds
[INFO]Finished at: Thu Oct 26 08:23:42 CEST 2006
[INFO]Final Memory: 33M/66M
[INFO]------------------------------------------------------------------------
In debugger console renders:
User program running
User program finished
------------------------------------------
BAD SCENARIO
------------------------------------------
The progres in NB 6.0 M4 on the same project with breakpoint on first line of code is follow:
1) new window appears with name fmc.prototypes:JavaMail:jar:1-0-SNAPSHOT
2) it displays following:
[INFO]JPDA Listening Starting...
[INFO]JPDA Address: novoj:53947
[INFO]Port=53947
[INFO]sourcepath=ClassPath[Entryfile:/home/novoj/Sources/Prototypes/JavaMail/src/main/java/, Entryfile:/home/novoj/Sources/Prototypes/JavaMail/src/test/java/]
[INFO]jdkSources=ClassPath[Entry[jar:file:/usr/lib/j2sdk1.6-sun/src.zip!/]]
3) then Debugger console appears with text (and other windows like local variables, watches and so):
Listening on 44553
4) nothing else happens - build in window fmc.prototypes:JavaMail:jar:1-0-SNAPSHOT doesn't continue as it was in case of NB 5.0 - in right bottom corner progresbarr "Run Maven build" rotates, but never ends - I have to close whole NB to kill the thread
------------------------------------
CONCLUSION
------------------------------------
From my point of view there is no problem in project, but in NB version. Nevertheless, I'll pack my test project and enclose it to this bug. Thanks for you attention.
the app is run through maven, so the build is supposed to finish when the app finishes.
the stopping of the build is current very conservative and only stops when a single plugin execution finishes. if the plugin hangs, it cannot be stopped now..
can you attach a simple app that doens't work for you? does run open a new output tab?