Re: API to figure out the exact URL of a deployed artifact?

2008-04-28 Thread Dan Tran
It turns out I need to instantiate a new ArtifactRepository with a new
basedir ( the built-in localRepository does not allow me to change the
basedir, ie not setting method )

Any clue on how to create what I need?

Thanks

-D

On Fri, Apr 25, 2008 at 12:51 PM, Brian E. Fox [EMAIL PROTECTED] wrote:
 If you wanted to create a new repository layout implementation, you could 
 probably create a new ArtifactRepository instance with this layout and hand 
 it to the resolver.

 -Original Message-
 From: Mark Struberg [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 25, 2008 1:53 PM
 To: Maven Users List
 Subject: Re: API to figure out the exact URL of a deployed artifact?


 Problem is that (as far as i know) the ArtifactResolver asks the 'local 
 Repository' to give you
 the artifact. And wagon and other mechanisms in the background perform all 
 the necessary work to
 get the file to your local repo first.
 But this is exactly what Dan tries to avoid!
 The file must not be in the local repo, since this would blew it up.

 LieGrü,
 strub

 --- Tom Huybrechts [EMAIL PROTECTED] schrieb:
  Unless I'm missing something, you could just use an ArtifactResolver.
  See section Creating and resolving an artifact in the mojo developer 
  cookbook.
 
  http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
 
  Tom
 
  On Fri, Apr 25, 2008 at 5:20 AM, Dan Tran [EMAIL PROTECTED] wrote:
   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]
 
 



  __
 Gesendet von Yahoo! Mail.
 Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com

 -
 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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-28 Thread Tom Huybrechts
new DefaultArtifactRepository(id, url, layout) ?

On Mon, Apr 28, 2008 at 8:49 PM, Dan Tran [EMAIL PROTECTED] wrote:
 It turns out I need to instantiate a new ArtifactRepository with a new
  basedir ( the built-in localRepository does not allow me to change the
  basedir, ie not setting method )

  Any clue on how to create what I need?

  Thanks

  -D



  On Fri, Apr 25, 2008 at 12:51 PM, Brian E. Fox [EMAIL PROTECTED] wrote:
   If you wanted to create a new repository layout implementation, you could 
 probably create a new ArtifactRepository instance with this layout and hand 
 it to the resolver.
  
   -Original Message-
   From: Mark Struberg [mailto:[EMAIL PROTECTED]
   Sent: Friday, April 25, 2008 1:53 PM
   To: Maven Users List
   Subject: Re: API to figure out the exact URL of a deployed artifact?
  
  
   Problem is that (as far as i know) the ArtifactResolver asks the 'local 
 Repository' to give you
   the artifact. And wagon and other mechanisms in the background perform all 
 the necessary work to
   get the file to your local repo first.
   But this is exactly what Dan tries to avoid!
   The file must not be in the local repo, since this would blew it up.
  
   LieGrü,
   strub
  
   --- Tom Huybrechts [EMAIL PROTECTED] schrieb:
Unless I'm missing something, you could just use an ArtifactResolver.
See section Creating and resolving an artifact in the mojo developer 
 cookbook.
   
http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
   
Tom
   
On Fri, Apr 25, 2008 at 5:20 AM, Dan Tran [EMAIL PROTECTED] wrote:
 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]
   
   
  
  
  
__
   Gesendet von Yahoo! Mail.
   Mehr Möglichkeiten, in Kontakt zu bleiben. 
 http://de.overview.mail.yahoo.com
  
   -
   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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-28 Thread Dan Tran
it works!!!

Thanks

-D

On Mon, Apr 28, 2008 at 11:59 AM, Tom Huybrechts
[EMAIL PROTECTED] wrote:
 new DefaultArtifactRepository(id, url, layout) ?


 On Mon, Apr 28, 2008 at 8:49 PM, Dan Tran [EMAIL PROTECTED] wrote:
  It turns out I need to instantiate a new ArtifactRepository with a new
   basedir ( the built-in localRepository does not allow me to change the
   basedir, ie not setting method )
 
   Any clue on how to create what I need?
 
   Thanks
 
   -D
 
 
 
   On Fri, Apr 25, 2008 at 12:51 PM, Brian E. Fox [EMAIL PROTECTED] wrote:
