You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by David Kim <da...@braintreepayments.com> on 2016/01/14 23:25:30 UTC

flink 1.0-SNAPSHOT scala 2.11 compilation error

Hi,

I have a scala project depending on flink scala_2.11 and am seeing a
compilation error when using sbt.

I'm using flink 1.0-SNAPSHOT and my build was working yesterday. I was
wondering if maybe a recent change to flink could be the cause?

Usually we see flink resolving the scala _2.11 counterparts for akka and
scalatest:

[info] Resolving com.typesafe.akka#akka-actor_2.11;2.3.7 ...
[info] Resolving com.typesafe#config;1.2.1 ...
[info] Resolving com.typesafe.akka#akka-remote_2.11;2.3.7 ...[info]
Resolving org.scalatest#scalatest_2.11;2.2.4 ...



but am seeing it pick up the _2.10 counterparts:

[info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.7 ...[info]
Resolving com.typesafe.akka#akka-actor_2.10;2.3.7 ...
[info] Resolving com.typesafe#config;1.2.1 ...[info] Resolving
org.scalatest#scalatest_2.10;2.2.2 ...



This ultimately gives us the following compilation error:

[error]    org.scalatest:scalatest _2.10, _2.11
java.lang.RuntimeException: Conflicting cross-version suffixes in:
org.scalatest:scalatest
	at scala.sys.package$.error(package.scala:27)
	at sbt.ConflictWarning$.processCrossVersioned(ConflictWarning.scala:46)
	at sbt.ConflictWarning$.apply(ConflictWarning.scala:32)



Maybe the latest 1.0-SNAPSHOT build erroneously built with scala 2.10 for
the 2.11 profile? Any guidance appreciated!

Thanks,
David

Re: flink 1.0-SNAPSHOT scala 2.11 compilation error

Posted by David Kim <da...@braintreepayments.com>.
Hi Robert,

Thanks for following up. The issue is resolved!

Cheers,
David

On Wed, Jan 20, 2016 at 3:08 AM, Robert Metzger <rm...@apache.org> wrote:

> Hey David,
>
> the issue should be resolved now. Please let me know if its still an issue
> for you.
>
> Regards,
> Robert
>
>
> On Fri, Jan 15, 2016 at 4:02 PM, David Kim <
> david.kim@braintreepayments.com> wrote:
>
>> Thanks Till! I'll keep an eye out on the JIRA issue. Many thanks for the
>> prompt reply.
>>
>> Cheers,
>> David
>>
>> On Fri, Jan 15, 2016 at 4:16 AM, Till Rohrmann <ti...@gmail.com>
>> wrote:
>>
>>> Hi David,
>>>
>>> this is definitely an error on our side which might be caused by the
>>> latest changes to the project structure (removing flink-staging directory).
>>> I’ve filed a JIRA issue https://issues.apache.org/jira/browse/FLINK-3241.
>>> It should be fixed soon.
>>>
>>> In the meantime it should work if you build yourself the Flink binaries
>>> from the sources. First check them out, then call tools/change-scala-version.sh
>>> 2.11 in the root directory and then mvn clean install -DskipTests
>>> -Dmaven.javadoc.skip=true. These binaries should depend on the right
>>> Scala version.
>>>
>>> Cheers,
>>> Till
>>> ​
>>>
>>> On Thu, Jan 14, 2016 at 11:25 PM, David Kim <
>>> david.kim@braintreepayments.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have a scala project depending on flink scala_2.11 and am seeing a
>>>> compilation error when using sbt.
>>>>
>>>> I'm using flink 1.0-SNAPSHOT and my build was working yesterday. I was
>>>> wondering if maybe a recent change to flink could be the cause?
>>>>
>>>> Usually we see flink resolving the scala _2.11 counterparts for akka
>>>> and scalatest:
>>>>
>>>> [info] Resolving com.typesafe.akka#akka-actor_2.11;2.3.7 ...
>>>> [info] Resolving com.typesafe#config;1.2.1 ...
>>>> [info] Resolving com.typesafe.akka#akka-remote_2.11;2.3.7 ...[info] Resolving org.scalatest#scalatest_2.11;2.2.4 ...
>>>>
>>>>
>>>>
>>>> but am seeing it pick up the _2.10 counterparts:
>>>>
>>>> [info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.7 ...[info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.7 ...
>>>> [info] Resolving com.typesafe#config;1.2.1 ...[info] Resolving org.scalatest#scalatest_2.10;2.2.2 ...
>>>>
>>>>
>>>>
>>>> This ultimately gives us the following compilation error:
>>>>
>>>> [error]    org.scalatest:scalatest _2.10, _2.11
>>>> java.lang.RuntimeException: Conflicting cross-version suffixes in: org.scalatest:scalatest
>>>> 	at scala.sys.package$.error(package.scala:27)
>>>> 	at sbt.ConflictWarning$.processCrossVersioned(ConflictWarning.scala:46)
>>>> 	at sbt.ConflictWarning$.apply(ConflictWarning.scala:32)
>>>>
>>>>
>>>>
>>>> Maybe the latest 1.0-SNAPSHOT build erroneously built with scala 2.10
>>>> for the 2.11 profile? Any guidance appreciated!
>>>>
>>>> Thanks,
>>>> David
>>>>
>>>>
>>>
>>
>>
>> --
>> Note: this information is confidential. It is prohibited to share, post
>> online or otherwise publicize without Braintree's prior written consent.
>>
>
>


-- 
Note: this information is confidential. It is prohibited to share, post
online or otherwise publicize without Braintree's prior written consent.

Re: flink 1.0-SNAPSHOT scala 2.11 compilation error

Posted by Robert Metzger <rm...@apache.org>.
Hey David,

the issue should be resolved now. Please let me know if its still an issue
for you.

Regards,
Robert


On Fri, Jan 15, 2016 at 4:02 PM, David Kim <da...@braintreepayments.com>
wrote:

> Thanks Till! I'll keep an eye out on the JIRA issue. Many thanks for the
> prompt reply.
>
> Cheers,
> David
>
> On Fri, Jan 15, 2016 at 4:16 AM, Till Rohrmann <ti...@gmail.com>
> wrote:
>
>> Hi David,
>>
>> this is definitely an error on our side which might be caused by the
>> latest changes to the project structure (removing flink-staging directory).
>> I’ve filed a JIRA issue https://issues.apache.org/jira/browse/FLINK-3241.
>> It should be fixed soon.
>>
>> In the meantime it should work if you build yourself the Flink binaries
>> from the sources. First check them out, then call tools/change-scala-version.sh
>> 2.11 in the root directory and then mvn clean install -DskipTests
>> -Dmaven.javadoc.skip=true. These binaries should depend on the right
>> Scala version.
>>
>> Cheers,
>> Till
>> ​
>>
>> On Thu, Jan 14, 2016 at 11:25 PM, David Kim <
>> david.kim@braintreepayments.com> wrote:
>>
>>> Hi,
>>>
>>> I have a scala project depending on flink scala_2.11 and am seeing a
>>> compilation error when using sbt.
>>>
>>> I'm using flink 1.0-SNAPSHOT and my build was working yesterday. I was
>>> wondering if maybe a recent change to flink could be the cause?
>>>
>>> Usually we see flink resolving the scala _2.11 counterparts for akka and
>>> scalatest:
>>>
>>> [info] Resolving com.typesafe.akka#akka-actor_2.11;2.3.7 ...
>>> [info] Resolving com.typesafe#config;1.2.1 ...
>>> [info] Resolving com.typesafe.akka#akka-remote_2.11;2.3.7 ...[info] Resolving org.scalatest#scalatest_2.11;2.2.4 ...
>>>
>>>
>>>
>>> but am seeing it pick up the _2.10 counterparts:
>>>
>>> [info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.7 ...[info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.7 ...
>>> [info] Resolving com.typesafe#config;1.2.1 ...[info] Resolving org.scalatest#scalatest_2.10;2.2.2 ...
>>>
>>>
>>>
>>> This ultimately gives us the following compilation error:
>>>
>>> [error]    org.scalatest:scalatest _2.10, _2.11
>>> java.lang.RuntimeException: Conflicting cross-version suffixes in: org.scalatest:scalatest
>>> 	at scala.sys.package$.error(package.scala:27)
>>> 	at sbt.ConflictWarning$.processCrossVersioned(ConflictWarning.scala:46)
>>> 	at sbt.ConflictWarning$.apply(ConflictWarning.scala:32)
>>>
>>>
>>>
>>> Maybe the latest 1.0-SNAPSHOT build erroneously built with scala 2.10
>>> for the 2.11 profile? Any guidance appreciated!
>>>
>>> Thanks,
>>> David
>>>
>>>
>>
>
>
> --
> Note: this information is confidential. It is prohibited to share, post
> online or otherwise publicize without Braintree's prior written consent.
>

Re: flink 1.0-SNAPSHOT scala 2.11 compilation error

Posted by David Kim <da...@braintreepayments.com>.
Thanks Till! I'll keep an eye out on the JIRA issue. Many thanks for the
prompt reply.

Cheers,
David

On Fri, Jan 15, 2016 at 4:16 AM, Till Rohrmann <ti...@gmail.com>
wrote:

> Hi David,
>
> this is definitely an error on our side which might be caused by the
> latest changes to the project structure (removing flink-staging directory).
> I’ve filed a JIRA issue https://issues.apache.org/jira/browse/FLINK-3241.
> It should be fixed soon.
>
> In the meantime it should work if you build yourself the Flink binaries
> from the sources. First check them out, then call tools/change-scala-version.sh
> 2.11 in the root directory and then mvn clean install -DskipTests
> -Dmaven.javadoc.skip=true. These binaries should depend on the right
> Scala version.
>
> Cheers,
> Till
> ​
>
> On Thu, Jan 14, 2016 at 11:25 PM, David Kim <
> david.kim@braintreepayments.com> wrote:
>
>> Hi,
>>
>> I have a scala project depending on flink scala_2.11 and am seeing a
>> compilation error when using sbt.
>>
>> I'm using flink 1.0-SNAPSHOT and my build was working yesterday. I was
>> wondering if maybe a recent change to flink could be the cause?
>>
>> Usually we see flink resolving the scala _2.11 counterparts for akka and
>> scalatest:
>>
>> [info] Resolving com.typesafe.akka#akka-actor_2.11;2.3.7 ...
>> [info] Resolving com.typesafe#config;1.2.1 ...
>> [info] Resolving com.typesafe.akka#akka-remote_2.11;2.3.7 ...[info] Resolving org.scalatest#scalatest_2.11;2.2.4 ...
>>
>>
>>
>> but am seeing it pick up the _2.10 counterparts:
>>
>> [info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.7 ...[info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.7 ...
>> [info] Resolving com.typesafe#config;1.2.1 ...[info] Resolving org.scalatest#scalatest_2.10;2.2.2 ...
>>
>>
>>
>> This ultimately gives us the following compilation error:
>>
>> [error]    org.scalatest:scalatest _2.10, _2.11
>> java.lang.RuntimeException: Conflicting cross-version suffixes in: org.scalatest:scalatest
>> 	at scala.sys.package$.error(package.scala:27)
>> 	at sbt.ConflictWarning$.processCrossVersioned(ConflictWarning.scala:46)
>> 	at sbt.ConflictWarning$.apply(ConflictWarning.scala:32)
>>
>>
>>
>> Maybe the latest 1.0-SNAPSHOT build erroneously built with scala 2.10 for
>> the 2.11 profile? Any guidance appreciated!
>>
>> Thanks,
>> David
>>
>>
>


-- 
Note: this information is confidential. It is prohibited to share, post
online or otherwise publicize without Braintree's prior written consent.

Re: flink 1.0-SNAPSHOT scala 2.11 compilation error

Posted by Till Rohrmann <ti...@gmail.com>.
Hi David,

this is definitely an error on our side which might be caused by the latest
changes to the project structure (removing flink-staging directory). I’ve
filed a JIRA issue https://issues.apache.org/jira/browse/FLINK-3241. It
should be fixed soon.

In the meantime it should work if you build yourself the Flink binaries
from the sources. First check them out, then call tools/change-scala-version.sh
2.11 in the root directory and then mvn clean install -DskipTests
-Dmaven.javadoc.skip=true. These binaries should depend on the right Scala
version.

Cheers,
Till
​

On Thu, Jan 14, 2016 at 11:25 PM, David Kim <david.kim@braintreepayments.com
> wrote:

> Hi,
>
> I have a scala project depending on flink scala_2.11 and am seeing a
> compilation error when using sbt.
>
> I'm using flink 1.0-SNAPSHOT and my build was working yesterday. I was
> wondering if maybe a recent change to flink could be the cause?
>
> Usually we see flink resolving the scala _2.11 counterparts for akka and
> scalatest:
>
> [info] Resolving com.typesafe.akka#akka-actor_2.11;2.3.7 ...
> [info] Resolving com.typesafe#config;1.2.1 ...
> [info] Resolving com.typesafe.akka#akka-remote_2.11;2.3.7 ...[info] Resolving org.scalatest#scalatest_2.11;2.2.4 ...
>
>
>
> but am seeing it pick up the _2.10 counterparts:
>
> [info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.7 ...[info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.7 ...
> [info] Resolving com.typesafe#config;1.2.1 ...[info] Resolving org.scalatest#scalatest_2.10;2.2.2 ...
>
>
>
> This ultimately gives us the following compilation error:
>
> [error]    org.scalatest:scalatest _2.10, _2.11
> java.lang.RuntimeException: Conflicting cross-version suffixes in: org.scalatest:scalatest
> 	at scala.sys.package$.error(package.scala:27)
> 	at sbt.ConflictWarning$.processCrossVersioned(ConflictWarning.scala:46)
> 	at sbt.ConflictWarning$.apply(ConflictWarning.scala:32)
>
>
>
> Maybe the latest 1.0-SNAPSHOT build erroneously built with scala 2.10 for
> the 2.11 profile? Any guidance appreciated!
>
> Thanks,
> David
>
>