flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmetzger <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-2200] Add Flink with Scala 2.11 in Mave...
Date Tue, 25 Aug 2015 16:24:28 GMT
Github user rmetzger commented on the pull request:

    Is the Maven shade plugin bug the reason why this fails:
    ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4.1:shade
(shade-hadoop) on project flink-yarn-tests_2.11: Error creating shaded jar: 3 problems were
encountered while building the effective model for org.apache.flink:flink-yarn-tests_2.11:[unknown-version]
    [ERROR] [WARNING] 'artifactId' contains an expression but should be a constant. @ org.apache.flink:flink-yarn-tests${scala.suffix}:[unknown-version],
/home/robert/incubator-flink/flink-yarn-tests/pom.xml, line 36, column 14
    [ERROR] [WARNING] 'parent.relativePath' of POM org.apache.flink:flink-yarn-tests_2.11:[unknown-version]
(/home/robert/incubator-flink/flink-yarn-tests/target/dependency-reduced-pom.xml) points at
org.apache.flink:flink-yarn-tests${scala.suffix} instead of org.apache.flink:flink-parent${scala.suffix},
please verify your project structure @ line 3, column 11
    [ERROR] [FATAL] Non-resolvable parent POM for org.apache.flink:flink-yarn-tests_2.11:[unknown-version]:
Could not find artifact org.apache.flink:flink-parent${scala.suffix}:pom:0.10-SNAPSHOT in
apache.snapshots (http://repository.apache.org/snapshots) and 'parent.relativePath' points
at wrong local POM @ line 3, column 11
    [ERROR] for project org.apache.flink:flink-yarn-tests_2.11:[unknown-version] at /home/robert/incubator-flink/flink-yarn-tests/target/dependency-reduced-pom.xml
    > About the shading artifacts, your guess is right. Because Hadoop packages don't need
Scala dependencies, I didn't add suffix to them. But if we need the suffix for them to maintain
uniformity, we can add the suffix. How do you think?
    I think its fine to leave them as they are.
    > As you see, there are property expressions (${scala.suffix}) in artifactId. I think
that it can be a problem. How can I solve this?
    Yes, that is certainly a problem.
    Also, the artifact for flink-parent is not created properly in my local maven repository.
Its name is now `flink-parent${scala.suffix}/`.
    Maybe we have to look at other projects which are doing the same... if there are any projects
    Kafka for example is offering builds for different scala versions. Sadly, they are using
sbt for building their project.
    Spark doesn't deploy its _2.11 artifacts to maven central.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message