Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Specifying an archived p2 repository in pom.xml?

Hm any idea on the syntax when the zipped p2 repo is located on a web server:

http://myhost/p2/myrepo.zip

I have tried:

	
	<repositories>
		<repository>
			<id>myrepo</id>
			<layout>p2</layout>
<!-- 			<url>jar:file:////http://myhost/p2/myrepo.zip!/</url> -->
 			<url>http://myhost/p2/myrepo.zip</url>
		</repository>
	</repositories>	


but does not work. If is possible to use the archive from a file
server it should be possible from a web server too, or what?



On Mon, May 21, 2012 at 2:45 PM, motes motes <mort.motes@xxxxxxxxx> wrote:
> Works fine just needed to add:
>
> jar:file:////
>
> thanks!
>
> On Mon, May 21, 2012 at 2:35 PM, motes motes <mort.motes@xxxxxxxxx> wrote:
>> Seems to be working for the jboss guys:
>>
>> http://web.archiveorange.com/archive/v/yXYbUVDT888G7p3JzzRt
>>
>> will give it a try - the small difference is that the archive is
>> located on a network drive.
>>
>>
>>
>> On Mon, May 21, 2012 at 1:59 PM, X Shel <xeshlt@xxxxxxxxx> wrote:
>>> Does jar:file:////our-network/p2/the-repo.zip/! as url will not worked ?
>>>
>>>
>>> 2012/5/21 Igor Fedorenko <igor@xxxxxxxxxxxxxx>
>>>>
>>>> No, tycho does not support archived p2 repositories.
>>>>
>>>> --
>>>> Regards,
>>>> Igor
>>>>
>>>>
>>>> On 12-05-21 7:54 AM, motes motes wrote:
>>>>>
>>>>> Previously we added a repository in a parent pom.xml like:
>>>>>
>>>>>
>>>>>          <!-- using http -->
>>>>>        <repositories>
>>>>>                <repository>
>>>>>                        <id>some-id</id>
>>>>>                        <layout>p2</layout>
>>>>>                        <url>http://some-host/the-repo</url>
>>>>>                        <layout>p2</layout>
>>>>>                </repository>
>>>>>        </repositories>
>>>>>
>>>>> we have now moved this repo to an internal network drive as a zipped
>>>>> archive. How do I setup the repository to read from this
>>>>> location/archive? I have tried:
>>>>>
>>>>>          <!-- using file/archive -->
>>>>>        <repositories>
>>>>>                <repository>
>>>>>                        <id>some-id</id>
>>>>>                        <layout>p2</layout>
>>>>>                        <url>file:////our-network/p2/the-repo.zip/</url>
>>>>>                </repository>
>>>>>        </repositories>
>>>>>
>>>>>        <build>
>>>>>                <extensions>
>>>>>                        <extension>
>>>>>                                <groupId>org.apache.maven.wagon</groupId>
>>>>>                                <artifactId>wagon-file</artifactId>
>>>>>                                <version>2.2</version>
>>>>>                        </extension>
>>>>>                </extensions>
>>>>>
>>>>> but tycho does not understand/read the above archived repo:
>>>>>
>>>>> [WARNING] Could not transfer metadata..... from/to ....
>>>>> file:////our-network/p2/the-repo.zip/): No connector available to
>>>>> access repository .... (file:////our-network/p2/the-repo.zip/) of type
>>>>> p2
>>>>> using the available factories WagonRepositoryConnectorFactory
>>>>>
>>>>> ....
>>>>> [ERROR] Internal error: java.lang.RuntimeException:
>>>>> java.lang.RuntimeException:
>>>>> org.eclipse.equinox.p2.core.ProvisionException: No repository found at
>>>>> file:////our-network/p2/the-repo.zip/. ->  [Help 1]
>>>>> org.apache.maven.InternalErrorException: Internal error:
>>>>> java.lang.RuntimeException: java.lang.RuntimeException:
>>>>> org.eclipse.equinox.p2.core.ProvisionException: No repository found a
>>>>> t file:////our-network/p2/the-repo.zip/.
>>>>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
>>>>>
>>>>>
>>>>> Does tycho not support archived p2 sites in the repository tag?
>>>>> _______________________________________________
>>>>> tycho-user mailing list
>>>>> tycho-user@xxxxxxxxxxx
>>>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>>>
>>>> _______________________________________________
>>>> tycho-user mailing list
>>>> tycho-user@xxxxxxxxxxx
>>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>>
>>>
>>>
>>> _______________________________________________
>>> tycho-user mailing list
>>> tycho-user@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>>


Back to the top