ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tinamou <mkasztel...@gmail.com>
Subject Re: Problem with downloading zip file generated by maven assembly plugin by ivy
Date Fri, 31 Aug 2012 09:13:35 GMT

Problem solved by adding m:classifier="opener". So my dependency looks as
follow:

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven">
	<info organisation="org.apache" module="hello-ivy" />
	<dependencies>
		<dependency org="groupId" name="off"
			rev="0.1.0-SNAPSHOT">
			<artifact name="off" type="zip" m:classifier="opener" />
		</dependency>
	</dependencies>
</ivy-module>

Marek


tinamou wrote:
> 
> Hi,
> 
> I'm looking a way to download zip archive generated by maven assembly 
> plugin by ivy (2.3.0-rc1). The schema of this file is:
> 
> artifaceId-revision-classifier-postfix.zip
> 
> e.g. for:
> 
> <dependency org="groupId" name="off" rev="0.1.0-SNAPSHOT">
>    <artifact name="off" type="zip" />
> </dependency>
> 
> it will be: off-0.1.0-20120830.130458-1-opener.zip
> 
> my ivy settings for this repository:
> 
> <ibiblio name="dice-repo" m2compatible="true" usepoms="true"
> pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
>      root="http://repo.url" />
> 
> and it checks:
> 
> [ivy:retrieve] 
> http://repo.url/groupId/off/0.1.0-SNAPSHOT/off-0.1.0-20120830.130458-1.zip
> [ivy:retrieve] 
> http://repo.url/groupId/off/0.1.0-SNAPSHOT/off-0.1.0-SNAPSHOT.zip
> 
> so far so good. No I change the ibiblio settings to take into account 
> "opener" postfix:
> 
> <ibiblio name="dice-repo" m2compatible="true" usepoms="true"
> pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])-opener.[ext]"
>      root="http://repo.url" />
> 
> than only following url is checked:
> 
> [ivy:retrieve] 
> http://repo.url/groupId/off/0.1.0-SNAPSHOT/off-0.1.0-SNAPSHOT-opener.zip
> 
> How I should configure ibiblio repository to be able to download such 
> zip file? Or maybe there is other possiblity do define postfix in 
> dependency secion?
> 
> Greetings,
> Marek
> 
> 

-- 
View this message in context: http://old.nabble.com/Problem-with-downloading-zip-file-generated-by-maven-assembly-plugin-by-ivy-tp34369519p34372127.html
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message