Manos,
Thanks for the reply. This makes good sense to me.
Jake
On 10-08-26 10:54 AM, Manos Batsis wrote:
On 08/26/2010 05:44 AM, Jacob Beard 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.
If those are dependencies native to Maven they will be downloaded
automatically from the central repository or a repository you specify.
If however by "dependencies" you just mean your project depends on
them and they are not available in the maven repo (you can check for
example using [1]) then using antrun will be fine. If you just need to
package them along with everything else choose any phase before
"p[ackage" (e.g. "prepare-package"). If you want to do more stuff with
them (i remember you do some JS pre-compile to jave stuff?) then fetch
them during "generate-sources" or something.
hth,
Manos
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]