You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2016/09/29 08:57:20 UTC
[jira] [Commented] (FLINK-4707) Including
flink-connector-filesystem as dependency fails build
[ https://issues.apache.org/jira/browse/FLINK-4707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15532222#comment-15532222 ]
Stephan Ewen commented on FLINK-4707:
-------------------------------------
I think the root cause of the recently added mini-kerberos-cluster dependency. This should be in "test" scope, not in "compile" scope.
Fixing that should make the other changes unnecessary.
> Including flink-connector-filesystem as dependency fails build
> --------------------------------------------------------------
>
> Key: FLINK-4707
> URL: https://issues.apache.org/jira/browse/FLINK-4707
> Project: Flink
> Issue Type: Bug
> Components: filesystem-connector
> Affects Versions: 1.2.0
> Reporter: Melmoth
>
> When using flink-connector-filesystem I'm now required to include the maven-bundle-plugin in my Flink project:
> {code:xml}
> <build>
> <plugins>
> [...]
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <inherited>true</inherited>
> <extensions>true</extensions>
> </plugin>
> [...]
> </plugins>
> </build>
> {code}
> Otherwise my project won't build with error:
> [ERROR] Failed to execute goal on project flink: Could not resolve dependencies for project flink:flink:jar:1.0-SNAPSHOT: Failure to find org.apache.directory.jdbm:apacheds-jdbm1:bundle:2.0.0-M2 in http://MyProxyRepo was cached in the local repository, resolution will not be reattempted until the update interval of trisolute-release has elapsed or updates are forced -> [Help 1]
> The bug came with https://github.com/apache/flink/commit/25a622fd9c9255bd1a5b4b6ff7891730dce34ac1
> Related to https://issues.apache.org/jira/browse/FLINK-3929
> Another workound is excluding the M2 version and replacing it with M3, as M3 is not built using bundle:
> {code:xml}
> <dependency>
> <groupId>org.apache.flink</groupId>
> <artifactId>flink-connector-filesystem_2.10</artifactId>
> <version>1.2-SNAPSHOT</version>
> <exclusions>
> <exclusion>
> <groupId>org.apache.directory.jdbm</groupId>
> <artifactId>apacheds-jdbm1</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
>
> <dependency>
> <groupId>org.apache.directory.jdbm</groupId>
> <artifactId>apacheds-jdbm1</artifactId>
> <version>2.0.0-M3</version>
> <scope>compile</scope>
> </dependency>
> {code}
> I propose to replace the M2 with the M3 version in the flink-connector-filesystem pom.xml.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)