Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D51B918533 for ; Thu, 14 May 2015 03:14:13 +0000 (UTC) Received: (qmail 81328 invoked by uid 500); 14 May 2015 03:14:12 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 81253 invoked by uid 500); 14 May 2015 03:14:12 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 81241 invoked by uid 99); 14 May 2015 03:14:11 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2015 03:14:11 +0000 Received: from mail-yk0-f169.google.com (mail-yk0-f169.google.com [209.85.160.169]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id A8D7F1A0CED for ; Thu, 14 May 2015 03:14:11 +0000 (UTC) Received: by ykep21 with SMTP id p21so20433348yke.3 for ; Wed, 13 May 2015 20:14:10 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.170.200.3 with SMTP id r3mr2374891yke.52.1431573250691; Wed, 13 May 2015 20:14:10 -0700 (PDT) Received: by 10.129.123.212 with HTTP; Wed, 13 May 2015 20:14:10 -0700 (PDT) In-Reply-To: References: Date: Wed, 13 May 2015 23:14:10 -0400 Message-ID: Subject: Re: dependency management with ant quick question From: Christopher To: Maven Users List Content-Type: text/plain; charset=UTF-8 One maven plugin which might help is the https://maven.apache.org/plugins/maven-antrun-plugin/ , which allows you to execute ant tasks within maven. I've seen some projects do this to "mavenize" an ant project a bit (though, usually they end up transitioning completely... eventually). Another option is to have a small maven project inside your project which has all your dependencies, and which executes the copy-dependencies goal of the maven-dependency-plugin to copy all your dependencies to a specified directory (https://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html) to make them available for ant. -- Christopher L Tubbs II http://gravatar.com/ctubbsii On Wed, May 13, 2015 at 11:00 PM, Zk W wrote: > Hi All > > We are new to Maven and we are an ant shop. > We like to use Maven's dependency management feature, not ivy. > > 1- Can we just use Maven's dependency management feature to work with our > ant build script ? > > 2- Since .m2 is the default folder for all the jars, do we use ant copy > task to copy jars from .m2 folder to different project folders to compile > properly ? > > 3. Are there examples out there that use ant for build purpose in > conjunction with maven's dependency management ? > > Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org