Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Using a P2 repository (as target) hosted on Amazon S3

why use the s3 protocol?  because then you do need all kind of AWS maven plugins
i tried that and they are all horrible

if you have a bucket you also have just http access to it.. so i would use the normal http url to that p2 repo 
We have a few of those on s3 and that is working fine

On Tue, 22 May 2018 at 15:31, Stéphane Vaucher <svaucher@xxxxxxxxxxxxxxxxxxx> wrote:
Hi everyone,

To support some builds done on AWS, I tried to set up an S3 bucket to host a repository that I would like to use within my tycho target (READ, not WRITE). 
Here's an example on how to do things using pure MVN.

We are able to deploy our application to S3. Additionally, when we access the repository using HTTP, it works fine, but we'd like to avoid a public access to some of our repositories. So we set-up kuali wagon and got the following error:

[ERROR] Internal error: java.lang.RuntimeException: Invalid repository URL: s3://com.castortech.repository/zk-8.5.0.tempfix/: unknown protocol: s3 -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Invalid repository URL: s3://com.castortech.repository/zk-8.5.0.tempfix/
at org.apache.maven.DefaultMaven.execute(
at org.apache.maven.cli.MavenCli.execute(
at org.apache.maven.cli.MavenCli.doMain(
at org.apache.maven.cli.MavenCli.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
at org.codehaus.plexus.classworlds.launcher.Launcher.main(
Caused by: java.lang.RuntimeException: Invalid repository URL: s3://com.castortech.repository/zk-8.5.0.tempfix/
at org.eclipse.tycho.p2.resolver.P2DependencyResolver.addEntireP2RepositoryToTargetPlatform(
at org.eclipse.tycho.p2.resolver.P2DependencyResolver.computePreliminaryTargetPlatform(
at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject(
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(
at org.apache.maven.DefaultMaven.doExecute(
at org.apache.maven.DefaultMaven.doExecute(
at org.apache.maven.DefaultMaven.execute(
... 11 more
Caused by: unknown protocol: s3
at org.eclipse.tycho.p2.resolver.P2DependencyResolver.addEntireP2RepositoryToTargetPlatform(
... 17 more

I tried registering Wagon 
    <version>[S3 Wagon Version]</version>


The error pops up when we try to generate a URL to then transform it into a URI. Do you know if there's anything I'm missing or is what I'm doing simply unsupported? 


tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Johan Compagner

Back to the top