Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-20092

[Java 11] Multi-thread Flink compilation not working

    XMLWordPrintableJSON

Details

    Description

      I'd like to use maven -T option when compiling flink.

       mvn -T 2C clean install -D"scala-2.12" -DskipTests

      Unfortunately my build is stuck on:

      [INFO] --- maven-shade-plugin:3.2.1:shade (shade-flink) @ flink-fs-hadoop-shaded ---
      [INFO] Including org.apache.hadoop:hadoop-common:jar:3.1.0 in the shaded jar.
      [INFO] Including org.apache.hadoop:hadoop-annotations:jar:3.1.0 in the shaded jar.
      [INFO] Including com.google.guava:guava:jar:11.0.2 in the shaded jar.
      [INFO] Including commons-io:commons-io:jar:2.7 in the shaded jar.
      [INFO] Including commons-collections:commons-collections:jar:3.2.2 in the shaded jar.
      [INFO] Including commons-logging:commons-logging:jar:1.1.3 in the shaded jar.
      [INFO] Including commons-lang:commons-lang:jar:2.6 in the shaded jar.
      [INFO] Including commons-beanutils:commons-beanutils:jar:1.9.3 in the shaded jar.
      [INFO] Including org.apache.commons:commons-configuration2:jar:2.1.1 in the shaded jar.
      [INFO] Including org.apache.commons:commons-lang3:jar:3.3.2 in the shaded jar.
      [INFO] Including com.google.re2j:re2j:jar:1.1 in the shaded jar.
      [INFO] Including org.apache.hadoop:hadoop-auth:jar:3.1.0 in the shaded jar.
      [INFO] Including org.apache.htrace:htrace-core4:jar:4.1.0-incubating in the shaded jar.
      [INFO] Including com.fasterxml.jackson.core:jackson-databind:jar:2.10.1 in the shaded jar.
      [INFO] Including com.fasterxml.jackson.core:jackson-annotations:jar:2.10.1 in the shaded jar.
      [INFO] Including com.fasterxml.jackson.core:jackson-core:jar:2.10.1 in the shaded jar.
      [INFO] Including org.codehaus.woodstox:stax2-api:jar:3.1.4 in the shaded jar.
      [INFO] Including com.fasterxml.woodstox:woodstox-core:jar:5.0.3 in the shaded jar.
      [INFO] Including org.apache.flink:force-shading:jar:1.12-SNAPSHOT in the shaded jar.
      [INFO] No artifact matching filter io.netty:netty
      [WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
      [WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
      [WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
      [INFO] Replacing original artifact with shaded artifact.
      [INFO] Replacing /home/maverick/flink/flink-filesystems/flink-fs-hadoop-shaded/target/flink-fs-hadoop-shaded-1.12-SNAPSHOT.jar with /home/maverick/flink/flink-filesystems/flink-fs-hadoop-shaded/target/flink-fs-hadoop-shaded-1.12-SNAPSHOT-shaded.jar
      [INFO] Dependency-reduced POM written at: /home/maverick/flink/flink-filesystems/flink-fs-hadoop-shaded/target/dependency-reduced-pom.xml
      

      Can we make flink compilation working with multiple maven threads ?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              maver1ck Maciej BryƄski
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: