wouterhardeman / play2-maven-plugin

Automatically exported from code.google.com/p/play2-maven-plugin
0 stars 0 forks source link

Modify one unit test code and the whole project source code are recompiled #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add one unit test: SampleUnitTest.java to one sample project and run 'mvn 
test -Dtest=SampleUnitTest'
2. Revise one unit test source code: SampleUnitTest by adding some spaces or 
cartiridge return.
3. Run 'mvn test -Dtest=SampleUnitTest' again

What is the expected output? What do you see instead?

The expected output is that only the revised code: SampleUnitTest.java is 
recompiled. What I saw is: 37 scala code and 337 java sources are recompiles 
just by this minor change.

What version of the product are you using? On what operating system?

I am using 1.0.0-alpha8 for play2.plugin and 1.0.0-beta4 for 
sbt-compiler.plugin The operating system is: window 2008 server.

Please provide any additional information below.

Original issue reported on code.google.com by dong...@gmail.com on 13 Apr 2015 at 6:19

GoogleCodeExporter commented 8 years ago
It seems that the root cause of the issue is: test-compile phase. mvn 
test-compile will always recompile all the source code.

Original comment by dong...@gmail.com on 13 Apr 2015 at 9:29

GoogleCodeExporter commented 8 years ago
Hi.

Can you provide logs from the two Maven runs (before and after source code 
change), with '-X' option?

BTW, upgrade play2-maven-plugin version to latest 1.0.0-beta1 and 
sbt-compiler-maven-plugin version to 1.0.0-beta5.

Original comment by gslowiko...@gmail.com on 14 Apr 2015 at 6:36

GoogleCodeExporter commented 8 years ago
What about the logs?

Original comment by gslowiko...@gmail.com on 23 Apr 2015 at 6:57

GoogleCodeExporter commented 8 years ago
I will provide asap. Thanks.

Original comment by dong...@gmail.com on 24 Apr 2015 at 5:46

GoogleCodeExporter commented 8 years ago
Logs sent to your email address. Thank you very much.

Original comment by dong...@gmail.com on 6 May 2015 at 8:26