It should be possible to write the code in other languages then java
For example one should be able (it is not resonable but still should be possible) to write "main" sources using groovy and "test" sources using jython.
then once somebody types "maven jar" groovy compiler should first be invoked and used for compiling groovy classes then unit test runner which undestand jython should be invoked.
This probably also open the point if we should have something like <groovySourceDirectory> or <jythonUnitTestSourceDirectory>.
IMO: NO!
But probably we should replace:
<sourceDirectory>src/java</sourceDirectory>
<unitTestSourceDirectory>src/test/java</unitTestSourceDirectory>
with
<sourceDirectory> <location>src/groovy</location> <language>groovy</language> </sourceDirectory>
<unitTestSourceDirectory> <location>src/test/java</location> <language>jython</language> </unitTestSourceDirectory>
with default language = java
2 Comments
Michal Maczka
We shoudld also think if we should add tags like
<webSourceDirectory>
Daniel Diephouse
Don't change the POM format! Maybe make language an attribute. I.e.
<sourceDirectory language="groovy">...</sourceDirectory>