|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Debug As->Maven Install doesn't stop on my breakpoints. PROBLEM SOLVED (see last posting)I have a maven project which I want to debug. I right-click on it, choose "Debug As" and then "Maven Install". I've put some breakpoints in my junit tests, but Eclipse doesn't stop on those. What could be wrong?
My env: - Eclipse Galileo - M2Eclipse 0.9.9.200908201001 - Maven 2.1.0 - JDK 1.6.0_14 |
|
|
Re: Debug As->Maven Install doesn't stop on my breakpointsUpdate: I've also tried to follow the guidelines from these web pages, but with no luck:
http://docs.codehaus.org/display/MAVENUSER/Dealing+with+Eclipse-based+IDE http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration http://www.homik.de/think/index.php/2008/07/31/debugging-maven-projects-with-eclipse/ The output from the command line says it's waiting for a connection on port 5005, then I start to debug in eclipse, and I can see in the console that the tests are run, but it doesn't stop on any breakpoints. I've added the source of my project to source in the debug configuration too. What about the maven-surefire-plugin configuration in the pom.xml, how should it look like? Now it looks like this: <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.3</version> <configuration> <forkMode>never</forkMode> <!--debugForkedProcess>true</debugForkedProcess--> <systemProperties> <property> <name>catalina.base</name> <value>${project.build.testOutputDirectory}</value> </property> <property> <name>context.realpath</name> <value>${project.basedir}/src/main/webapp</value> </property> </systemProperties> </configuration> </plugin> I've also tried to remove the fork-things, and change values of it...but no luck:( Any input??
|
|
|
Re: Debug As->Maven Install doesn't stop on my breakpointsDebugging MavenInstall lets you debug Maven build, i.e. maven itself and
maven plugins executed during the build. To debug your classes, you most likely want to DebguAs->JUnitTest. -- Regards, Igor > > I have a maven project which I want to debug. I right-click on it, choose > "Debug As" and then "Maven Install". I've put some breakpoints in my junit > tests, but Eclipse doesn't stop on those. What could be wrong? > > My env: > - Eclipse Galileo > - M2Eclipse 0.9.9.200908201001 > - Maven 2.1.0 > - JDK 1.6.0_14 > > -- > View this message in context: > http://www.nabble.com/Debug-As-%3EMaven-Install-doesn%27t-stop-on-my-breakpoints-tp25944271p25944271.html > Sent from the Maven Eclipse - User mailing list archive at Nabble.com. > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Debug As->Maven Install doesn't stop on my breakpointsThanks for input Igor, but I'm not sure if it will solve my problem. My delicate problem is that during junit tests a Derby database is created and started(, and it could/should probably be seen as a integration test). Well, if I run this from command line, it all runs well, but a few test cases fail, and I would like to debug them to see what happens. If I just right click a test and run it as a junit test, the database is not created and such things (which is configured in process-classes and process-test-resources), so I'm not able to debug it as I should.
Therefore I tried to debug it as described in some of the links above, but it doesn't stop on any of my breakpoints. This is an open source project I'm trying to mavenize (it's been an Ant project so far), and some of the existing tests are failing, probably due to some resources not being available or some misconfiguration. That's why I would like to debug them to see what's expected, and then clean up the mess :) If you have time, you could take a look at the web project here, that's where the failing tests are which I would like to debug:http://code.google.com/p/socialsite-mavenized/source/checkout Probably some time later I would like to get away from Derby and probably configure HSQLDB instead, I hope that would be easier to integrate as part of maven testing.
|
|
|
Re: Debug As->Maven Install doesn't stop on my breakpointsHave you seen this page?
http://maven.apache.org/plugins/maven-surefire-plugin/examples/debugging.html -- Regards, Igor > > Thanks for input Igor, but I'm not sure if it will solve my problem. My > delicate problem is that during junit tests a Derby database is created > and > started(, and it could/should probably be seen as a integration test). > Well, > if I run this from command line, it all runs well, but a few test cases > fail, and I would like to debug them to see what happens. If I just right > click a test and run it as a junit test, the database is not created and > such things (which is configured in process-classes and > process-test-resources), so I'm not able to debug it as I should. > > Therefore I tried to debug it as described in some of the links above, but > it doesn't stop on any of my breakpoints. > > This is an open source project I'm trying to mavenize (it's been an Ant > project so far), and some of the existing tests are failing, probably due > to > some resources not being available or some misconfiguration. > > That's why I would like to debug them to see what's expected, and then > clean > up the mess :) > > > > Igor Fedorenko-4 wrote: >> >> Debugging MavenInstall lets you debug Maven build, i.e. maven itself and >> maven plugins executed during the build. To debug your classes, you most >> likely want to DebguAs->JUnitTest. >> >> -- >> Regards, >> Igor >> >>> >>> I have a maven project which I want to debug. I right-click on it, >>> choose >>> "Debug As" and then "Maven Install". I've put some breakpoints in my >>> junit >>> tests, but Eclipse doesn't stop on those. What could be wrong? >>> >>> My env: >>> - Eclipse Galileo >>> - M2Eclipse 0.9.9.200908201001 >>> - Maven 2.1.0 >>> - JDK 1.6.0_14 >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Debug-As-%3EMaven-Install-doesn%27t-stop-on-my-breakpoints-tp25944271p25944271.html >>> Sent from the Maven Eclipse - User mailing list archive at Nabble.com. >>> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> > > -- > View this message in context: > http://www.nabble.com/Debug-As-%3EMaven-Install-doesn%27t-stop-on-my-breakpoints-tp25944271p25947027.html > Sent from the Maven Eclipse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Debug As->Maven Install doesn't stop on my breakpointsYes, I've read that page as well, but no matter how I turn and tweak fork, no fork, different ports..well, it just doesn't stop on my breakpoints :(
Do you have 5 minutes to look into the project to see if you're able to debug and junit tests?
|
|
|
Re: Debug As->Maven Install doesn't stop on my breakpointsHello viggo,
I think the issue is >>>>> - JDK 1.6.0_14 rollback to version JDK 1.6.0_13 and try again Hit: 13th version was the last version of the independent Sun ;) 14 and 15 jdk caused the problem to me (16 did not touched) Cheers, Sunday, October 18, 2009, 4:36:21 PM, you wrote: > Yes, I've read that page as well, but no matter how I turn and tweak fork, no > fork, different ports..well, it just doesn't stop on my breakpoints :( > Do you have 5 minutes to look into the project to see if you're able to > debug and junit tests? > Igor Fedorenko-4 wrote: >> >> Have you seen this page? >> >> http://maven.apache.org/plugins/maven-surefire-plugin/examples/debugging.html >> >> -- >> Regards, >> Igor >> >>> >>> Thanks for input Igor, but I'm not sure if it will solve my problem. My >>> delicate problem is that during junit tests a Derby database is created >>> and >>> started(, and it could/should probably be seen as a integration test). >>> Well, >>> if I run this from command line, it all runs well, but a few test cases >>> fail, and I would like to debug them to see what happens. If I just right >>> click a test and run it as a junit test, the database is not created and >>> such things (which is configured in process-classes and >>> process-test-resources), so I'm not able to debug it as I should. >>> >>> Therefore I tried to debug it as described in some of the links above, >>> but >>> it doesn't stop on any of my breakpoints. >>> >>> This is an open source project I'm trying to mavenize (it's been an Ant >>> project so far), and some of the existing tests are failing, probably due >>> to >>> some resources not being available or some misconfiguration. >>> >>> That's why I would like to debug them to see what's expected, and then >>> clean >>> up the mess :) >>> >>> >>> >>> Igor Fedorenko-4 wrote: >>>> >>>> Debugging MavenInstall lets you debug Maven build, i.e. maven itself and >>>> maven plugins executed during the build. To debug your classes, you most >>>> likely want to DebguAs->JUnitTest. >>>> >>>> -- >>>> Regards, >>>> Igor >>>> >>>>> >>>>> I have a maven project which I want to debug. I right-click on it, >>>>> choose >>>>> "Debug As" and then "Maven Install". I've put some breakpoints in my >>>>> junit >>>>> tests, but Eclipse doesn't stop on those. What could be wrong? >>>>> >>>>> My env: >>>>> - Eclipse Galileo >>>>> - M2Eclipse 0.9.9.200908201001 >>>>> - Maven 2.1.0 >>>>> - JDK 1.6.0_14 >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/Debug-As-%3EMaven-Install-doesn%27t-stop-on-my-breakpoints-tp25944271p25944271.html >>>>> Sent from the Maven Eclipse - User mailing list archive at Nabble.com. >>>>> >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Debug-As-%3EMaven-Install-doesn%27t-stop-on-my-breakpoints-tp25944271p25947027.html >>> Sent from the Maven Eclipse - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> -- Best regards, Oleg mailto:taranenko.forums@... --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Debug As->Maven Install doesn't stop on my breakpointsThanks A LOT Tharanenko!!
The JDK itself was the problem!! http://viggonavarsete.blogspot.com/2009/10/steer-clear-of-jdk-16-update-14-and-15.html
|
| Free embeddable forum powered by Nabble | Forum Help |