Skip to main content

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

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>
As per:


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? 


Back to the top