If you wanted to create a new repository layout implementation, you 
  could probably create a new ArtifactRepository instance with this layout 
  and hand it to the resolver.
   
-Original Message-
From: Mark Struberg [mailto:[EMAIL PROTECTED]
Sent: Friday, April 25, 2008 1:53 PM
To: Maven Users List
Subject: Re: API to figure out the exact URL of a deployed artifact?
   
   
Problem is that (as far as i know) the ArtifactResolver asks the 'local 
  Repository' to give you
the artifact. And wagon and other mechanisms in the background perform 
  all the necessary work to
get the file to your local repo first.
But this is exactly what Dan tries to avoid!
The file must not be in the local repo, since this would blew it up.
   
LieGrü,
strub
   
--- Tom Huybrechts [EMAIL PROTECTED] schrieb:
 Unless I'm missing something, you could just use an ArtifactResolver.
 See section Creating and resolving an artifact in the mojo developer 
  cookbook.

 http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook

 Tom

 On Fri, Apr 25, 2008 at 5:20 AM, Dan Tran [EMAIL PROTECTED] wrote:
  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]


   
   
   
 __
Gesendet von Yahoo! Mail.
Mehr Möglichkeiten, in Kontakt zu bleiben. 
  http://de.overview.mail.yahoo.com
   
-
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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Dan Tran
On Thu, Apr 24, 2008 at 10:32 PM, Mark Struberg [EMAIL PROTECTED] wrote:
 Hi Dan!

  I think i generally understand your problem, since i have a similar 
 scenario: 120MB of testdata +
  many ~30MB ears packaged for and needed by my OperationsInfrastructure guys 
 in the US.

  But, would you like to cope with all the different setup scenarios, like 
 archiva, maven-proxy,
  etc? Didn't you need to either extend wagon or check the settings.xml 
 cascade to lookup all needed
  things by yourself?

I think i will need to cycle thru all repos, pull each metadata files
down and parse to find the artifact's url
this is what maven does when it tries to fetch the dependency down to
local repository.  I am hope to find
a expo API that allow me to do this in a simple way, the worst case, i
may need to do some cut and paste
from maven core ( if i know where it is )


  For me, I simply gave the deeplink to our internal repo's ear directory to 
 my OI guys, and they
  can download all the files they need via a html browser.
  But then again, they only can access my internal repo via a ssh tunnel over 
 a jumpbox, so any
  direct download (also via maven) would fail anyway.

  For me, it would be nice to configure a plugin which sends an email with a 
 simple http href
  pointing to the artifact to a list of given email adresses. If the mail body 
 is inside the plugin
  config, it would also be possible to fill the actual artifact name, version, 
 etc via a maven
  variable.

  just a few thoughts, hope this isn't too confusing ;)

  LieGrü,
  strub

  --- Dan Tran [EMAIL PROTECTED] schrieb:



   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]
  
  




   __
  Gesendet von Yahoo! Mail.
  Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com



  -
  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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Stuart McCulloch
2008/4/25 Dan Tran [EMAIL PROTECTED]:

 On Thu, Apr 24, 2008 at 10:32 PM, Mark Struberg [EMAIL PROTECTED] wrote:
  Hi Dan!
 
   I think i generally understand your problem, since i have a similar
 scenario: 120MB of testdata +
   many ~30MB ears packaged for and needed by my OperationsInfrastructure
 guys in the US.
 
   But, would you like to cope with all the different setup scenarios, like
 archiva, maven-proxy,
   etc? Didn't you need to either extend wagon or check the settings.xml
 cascade to lookup all needed
   things by yourself?

 I think i will need to cycle thru all repos, pull each metadata files
 down and parse to find the artifact's url
 this is what maven does when it tries to fetch the dependency down to
 local repository.  I am hope to find
 a expo API that allow me to do this in a simple way, the worst case, i
 may need to do some cut and paste
 from maven core ( if i know where it is )


FYI, you could also look at this open-source project:

   http://wiki.ops4j.org/confluence/x/CoA6

which provides a simple URL handler for maven artifacts


   For me, I simply gave the deeplink to our internal repo's ear directory
 to my OI guys, and they
   can download all the files they need via a html browser.
   But then again, they only can access my internal repo via a ssh tunnel
 over a jumpbox, so any
   direct download (also via maven) would fail anyway.
 
   For me, it would be nice to configure a plugin which sends an email with
 a simple http href
   pointing to the artifact to a list of given email adresses. If the mail
 body is inside the plugin
   config, it would also be possible to fill the actual artifact name,
 version, etc via a maven
   variable.
 
   just a few thoughts, hope this isn't too confusing ;)
 
   LieGrü,
   strub
 
   --- Dan Tran [EMAIL PROTECTED] schrieb:
 
 
 
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]
   
   
 
 
 
 
__
   Gesendet von Yahoo! Mail.
   Mehr Möglichkeiten, in Kontakt zu bleiben.
 http://de.overview.mail.yahoo.com
 
 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 

RE: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Brian E. Fox
The copy goal can take them directly in the plugin config (not requiring
a dependency declaration). It should be completely possible to modify
the plugin to take a string from the cli.

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 24, 2008 11:39 PM
To: Maven Users List
Subject: Re: API to figure out the exact URL of a deployed artifact?

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]



RE: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Brian E. Fox
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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Dan Tran
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]



RE: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Brian E. Fox
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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Tom Huybrechts
Unless I'm missing something, you could just use an ArtifactResolver.
See section Creating and resolving an artifact in the mojo developer cookbook.

http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook

Tom

On Fri, Apr 25, 2008 at 5:20 AM, Dan Tran [EMAIL PROTECTED] wrote:
 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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Mark Struberg
Problem is that (as far as i know) the ArtifactResolver asks the 'local 
Repository' to give you
the artifact. And wagon and other mechanisms in the background perform all the 
necessary work to
get the file to your local repo first. 
But this is exactly what Dan tries to avoid!
The file must not be in the local repo, since this would blew it up.

LieGrü,
strub

--- Tom Huybrechts [EMAIL PROTECTED] schrieb:
 Unless I'm missing something, you could just use an ArtifactResolver.
 See section Creating and resolving an artifact in the mojo developer 
 cookbook.
 
 http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
 
 Tom
 
 On Fri, Apr 25, 2008 at 5:20 AM, Dan Tran [EMAIL PROTECTED] wrote:
  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]
 
 



  __
Gesendet von Yahoo! Mail.
Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Tom Huybrechts
No, ArtifactResolver.resolve() will actually download the artifact using Wagon.


On Fri, Apr 25, 2008 at 7:52 PM, Mark Struberg [EMAIL PROTECTED] wrote:
 Problem is that (as far as i know) the ArtifactResolver asks the 'local 
 Repository' to give you
  the artifact. And wagon and other mechanisms in the background perform all 
 the necessary work to
  get the file to your local repo first.
  But this is exactly what Dan tries to avoid!
  The file must not be in the local repo, since this would blew it up.

  LieGrü,
  strub

  --- Tom Huybrechts [EMAIL PROTECTED] schrieb:


  Unless I'm missing something, you could just use an ArtifactResolver.
   See section Creating and resolving an artifact in the mojo developer 
 cookbook.
  
   http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
  
   Tom
  
   On Fri, Apr 25, 2008 at 5:20 AM, Dan Tran [EMAIL PROTECTED] wrote:
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]
  
  




   __
  Gesendet von Yahoo! Mail.
  Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com

  -


 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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Dan Tran
can I get ArtifactResolver.resolve() to download the artfiact to some
other location then local repo?


-D

