You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2016/09/29 08:14:20 UTC
[jira] [Resolved] (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:all-tabpanel ]
Chesnay Schepler resolved FLINK-4707.
-------------------------------------
Resolution: Duplicate
This issue should already be fixed in master. If this is not the case for you feel free to re-open the issue. You can backport the fix in your branch by cherry-picking this commit: https://github.com/apache/flink/commit/e5d62da2c98ad9c6a5ca9c0782a7fea8a01d639a
> 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)