Hi Wei-Chiu,

  It says the snapshot maven repo is blocked from your logs:

Blocked mirror for
> repositories: [apache.snapshots (http://repository.apache.org/snapshots,
> default, snapshots)] -> [Help 1]
>

  I believe It is caused by using insecure http:// maven repo by default:
https://stackoverflow.com/a/67835542

  To fix this, try adding this chunk to Ozone's root pom.xml:

https://github.com/apache/ratis/blob/90fd0625ff16b4a967ad94010080be59aef2049c/pom.xml#L94-L99

  Ref: RATIS-820 <https://github.com/apache/ratis/pull/53>

  Also I can see hadoop-build-tools SNAPSHOT jars here:

https://repository.apache.org/content/groups/snapshots/org/apache/hadoop/hadoop-build-tools/3.3.9-SNAPSHOT/

Cheers,
Siyao

On Jun 8, 2023 at 10:09:22 AM, Wei-Chiu Chuang <weic...@apache.org> wrote:

> Hi developers,
>
> Is there a way to update the hadoop dependency to a SNAPSHOT version? I
> have a draft PR that relies on a new Hadoop feature
>
> https://github.com/apache/ozone/pull/4825/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
> So instead of hadoop 3.3.5, i have it configured to 3.3.9-SNAPSHOT.
>
>
> But it kept complaining it's unable to find it
> Error: Failed to execute goal
> org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process
> (default) on project ozone-main: Execution default of goal
> org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process failed:
> Plugin org.apache.maven.plugins:maven-remote-resources-plugin:1.5 or one of
> its dependencies could not be resolved: Failed to collect dependencies at
> org.apache.maven.plugins:maven-remote-resources-plugin:jar:1.5 ->
> org.apache.hadoop:hadoop-build-tools:jar:3.3.9-SNAPSHOT: Failed to read
> artifact descriptor for
> org.apache.hadoop:hadoop-build-tools:jar:3.3.9-SNAPSHOT: Could not transfer
> artifact org.apache.hadoop:hadoop-build-tools:pom:3.3.9-SNAPSHOT from/to
> maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for
> repositories: [apache.snapshots (http://repository.apache.org/snapshots,
> default, snapshots)] -> [Help 1]
>
> How does Ozone consume Ratis dependency? AFAIK we consume Ratis SNAPSHOT
> versions, so why am i not getting the same error from Ratis?
>
> Looking for pointers,
> Thank you,
> Weichiu
>

Reply via email to