FYI. I appreciate any kind of help to start with debugging/running maven
---------- Forwarded message ----------
From: Enrico Olivelli <[hidden email]>
Date: Mon, Jan 15, 2018 at 3:04 AM
Subject: Re: Help Required With debugging and running on the latest version
To: Hammad Host <[hidden email]>
Il dom 14 gen 2018, 20:04 Hammad Host <[hidden email]> ha scritto:
> Thank you for the reply Dear Enrico Olivelli, actually I also want to
> become a developer but struggling with bits and pieces.
> Regarding clone and this mvn clean install -DskipTests part. I have done
> You will have a brand new surefire on your local repository:
> Ok now how can I configure my POM to use this brand new surefire? Or is
> there some other way to use it in my current project.
Just change version to 2.21.0-SNAPSHOT in your pom.xml file.
This will work only on the machine where you built surefire.
You don't need to create a new branch to build surefire. You will need it
only while trying to work on an issue and submit a patch.
> This is very difficult, there are many moving parts and tests are usually
> spawned in new jvms.
> I am using netbeans and having surefire sources it is enough to debug some
> part of the build. But for the cose usually it is better toto run surefire
> tests. I am very new to surefire development too. Usually I add
> System.out.print or new Exception().printStackTrace() and rebuild surefire.
> I do understand you you will have busy schedule, but please help me start
> with maven development. I also want to say that I am very new to surefire
> development :) I don't want to be your time eater, you can point me to some
> useful resources to start with netbeans, intellij isn't the only option,
> help me start anyway.
You are welcome, no problem from me.
But I hope that other guys on this list can help you more.
This way is my way of working on surefire.
I think that the most complex aspect is that Maven components are
built/modeled using Maven itself (which is the best tool currently) and so
any development tool/IDE is not designed for this work. IDEs usually take
Maven model and plugins as a fundation. Most of the tests run as
integration tests in surefire, that is that they are test cades which spawn
other maven instances and watch the results of the execution (like
I use the debugger when possible, but is very difficult. So it is simpler
to add some logs and see the results.
I suggest you to disable checkstyle when building a lot of times the code
> By rebuild you mean mvn clean install -DskipTests and see the output of System.out.print
> or new Exception().printStackTrace() in the building process!!!
Maybe the first starting point is to pick up and issue and try to solve the
problem, discussing on JIRA or on this dev list about the problem and the
Maven is fully moving to git and it has mirrors on github for each
component so it is quite easy to checkout code and submit patches in form
of pull requests.
We need volounteers on surefire, this component is very important but I see
there are not many guys working on it. I think any help will be really
appreciated, following the Apache way of collaborating
I am sorry I am not able to help you more than this.
Please ping on this list and I will do my best to answer your questions.
Surely committers will have some best word to spend on this topic
> On Sun, Jan 14, 2018 at 11:02 PM, Enrico Olivelli <[hidden email]>
>> Il dom 14 gen 2018, 15:42 Hammad Host <[hidden email]> ha scritto:
>>> I am newbie to this can you kindly guid me on 2 things:
>>> 1. How to run with non-release sources in SUREFIRE-1450
>>> <https://issues.apache.org/jira/browse/SUREFIRE-1450> 2.21.0-SNAPSHOT
>> Just clone maevn surefire from github abd run
>> mvn clean install -DskipTests
>> You will have a brand new surefire on your local repository
>> 2. How to run a maven project with sources, i.e. How can one run/debug
>>> maven-sure-fire, using intelliJ idea, actually I wanted to debug it on my
>>> own but couldn't find help.
>> This is very difficult, there are many moving parts and tests are usually
>> spawned in new jvms.
>> I am using netbeans and having surefire sources it is enough to debug
>> some part of the build. But for the cose usually it is better toto run
>> surefire tests. I am very new to surefire development too. Usually I add
>> System.out.print or new Exception().printStackTrace() and rebuild surefire.
>>> If you are clear on questions can you please point me to right direction!
>>> Thank you in advance!
>> -- Enrico Olivelli
-- Enrico Olivelli
|Free forum by Nabble||Edit this page|