First of all, I am a JS developer in the process of learning Maven when I move from the Rails house to the Java store. The people at Codehaus have been instrumental in providing the Maven archetype to guide people like me, in understanding how we can use Maven to manage dependencies in our code base:
http://mojo.codehaus.org/javascript-maven-tools/javascript-ria-archetype/index.html
Basically, I understand what they are doing now, but thereโs one part that they donโt explain, and I canโt understand where the magic happens.
There is only one line in HTML in the index.html file of their sample RIA application to enable all JavaScript:
<script type="text/javascript" src="${index.js}"></script>
When I run > mvn jetty:run on the command line, since they suggest running a test webapp, the value of ${index.js} is replaced with ALL JS files for the entire dependency tree that are needed for the application to work.
It's great, but I just don't know what part of the DO process. Can someone more familiar with this architecture explain this to me? Thank you very much!
source share