Access local p2 repo

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Access local p2 repo

chill
Hi,
 
I’ve created a local p2 repository as described in <a href="https://docs.sonatype.org/display/TYCHO/How&#43;to&#43;make&#43;existing&#43;OSGi&#43;bundles&#43;consumable&#43;by&#43;Tycho">https://docs.sonatype.org/display/TYCHO/How+to+make+existing+OSGi+bundles+consumable+by+Tycho. The repo is generated as expected. When I now want to use this repo maven reports the following error: Failed to access p2 repository. Reason: URI contains an authorization component.
 
This is how it is included in the pom file:
 
    <repository>
      <id>bundles.local</id>
      <url>file:// D:/eccenca/SMILA.eclipse/svn/SMILA/SMILA.extension/eclipse/repo</url>
    </repository>
 
Anybody has an idea, how to solve this problem?
 
Regards
Christian
 
Reply | Threaded
Open this post in threaded view
|

RE: Access local p2 repo

Sievers, Jan
looks like you have a space in your URL

"file:// D:/eccenca/SMILA.eclipse/svn/SMILA/SMILA.extension/eclipse/repo"

Jan

From: Christian Hill [mailto:[hidden email]]
Sent: Donnerstag, 3. März 2011 11:03
To: [hidden email]
Subject: [Tycho Users] Access local p2 repo

Hi,
 
I've created a local p2 repository as described in https://docs.sonatype.org/display/TYCHO/How+to+make+existing+OSGi+bundles+consumable+by+Tycho. The repo is generated as expected. When I now want to use this repo maven reports the following error: Failed to access p2 repository. Reason: URI contains an authorization component.
 
This is how it is included in the pom file:
 
    <repository>
      <id>bundles.local</id>
      <url>file:// D:/eccenca/SMILA.eclipse/svn/SMILA/SMILA.extension/eclipse/repo</url>
    </repository>
 
Anybody has an idea, how to solve this problem?
 
Regards
Christian
 
Reply | Threaded
Open this post in threaded view
|

RE: Access local p2 repo

Brian de Alwis
And you might need to use 3 slashes:

        file:///D:/eccenca/SMILA.eclipse/svn/SMILA/SMILA.extension/eclipse/repo

I guess the file: URL handler allows embedding authorization information, much like most internet-protocol schemes

        scheme://user:password@host:port/...

Brian.

On 3-Mar-2011, at 7:31 AM, Sievers, Jan wrote:

> looks like you have a space in your URL
>
> "file:// D:/eccenca/SMILA.eclipse/svn/SMILA/SMILA.extension/eclipse/repo"
>
> Jan
>
> From: Christian Hill [mailto:[hidden email]]
> Sent: Donnerstag, 3. März 2011 11:03
> To: [hidden email]
> Subject: [Tycho Users] Access local p2 repo
>
> Hi,
>  
> I've created a local p2 repository as described in https://docs.sonatype.org/display/TYCHO/How+to+make+existing+OSGi+bundles+consumable+by+Tycho. The repo is generated as expected. When I now want to use this repo maven reports the following error: Failed to access p2 repository. Reason: URI contains an authorization component.
>  
> This is how it is included in the pom file:
>  
>     <repository>
>       <id>bundles.local</id>
>       <url>file:// D:/eccenca/SMILA.eclipse/svn/SMILA/SMILA.extension/eclipse/repo</url>
>     </repository>
>  
> Anybody has an idea, how to solve this problem?
>  
> Regards
> Christian
>  

Reply | Threaded
Open this post in threaded view
|

RE: Access local p2 repo

chill
Thank you, the three slashes fixed my problem.