You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Simon IJskes - QCG <si...@qcg.nl> on 2023/10/11 08:37:10 UTC
maven recursive clean
Hi,
Having the following situation:
* a maven project with modules.
* a module with dependencies in the set of modules.
* developers intention is to make sure everything is freshly compiled.
* marks the 'clean' action with 'Build with dependencies' on the module.
* the clean action first builds the dependencies and then cleans the module.
'Build with dependencies' is clearly not 'Clean with dependencies' but i
would expect some kind of dependency action, because the build process
has something similar, and the intention is this case is to extend the
behaviour over the dependencies.
Also 'Clean and Build' with 'Build with dependencies' does truly what is
says. First build dependencies and then cleans the module, which seems odd.
In an netbeans ant project, if i remember correctly, the actions did
more resemble the recursive behaviour than the maven projects. I used to
structure my makefiles to taken dependencies recursion into account, and
i'm sure i copied that behaviour from examples before me.
Is this odd behaviour? by design? bug? very complex to improve?
stupidity on my side?
Greetings,
Simon
--
create firmware without programming https://www.bendyroad.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: maven recursive clean
Posted by Simon IJskes - QCG <si...@qcg.nl>.
Thanks for the shortcut, i'm also using this all the time.
Thats probably why this odd behavour was never reported as a bug. It is
IMHO a UX issue, which when fixed could improve the efficiency of
Netbeans. I did some searching and could not find anything where this UX
oddity was documented as such.
For me it is a clear oddity, but i'm hesitant to file this as a bug,
because it can depend on personal taste/opinion.
Groeten,
Simon
On 10/11/23 18:59, Davide Grandi wrote:
> Hello,
>
> maven default, AFAIK, is to clean and "build" all the modules together,
> taking dependencies in account.
> So it should suffice clean and build the top project.
> eg mvn clean package in maven root/main folder.
>
> If I remember correctly its a "rebuild" (clean + build) in netbeans.
>
> Davide Grandi
>
> On 11/10/2023 10:37, Simon IJskes - QCG wrote:
>> Hi,
>>
>> Having the following situation:
>>
>> * a maven project with modules.
>> * a module with dependencies in the set of modules.
>> * developers intention is to make sure everything is freshly compiled.
>> * marks the 'clean' action with 'Build with dependencies' on the module.
>> * the clean action first builds the dependencies and then cleans the
>> module.
>>
>> 'Build with dependencies' is clearly not 'Clean with dependencies' but
>> i would expect some kind of dependency action, because the build
>> process has something similar, and the intention is this case is to
>> extend the behaviour over the dependencies.
>>
>> Also 'Clean and Build' with 'Build with dependencies' does truly what
>> is says. First build dependencies and then cleans the module, which
>> seems odd.
>>
>> In an netbeans ant project, if i remember correctly, the actions did
>> more resemble the recursive behaviour than the maven projects. I used
>> to structure my makefiles to taken dependencies recursion into
>> account, and i'm sure i copied that behaviour from examples before me.
>>
>> Is this odd behaviour? by design? bug? very complex to improve?
>> stupidity on my side?
>>
>> Greetings,
>>
>> Simon
>>
--
create firmware without programming https://www.bendyroad.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: maven recursive clean
Posted by Davide Grandi <da...@email.it.INVALID>.
Hello,
maven default, AFAIK, is to clean and "build" all the modules together,
taking dependencies in account.
So it should suffice clean and build the top project.
eg mvn clean package in maven root/main folder.
If I remember correctly its a "rebuild" (clean + build) in netbeans.
Davide Grandi
On 11/10/2023 10:37, Simon IJskes - QCG wrote:
> Hi,
>
> Having the following situation:
>
> * a maven project with modules.
> * a module with dependencies in the set of modules.
> * developers intention is to make sure everything is freshly compiled.
> * marks the 'clean' action with 'Build with dependencies' on the module.
> * the clean action first builds the dependencies and then cleans the
> module.
>
> 'Build with dependencies' is clearly not 'Clean with dependencies' but
> i would expect some kind of dependency action, because the build
> process has something similar, and the intention is this case is to
> extend the behaviour over the dependencies.
>
> Also 'Clean and Build' with 'Build with dependencies' does truly what
> is says. First build dependencies and then cleans the module, which
> seems odd.
>
> In an netbeans ant project, if i remember correctly, the actions did
> more resemble the recursive behaviour than the maven projects. I used
> to structure my makefiles to taken dependencies recursion into
> account, and i'm sure i copied that behaviour from examples before me.
>
> Is this odd behaviour? by design? bug? very complex to improve?
> stupidity on my side?
>
> Greetings,
>
> Simon
>
--
ing. Davide Grandi
email : davide.grandi@email.it
linkedin : http://linkedin.com/in/davidegrandi
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists