You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Harald Meyer <ha...@hpi.uni-potsdam.de> on 2005/02/24 11:43:17 UTC

Dependency download mechanism

Hi,

is the mechanism that downloads the dependencies specified in the 
project object model a plugin or in some way adjustable?

I want to change the dependencies specified in the pom before their 
download is tried. Is this possible?

Best regards,
Harald

-- 
Harald Meyer            Hasso-Plattner-Inst. für Softwaresystemtechnik
Fon: +49 3 31 55 09-160       Prof.-Dr.-Helmertstr. 2-3, 14482 Potsdam
Fax: +49 3 31 55 09-189                  http://bpt.hpi.uni-potsdam.de

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Dependency download mechanism

Posted by Harald Meyer <ha...@hpi.uni-potsdam.de>.
Hi,

> yup. You would have to declare the 0.8 dependency as 
> 0.8-SNAPSHOT. Then it would check the timestamp of the remote 
> file and download it if it's new.
> That's the only workaround I know about. Non snapshots are 
> never downloaded when in the local repository.

ok, that looks promising. I will try that.

Thanks a lot,
Harald Meyer



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Dependency download mechanism

Posted by Milos Kleint <Mi...@Sun.COM>.
Harald Meyer wrote:

>Hi, 
>
>  
>
>>>>Why do you want to do that? What do you want to achieve?
>>>>        
>>>>
>>>the idea is to allow users to specify "partial" version numbers for 
>>>dependencies (at least for internal dependencies). So "0.8" means 
>>>download the artifact in version "0.8.x" with the highest 
>>>      
>>>
>>available x. 
>>    
>>
>>>The functionality should be similar to snapshots. If a new 
>>>      
>>>
>>version of 
>>    
>>
>>>the dependency appears, it should be used in future builds.
>>>      
>>>
>>Why don't you simlpy replace the 0.8 version within the repo 
>>then and archive the minors (0.8.x, 0.8.y) elsewhere?
>>    
>>
>
>I tried a similar approach first: Version 0.8 was a symbolic link that was
>updated every time a new minor version was released. The problem with this
>approach is that if somebody already downloaded a 0.8 version he will not
>get future 0.8 versions as Maven won't download newer versions. 
>
>  
>

yup. You would have to declare the 0.8 dependency as 0.8-SNAPSHOT. Then 
it would check the timestamp of the remote file and download it if it's new.
That's the only workaround I know about. Non snapshots are never 
downloaded when in the local repository.


Milos Kleint

>Best regards,
>Harald Meyer
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Dependency download mechanism

Posted by Harald Meyer <ha...@hpi.uni-potsdam.de>.
Hi, 

> >>Why do you want to do that? What do you want to achieve?
> > 
> > 
> > the idea is to allow users to specify "partial" version numbers for 
> > dependencies (at least for internal dependencies). So "0.8" means 
> > download the artifact in version "0.8.x" with the highest 
> available x. 
> > The functionality should be similar to snapshots. If a new 
> version of 
> > the dependency appears, it should be used in future builds.
> 
> Why don't you simlpy replace the 0.8 version within the repo 
> then and archive the minors (0.8.x, 0.8.y) elsewhere?

I tried a similar approach first: Version 0.8 was a symbolic link that was
updated every time a new minor version was released. The problem with this
approach is that if somebody already downloaded a 0.8 version he will not
get future 0.8 versions as Maven won't download newer versions. 

Best regards,
Harald Meyer



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Dependency download mechanism

Posted by Gisbert Amm <gi...@webde-ag.de>.
>>Harald Meyer wrote:
>>
>>>Hi,
>>>
>>>is the mechanism that downloads the dependencies specified in the 
>>>project object model a plugin or in some way adjustable?
>>
>>AFAIK is this part of the maven core.
>>
>>
>>>I want to change the dependencies specified in the pom before their 
>>>download is tried. Is this possible?
>>
>>Why do you want to do that? What do you want to achieve?
> 
> 
> the idea is to allow users to specify "partial" version numbers for
> dependencies (at least for internal dependencies). So "0.8" means download
> the artifact in version "0.8.x" with the highest available x. The
> functionality should be similar to snapshots. If a new version of the
> dependency appears, it should be used in future builds.

Why don't you simlpy replace the 0.8 version within the repo then and 
archive the minors (0.8.x, 0.8.y) elsewhere?

Regards,
Gisbert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Dependency download mechanism

Posted by Harald Meyer <ha...@hpi.uni-potsdam.de>.
Hi, 

> 
> Harald Meyer wrote:
> > Hi,
> > 
> > is the mechanism that downloads the dependencies specified in the 
> > project object model a plugin or in some way adjustable?
> 
> AFAIK is this part of the maven core.
> 
> > I want to change the dependencies specified in the pom before their 
> > download is tried. Is this possible?
> 
> Why do you want to do that? What do you want to achieve?

the idea is to allow users to specify "partial" version numbers for
dependencies (at least for internal dependencies). So "0.8" means download
the artifact in version "0.8.x" with the highest available x. The
functionality should be similar to snapshots. If a new version of the
dependency appears, it should be used in future builds.

Best regards,
Harald Meyer



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Dependency download mechanism

Posted by Gisbert Amm <gi...@webde-ag.de>.

Harald Meyer wrote:
> Hi,
> 
> is the mechanism that downloads the dependencies specified in the 
> project object model a plugin or in some way adjustable?

AFAIK is this part of the maven core.

> I want to change the dependencies specified in the pom before their 
> download is tried. Is this possible?

Why do you want to do that? What do you want to achieve?

Regards,
Gisbert Amm

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org