wouterhardeman / play2-maven-plugin

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

Skip writing of managed classes to "target/classes_managed" and add parameter to turn in on on demand #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The process of "routes" and template files compilation produces Scala and Java 
source files which have to be compiled along with project's sources. These 
files are located in "target/src_managed" directory. They are called managed 
sources.

In normal Maven build "target/src_managed" directory is just added to project's 
source roots.

When working on Play! Java project with IDE not supporting Scala one cannot add 
"target/src_managed" directory to source roots. There is a workaround though. 
After the compilation classes produced from managed sources are copied from 
"target/classes" to "target/classes_managed" and this directory can be added to 
project's classpath instead.

Because all main Java IDEs support Scala these days, this functionality will be 
turned off by default. If anyone needs it, will have to turn it on in plugin's 
configuration.

Additionally here is original comment about this feature in Play! Framework 
v.2.3.6 sources:

https://github.com/playframework/playframework/blob/8004c2f9e95aae342efc214f3798
2c10689f891d/framework/src/sbt-plugin/src/main/scala/PlayCommands.scala#L152-L15
3

Original issue reported on code.google.com by gslowiko...@gmail.com on 13 Nov 2014 at 2:20

GoogleCodeExporter commented 8 years ago
Implemented in 
https://code.google.com/p/play2-maven-plugin/source/detail?r=1137.

Original comment by gslowiko...@gmail.com on 13 Nov 2014 at 2:22

GoogleCodeExporter commented 8 years ago
New 1.0.0-alpha9-SNAPSHOT snapshot deployed.

Original comment by gslowiko...@gmail.com on 13 Nov 2014 at 3:01