[
https://issues.apache.org/jira/browse/FLINK-9449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chesnay Schepler closed FLINK-9449.
-----------------------------------
Resolution: Fixed
The flink-shaded-hadoop2-uber jars are not deployed to maven central on Flink
1.7-; hence in a clean environment, without this jar being built first, maven
can't resolve said dependency.
This issue no longer occurs on Flink 1.8+; 1.8 enabled deployment of uber jars
while 1.9+ rely on flink-shaded.
> `mvn clean` fails on macOS 10.13
> --------------------------------
>
> Key: FLINK-9449
> URL: https://issues.apache.org/jira/browse/FLINK-9449
> Project: Flink
> Issue Type: Bug
> Components: Build System
> Affects Versions: 1.5.0, 1.6.0
> Environment: macOS 10.13.4, Java 1.8.0, Maven 3.5.3
> Reporter: Andrew Janke
> Priority: Major
> Attachments: mvn-clean.out
>
>
> I apologize in advance if this is a silly newbie mistake.
> I am trying to build Flink on macOS 10.13, and I can't get the basic `mvn
> clean` target to succeed. (`mvn package` also errors out, but I'm trying to
> just get the basic `mvn clean` working before I attack that.) It throws
> several warnings bout expressions in artifactIds, and then errors out with
> this error:
> [ERROR] Failed to execute goal on project flink-dist_2.11: Could not resolve
> dependencies for project org.apache.flink:flink-dist_2.11:jar:1.6-SNAPSHOT:
> Failure to find org.apache.flink:flink-shaded-hadoop2-uber:jar:1.6-SNAPSHOT
> in https://repository.apache.org/snapshots was cached in the local
> repository, resolution will not be reattempted until the update interval of
> apache.snapshots has elapsed or updates are forced -> [Help 1]
> To reproduce:
> I'm simply cloning my fork of the flink repo, cding in to it, and immediately
> doing a `mvn clean`. Same thing happens if I check out the `release-1.5.0`
> tag first.
> [~/local/repos]
> $ git clone https://github.com/apjanke/flink
> Cloning into 'flink'...
> remote: Counting objects: 459249, done.
> remote: Total 459249 (delta 0), reused 0 (delta 0), pack-reused 459248
> Receiving objects: 100% (459249/459249), 152.68 MiB | 26.29 MiB/s, done.
> Resolving deltas: 100% (194904/194904), done.
> Checking out files: 100% (8240/8240), done.
> [~/local/repos]
> $ cd flink
> [~/local/repos/flink on ⇄ master]
> $ mvn -e clean &> mvn-clean.out
> [✘ ~/local/repos/flink on ⇄ master ±]
> $ mvn --version
> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
> 2018-02-24T14:49:05-05:00)
> Maven home: /usr/local/Cellar/maven/3.5.3/libexec
> Java version: 1.8.0_141, vendor: Oracle Corporation
> Java home:
> /Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.13.4", arch: "x86_64", family: "mac"
> I've attached the output of the build as `mvn-clean.out`, since it's quite
> long.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)