On Fri, Apr 25, 2008 at 11:36 AM, Tom Huybrechts
[EMAIL PROTECTED] wrote:
 No, ArtifactResolver.resolve() will actually download the artifact using 
 Wagon.



 On Fri, Apr 25, 2008 at 7:52 PM, Mark Struberg [EMAIL PROTECTED] wrote:
  Problem is that (as far as i know) the ArtifactResolver asks the 'local 
  Repository' to give you
   the artifact. And wagon and other mechanisms in the background perform all 
  the necessary work to
   get the file to your local repo first.
   But this is exactly what Dan tries to avoid!
   The file must not be in the local repo, since this would blew it up.
 
   LieGrü,
   strub
 
   --- Tom Huybrechts [EMAIL PROTECTED] schrieb:
 
 
   Unless I'm missing something, you could just use an ArtifactResolver.
See section Creating and resolving an artifact in the mojo developer 
  cookbook.
   
http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
   
Tom
   
On Fri, Apr 25, 2008 at 5:20 AM, Dan Tran [EMAIL PROTECTED] wrote:
 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]
   
   
 
 
 
 
__
   Gesendet von Yahoo! Mail.
   Mehr Möglichkeiten, in Kontakt zu bleiben. 
  http://de.overview.mail.yahoo.com
 
   -
 
 
  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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Tom Huybrechts
One of the arguments to resolve() is an ArtifactRepository object for
your local repository.
So you can decide on the base dir of the local repository, but below
that the default layout would still be used.
If you want to go even further, you can write your own
ArtifactRepositoryLayout and use that to create a
DefaultArtifactRepository.
Doing that I think you can control the target location completely.

On Fri, Apr 25, 2008 at 8:58 PM, Dan Tran [EMAIL PROTECTED] wrote:
 can I get ArtifactResolver.resolve() to download the artfiact to some
  other location then local repo?


  -D



  On Fri, Apr 25, 2008 at 11:36 AM, Tom Huybrechts
  [EMAIL PROTECTED] wrote:
   No, ArtifactResolver.resolve() will actually download the artifact using 
 Wagon.
  
  
  
   On Fri, Apr 25, 2008 at 7:52 PM, Mark Struberg [EMAIL PROTECTED] wrote:
Problem is that (as far as i know) the ArtifactResolver asks the 'local 
 Repository' to give you
 the artifact. And wagon and other mechanisms in the background perform 
 all the necessary work to
 get the file to your local repo first.
 But this is exactly what Dan tries to avoid!
 The file must not be in the local repo, since this would blew it up.
   
 LieGrü,
 strub
   
 --- Tom Huybrechts [EMAIL PROTECTED] schrieb:
   
   
 Unless I'm missing something, you could just use an ArtifactResolver.
  See section Creating and resolving an artifact in the mojo 
 developer cookbook.
 
  http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
 
  Tom
 
  On Fri, Apr 25, 2008 at 5:20 AM, Dan Tran [EMAIL PROTECTED] wrote:
   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]
 
 
   
   
   
   
  __
 Gesendet von Yahoo! Mail.
 Mehr Möglichkeiten, in Kontakt zu bleiben. 
 http://de.overview.mail.yahoo.com
   
 -
   
   
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]



RE: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Brian E. Fox
If you wanted to create a new repository layout implementation, you could 
probably create a new ArtifactRepository instance with this layout and hand it 
to the resolver.

-Original Message-
From: Mark Struberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 25, 2008 1:53 PM
To: Maven Users List
Subject: Re: API to figure out the exact URL of a deployed artifact?

Problem is that (as far as i know) the ArtifactResolver asks the 'local 
Repository' to give you
the artifact. And wagon and other mechanisms in the background perform all the 
necessary work to
get the file to your local repo first. 
But this is exactly what Dan tries to avoid!
The file must not be in the local repo, since this would blew it up.

LieGrü,
strub

--- Tom Huybrechts [EMAIL PROTECTED] schrieb:
 Unless I'm missing something, you could just use an ArtifactResolver.
 See section Creating and resolving an artifact in the mojo developer 
 cookbook.
 
 http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
 
 Tom
 
 On Fri, Apr 25, 2008 at 5:20 AM, Dan Tran [EMAIL PROTECTED] wrote:
  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]
 
 



  __
