Heya,

Build fails on M1 Macs - we should note this in our readme:

Clean Mac:
brew install maven scala groovy
(Since no official JDK for M1 is released)

scala --version                                                
Scala code runner version 2.13.6 -- Copyright 2002-2021, LAMP/EPFL and Lightbend, Inc.

java --version                                                    
openjdk 11.0.12 2021-07-20 LTS
OpenJDK Runtime Environment Zulu11.50+19-CA (build 11.0.12+7-LTS)
OpenJDK 64-Bit Server VM Zulu11.50+19-CA (build 11.0.12+7-LTS, mixed mode)

groovy --version                                            
Groovy Version: 3.0.9 JVM: 17 Vendor: Homebrew OS: Mac OS X

mvn clean install -Pscala-13

[ERROR] Failed to execute goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute (prerequisite-check) on project wayang: Execution prerequisite-check of goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute failed: Not all conditions met, see log for details. -> [Help 1]
[ERROR]

Log attached - I’m not sure why the build fails on M1, Intel Mac works. So I bet on something in the deps which is not ARM ready yet. If so, we need to add this to our docs.

Cheers,
 —Alex 

Attachment: wy.log
Description: Binary data



On 28. Sep 2021, at 22:12, Christofer Dutz <[email protected]> wrote:

Hi Gabor,

the maven build would have succeeded, if wayang had been released. Right now there's no 0.6.0 available in maven-central.

You could have added a repositories reference to https://repository.apache.org/content/repositories/orgapachewayang-1002
Then it problably would have worked.

Will do my validation hopefully tomorrow.


Chris

-----Ursprüngliche Nachricht-----
Von: Gábor E. Gévay <[email protected]>
Gesendet: Dienstag, 28. September 2021 20:05
An: [email protected]
Betreff: Re: [DISCUSS] Apache Wayang 0.6.0 RC1

Hello,

Successfully compiled with `mvn clean install` with both -Pscala-11 on Java 8 and -Pscala-12 on Java 11. Verified the key and verified the sha checksum.

I also tried creating an empty Maven project, adding Wayang as a dependency as described on our documentation page (https://wayang.apache.org/documentation/ ), and it worked after resolving a minor issue:

The documentation page lists a number of dependencies that the user should add, and one of these is `wayang-api`, but this was not working for me. So this is what I had in my pom:

<dependency>
 <groupId>org.apache.wayang</groupId>
 <artifactId>wayang-api</artifactId>
 <version>0.6.0</version>
</dependency>

And Maven gave the following error:

[ERROR] Failed to execute goal on project wayang-proba: Could not resolve dependencies for project
org.example:wayang-proba:jar:1.0-SNAPSHOT: Could not find artifact
org.apache.wayang:wayang-api:jar:0.6.0 in central
(https://repo.maven.apache.org/maven2) -> [Help 1]

Changing `wayang-api` to `wayang-api-scala-java_2.11` works. Maybe `wayang-api` was left there from an older version? In that case, we could just update the website.

Another minor thing about the documentation page is that it still says “If you need to rebuild Apache Wayang, e.g., to use a different Scala version, you can simply do so via Maven:
Adapt the version variables (e.g., spark.version) in the main pom.xml file. ...”
But this recently changed to the Maven profile stuff.

But these would be just website changes, so I guess it doesn’t affect the release itself. So I gave +1 in the other thread.

Best,
Gábor

Reply via email to