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

  • No labels

2 Comments

  1. We shoudld also think if we should add tags like

    <webSourceDirectory>

  2. Don't change the POM format! (smile) Maybe make language an attribute. I.e.

    <sourceDirectory language="groovy">...</sourceDirectory>