[
https://issues.apache.org/jira/browse/FLINK-2200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14711563#comment-14711563
]
ASF GitHub Bot commented on FLINK-2200:
---------------------------------------
Github user rmetzger commented on the pull request:
https://github.com/apache/flink/pull/885#issuecomment-134658771
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.
> Flink API with Scala 2.11 - Maven Repository
> --------------------------------------------
>
> Key: FLINK-2200
> URL: https://issues.apache.org/jira/browse/FLINK-2200
> Project: Flink
> Issue Type: Wish
> Components: Build System, Scala API
> Reporter: Philipp Götze
> Assignee: Chiwan Park
> Priority: Trivial
> Labels: maven
>
> It would be nice if you could upload a pre-built version of the Flink API
> with Scala 2.11 to the maven repository.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)