Hi Manos,

Replies below:

On 10-08-25 02:41 PM, Manos Batsis wrote:
The way I get this, you don't have to change the behavior of Maven's compiler plugin.

If you check out [1], you'll see there are plenty of lifecycle phases to hook your ant tasks (or whatnot) and perform steps 1, 2 and 3.

For example, I'd probably use generate-(re)sources/process-(re)sources to perform 1 and 2.

For step 3, generate-sources is greate for code generation (i.e. if that jsc thingy produces .java code), otherwise I'd just throw in the generated class files in the target during prepare-package or, especially if you need tests, process-classes.
I think you might be right, the way you describe may better integrate with the Maven lifecycle than having tasks 1,2 and 3 all be executed within the compile phase. However, it's not clear to me how what you propose could be implemented using the Maven AntRun plugin. The reason for this is that, currently in the Ant script, tasks 1, 2, and 3 depend on one-another such that 3 depends on 2, and 2 depends on 1. This is desirable, as, when calling the task 3 in the Ant script without Maven, tasks 1 and 2 should be executed before 3. If one were to delegate to tasks 1, 2, and 3 at different phases in the Maven lifecycle, then during the Maven build process, task 1 would be executed, then task 1 followed by task 2, then task 1 followed by 2 followed by 3. It seems like to change this behaviour would involve removing the dependencies in the Ant script, which I feel would essentially be "breaking" the script.

If I've misunderstood something, or there's a better way to implement this, please let me know.

Perhaps you would be interested in helping us implement 1-3 in the maven-jstools-plugin [2] ;-)
Sure. If you don't mind an Ant dependency, then the work is already done:

https://svn.apache.org/repos/asf/commons/sandbox/gsoc/2010/scxml-js/trunk/build.xml

If you have a native Maven plugin in mind, that would be something I could perhaps assist with in the future as well.

Thanks,

Jake

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to