Greetings, On Wed, Aug 25, 2010 at 10:44 PM, Jacob Beard <[email protected]> wrote: > My project includes dependencies on several JavaScript libraries, including > Dojo, RequireJS and beautify-js. I'm currently using Ant's get task to > download these dependencies, but I'd like to integrate this with my Maven > build. The way I thought I would do this would be to bind an antrun goal to > the phase in which dependencies are downloaded. However, after consulting > the lifecycle reference > <http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference>, > I cannot find a Maven phase in which dependencies are downloaded.
Maven dependencies are downloaded in every phase, and only just before they are required to enter that phase. > Please let me know if I'm on the right track, or if there is a better way of > going about this. Thanks, I don't think you're on the right track, frankly. It would be better for you to create a module for each of your javascript library dependencies, and simply manually download it and put it into src/main/script (or perhaps src/main/resources to allow the easiest packaging). Set the version number to be whatever version of the library you're packaging. Then, in your projects which utilize this javascript, simply depend on your module with the appropriate version. This would be more The Maven Way. Good luck! -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
