You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gilles <gi...@harfang.homelinux.org> on 2013/04/05 16:17:07 UTC

[Math] Spurious recompilation

Hi.

At some recent point, maven started to recompile all the source files 
every time,
even when no modification was done in the "src" directory.

Somewhere in the console output, there is:
---CUT---
[INFO] Copying 1 resource
[INFO] Copying 2 resources to META-INF
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 788 source files to 
/home/gilles/devel/SVN/commons-math/trunk/target/classes
---CUT---
[I.e. it's done even when re-running the "test" target several times in 
a row.]

So, it seems that something is changed, but what? And how? And if no 
source file
has been modified, why recompile?

Best regards,
Gilles


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [Math] Spurious recompilation

Posted by Olivier Lamy <ol...@apache.org>.
maybe http://jira.codehaus.org/browse/MCOMPILER-187

can you try with 3.1-SNAPSHOT ?

2013/4/6 Gilles <gi...@harfang.homelinux.org>:
> On Fri, 5 Apr 2013 15:19:29 +0100, sebb wrote:
>>
>> On 5 April 2013 15:17, Gilles <gi...@harfang.homelinux.org> wrote:
>>
>>> Hi.
>>>
>>> At some recent point, maven started to recompile all the source files
>>> every time,
>>> even when no modification was done in the "src" directory.
>>>
>>> Somewhere in the console output, there is:
>>> ---CUT---
>>> [INFO] Copying 1 resource
>>> [INFO] Copying 2 resources to META-INF
>>> [INFO] [compiler:compile {execution: default-compile}]
>>> [INFO] Changes detected - recompiling the module!
>>> [INFO] Compiling 788 source files to /home/gilles/devel/SVN/**
>>> commons-math/trunk/target/**classes
>>> ---CUT---
>>> [I.e. it's done even when re-running the "test" target several times in a
>>> row.]
>>>
>>> So, it seems that something is changed, but what?
>>
>>
>>
>> Use -X to get more info on the resources that are being copied.
>
>
> Things are being copied to
>  trunk/target/classes
> (French error messages)
> and
>  trunk/target/test-classes
> (test data files)
>
> But that was so before too, and it didn't warrant recompilation of untouched
> Java files.
>
> Gilles
>
>
>>> And how? And if no source file
>>> has been modified, why recompile?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>
> For additional commands, e-mail: dev-help@commons.apache.org
>



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [Math] Spurious recompilation

Posted by Gilles <gi...@harfang.homelinux.org>.
On Fri, 5 Apr 2013 15:19:29 +0100, sebb wrote:
> On 5 April 2013 15:17, Gilles <gi...@harfang.homelinux.org> wrote:
>
>> Hi.
>>
>> At some recent point, maven started to recompile all the source 
>> files
>> every time,
>> even when no modification was done in the "src" directory.
>>
>> Somewhere in the console output, there is:
>> ---CUT---
>> [INFO] Copying 1 resource
>> [INFO] Copying 2 resources to META-INF
>> [INFO] [compiler:compile {execution: default-compile}]
>> [INFO] Changes detected - recompiling the module!
>> [INFO] Compiling 788 source files to /home/gilles/devel/SVN/**
>> commons-math/trunk/target/**classes
>> ---CUT---
>> [I.e. it's done even when re-running the "test" target several times 
>> in a
>> row.]
>>
>> So, it seems that something is changed, but what?
>
>
> Use -X to get more info on the resources that are being copied.

Things are being copied to
  trunk/target/classes
(French error messages)
and
  trunk/target/test-classes
(test data files)

But that was so before too, and it didn't warrant recompilation of 
untouched Java files.

Gilles

>> And how? And if no source file
>> has been modified, why recompile?


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [Math] Spurious recompilation

Posted by sebb <se...@gmail.com>.
On 5 April 2013 15:17, Gilles <gi...@harfang.homelinux.org> wrote:

> Hi.
>
> At some recent point, maven started to recompile all the source files
> every time,
> even when no modification was done in the "src" directory.
>
> Somewhere in the console output, there is:
> ---CUT---
> [INFO] Copying 1 resource
> [INFO] Copying 2 resources to META-INF
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 788 source files to /home/gilles/devel/SVN/**
> commons-math/trunk/target/**classes
> ---CUT---
> [I.e. it's done even when re-running the "test" target several times in a
> row.]
>
> So, it seems that something is changed, but what?


Use -X to get more info on the resources that are being copied.


> And how? And if no source file
> has been modified, why recompile?
>
> Best regards,
> Gilles
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: dev-unsubscribe@commons.**apache.org<de...@commons.apache.org>
> For additional commands, e-mail: dev-help@commons.apache.org
>
>