Re: Failing to build Flink 1.9 using Scala 2.12
Hi David, Thanks for this useful information. This unblocked and now locally build is successful which was not the case earlier. I have a few more questions though. - Are there any requirements for the maven and / or plugin version ? - Another error says *Failure to find org.apache.kafka:kafka_2.12:jar. * *[INFO] [INFO] flink-connector-kafka-0.9 .. FAILURE [ 0.014 s]* Thanks, Milind On Sun, Dec 25, 2022 at 1:24 AM David Anderson wrote: > Flink only officially supports Scala 2.12 up to 2.12.7 -- you are running > into the binary compatibility check, intended to keep you from unknowingly > running into problems. You can disable japicmp, and everything will > hopefully work: > > mvn clean install -DskipTests -Djapicmp.skip -Dscala-2.12 > -Dscala.version=2.12.16 > > See https://issues.apache.org/jira/browse/FLINK-12461 for more info. > > Regards, > David > > On Fri, Dec 23, 2022 at 6:55 AM Milind Vaidya wrote: > >> Hi >> >> First of all, I do understand that I am using a very old version. But as >> of now the team can not help it. We need to move to Scala 2.12 first and >> then we will move forward towards the latest version of Flink. >> >> I have added following things to main pom.xml >> >> 2.11.12 >> 2.11 >> >> Under Scala-2.11 >> >> removed following lines >> >>!scala-2.12 >> >> >> Added >>false >> >> >> Under Scala-2.12 >> >> Added >> >> false >> >> Command : >> >> mvn clean install -DskipTests -Dscala-2.12 -Dscala.version=2.12.16 >> >> Error : >> >> Failed to execute goal >> com.github.siom79.japicmp:japicmp-maven-plugin:0.11.0:cmp (default) on >> project flink-metrics-core: Execution default of goal >> com.github.siom79.japicmp:japicmp-maven-plugin:0.11.0:cmp failed: A >> required class was missing while executing >> com.github.siom79.japicmp:japicmp-maven-plugin:0.11.0:cmp: >> javax/xml/bind/JAXBException >> >> >> Is there any set of instructions to follow while compiling a flink >> version for Scala 2.12 ? >> >> >> >
Re: Failing to build Flink 1.9 using Scala 2.12
Flink only officially supports Scala 2.12 up to 2.12.7 -- you are running into the binary compatibility check, intended to keep you from unknowingly running into problems. You can disable japicmp, and everything will hopefully work: mvn clean install -DskipTests -Djapicmp.skip -Dscala-2.12 -Dscala.version=2.12.16 See https://issues.apache.org/jira/browse/FLINK-12461 for more info. Regards, David On Fri, Dec 23, 2022 at 6:55 AM Milind Vaidya wrote: > Hi > > First of all, I do understand that I am using a very old version. But as > of now the team can not help it. We need to move to Scala 2.12 first and > then we will move forward towards the latest version of Flink. > > I have added following things to main pom.xml > > 2.11.12 > 2.11 > > Under Scala-2.11 > > removed following lines > >!scala-2.12 > > > Added >false > > > Under Scala-2.12 > > Added > > false > > Command : > > mvn clean install -DskipTests -Dscala-2.12 -Dscala.version=2.12.16 > > Error : > > Failed to execute goal > com.github.siom79.japicmp:japicmp-maven-plugin:0.11.0:cmp (default) on > project flink-metrics-core: Execution default of goal > com.github.siom79.japicmp:japicmp-maven-plugin:0.11.0:cmp failed: A > required class was missing while executing > com.github.siom79.japicmp:japicmp-maven-plugin:0.11.0:cmp: > javax/xml/bind/JAXBException > > > Is there any set of instructions to follow while compiling a flink version > for Scala 2.12 ? > > >
Failing to build Flink 1.9 using Scala 2.12
Hi First of all, I do understand that I am using a very old version. But as of now the team can not help it. We need to move to Scala 2.12 first and then we will move forward towards the latest version of Flink. I have added following things to main pom.xml 2.11.12 2.11 Under Scala-2.11 removed following lines !scala-2.12 Added false Under Scala-2.12 Added false Command : mvn clean install -DskipTests -Dscala-2.12 -Dscala.version=2.12.16 Error : Failed to execute goal com.github.siom79.japicmp:japicmp-maven-plugin:0.11.0:cmp (default) on project flink-metrics-core: Execution default of goal com.github.siom79.japicmp:japicmp-maven-plugin:0.11.0:cmp failed: A required class was missing while executing com.github.siom79.japicmp:japicmp-maven-plugin:0.11.0:cmp: javax/xml/bind/JAXBException Is there any set of instructions to follow while compiling a flink version for Scala 2.12 ?