There is already a purge goal that should do what you wanted. -----Original Message----- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Friday, April 25, 2008 10:22 AM To: Maven Users List Subject: Re: API to figure out the exact URL of a deployed artifact?
Hi Brian, So it seems I need to make a large replication of maven resolver source, it is now make sense to fall back to using maven-dependency-plugin to do the work. does it make sense to add a dependency:remove mojo to the maven-dependency-mojo? -D On Fri, Apr 25, 2008 at 6:34 AM, Brian E. Fox <[EMAIL PROTECTED]> wrote: > I see, you don't want it in the local repo. You'll probably have to look > at the resolver code and replicate a large part of it. > > > -----Original Message----- > From: Dan Tran [mailto:[EMAIL PROTECTED] > > Sent: Friday, April 25, 2008 12:16 AM > To: Maven Users List > > > Subject: Re: API to figure out the exact URL of a deployed artifact? > > Brian, the dependency plugin works, but there are a few issues that I > need to address for my client: > > 1. I am dealing with large artifacts ( order of 100M like installer > ), download this type of snappshot artifacts thru dependency > will consume large amount diskspace over time. But this can be > resolved via another plugin ( not yet develop ) to purge > the artifact location in local repo. > > 2. Even if issue in one can be resolved in another plugin, my user > will need to configure bunch of configurations in the pom > dependency, maven-dependency-plugin, purge plugin, and my > plugin. Now if can achieve what I need in initial email > then they only need to configure my plugin alone, which is much > nicer. > > any how, I you know away to get the direct URL please let me know > > Thanks for the inputs. > > -D > > On Thu, Apr 24, 2008 at 8:39 PM, Dan Tran <[EMAIL PROTECTED]> wrote: > > to use dependency plugin, user have to declare the artifact as > > dependency. for my case, I would like to > > allow user to pass them in as -D properties > > > > do you think we can overwrite the dependency value as properties? > any > > how let me try this method first. > > > > Thanks > > > > -D > > > > > > > > > > On Thu, Apr 24, 2008 at 8:29 PM, Brian E. Fox > <[EMAIL PROTECTED]> wrote: > > > How is that different than the dependency:copy where it takes all > those > > > things? > > > > > > > > > -----Original Message----- > > > From: Dan Tran [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, April 24, 2008 11:20 PM > > > To: Maven Users List > > > Subject: API to figure out the exact URL of a deployed artifact? > > > > > > Hello, > > > > > > I would like to write a generic mojo to download a deployed > artifact > > > with given groupId, artifactId, and version as params. For > snapshot, > > > i like to get the latest one. > > > > > > I spent some times with deploy plugin hoping for a clue but not > > > finding any thing yet. > > > > > > Suggestions are greatly appreciated. > > > > > > Thanks > > > > > > -Dan > > > > > > > --------------------------------------------------------------------- > > > 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] > > > > > > > > > > --------------------------------------------------------------------- > 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] > > --------------------------------------------------------------------- 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]