Gesendet von Yahoo! Mail.
Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com

-
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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-25 Thread Dan Tran
big thanks

-D

On Fri, Apr 25, 2008 at 12:25 PM, Tom Huybrechts
[EMAIL PROTECTED] wrote:
 One of the arguments to resolve() is an ArtifactRepository object for
 your local repository.
 So you can decide on the base dir of the local repository, but below
 that the default layout would still be used.
 If you want to go even further, you can write your own
 ArtifactRepositoryLayout and use that to create a
 DefaultArtifactRepository.
 Doing that I think you can control the target location completely.


 On Fri, Apr 25, 2008 at 8:58 PM, Dan Tran [EMAIL PROTECTED] wrote:
  can I get ArtifactResolver.resolve() to download the artfiact to some
   other location then local repo?
 
 
   -D
 
 
 
   On Fri, Apr 25, 2008 at 11:36 AM, Tom Huybrechts
   [EMAIL PROTECTED] wrote:
No, ArtifactResolver.resolve() will actually download the artifact using 
  Wagon.
   
   
   
On Fri, Apr 25, 2008 at 7:52 PM, Mark Struberg [EMAIL PROTECTED] wrote:
 Problem is that (as far as i know) the ArtifactResolver asks the 
  'local Repository' to give you
  the artifact. And wagon and other mechanisms in the background 
  perform all the necessary work to
  get the file to your local repo first.
  But this is exactly what Dan tries to avoid!
  The file must not be in the local repo, since this would blew it up.

  LieGrü,
  strub

  --- Tom Huybrechts [EMAIL PROTECTED] schrieb:


  Unless I'm missing something, you could just use an ArtifactResolver.
   See section Creating and resolving an artifact in the mojo 
  developer cookbook.
  
   http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
  
   Tom
  
   On Fri, Apr 25, 2008 at 5:20 AM, Dan Tran [EMAIL PROTECTED] wrote:
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]
  
  




   __
  Gesendet von Yahoo! Mail.
  Mehr Möglichkeiten, in Kontakt zu bleiben. 
  http://de.overview.mail.yahoo.com

  -


 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]



RE: API to figure out the exact URL of a deployed artifact?

2008-04-24 Thread Brian E. Fox
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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-24 Thread Dan Tran
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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-24 Thread Dan Tran
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]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-24 Thread Mark Struberg
Hi Dan!

I think i generally understand your problem, since i have a similar scenario: 
120MB of testdata +
many ~30MB ears packaged for and needed by my OperationsInfrastructure guys in 
the US.

But, would you like to cope with all the different setup scenarios, like 
archiva, maven-proxy,
etc? Didn't you need to either extend wagon or check the settings.xml cascade 
to lookup all needed
things by yourself?

For me, I simply gave the deeplink to our internal repo's ear directory to my 
OI guys, and they
can download all the files they need via a html browser.
But then again, they only can access my internal repo via a ssh tunnel over a 
jumpbox, so any
direct download (also via maven) would fail anyway.

For me, it would be nice to configure a plugin which sends an email with a 
simple http href
pointing to the artifact to a list of given email adresses. If the mail body is 
inside the plugin
config, it would also be possible to fill the actual artifact name, version, 
etc via a maven
variable.

just a few thoughts, hope this isn't too confusing ;)

LieGrü,
strub

--- Dan Tran [EMAIL PROTECTED] schrieb:

 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]
 
 



  __
Gesendet von Yahoo! Mail.
Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: API to figure out the exact URL of a deployed artifact?

2008-04-24 Thread Mark Struberg
--- Mark Struberg [EMAIL PROTECTED] schrieb:
 For me, it would be nice to configure a plugin which sends an email with a 
 simple http href
 pointing to the artifact to a list of given email adresses. If the mail body 
 is inside the
 plugin
 config, it would also be possible to fill the actual artifact name, version, 
 etc via a maven
 variable.

To make things more clear:

The first part of the href does not change at all, only the artifact version 
does.
So I'd hardcode this in my email body.

LieGrü,
strub


  __
Gesendet von Yahoo! Mail.
Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]