[
https://issues.apache.org/jira/browse/FLINK-4813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15870240#comment-15870240
]
ASF GitHub Bot commented on FLINK-4813:
---------------------------------------
Github user StephanEwen commented on a diff in the pull request:
https://github.com/apache/flink/pull/3322#discussion_r101565321
--- Diff:
flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/test/util/SecureTestEnvironment.java
---
@@ -37,9 +37,39 @@
/**
* Helper {@link SecureTestEnvironment} to handle MiniKDC lifecycle.
* This class can be used to start/stop MiniKDC and create secure
configurations for MiniDFSCluster
- * and MiniYarn
+ * and MiniYarn.
+ *
+ * If you use this class in your project, please make sure to add a
dependency to
+ * <tt>hadoop-minikdc</tt>, e.g. in your <tt>pom.xml</tt>:
+ * <pre>
+ * ...
+ * <dependencies>
--- End diff --
If you do the example code as follows, you can use the `<` and make the
sample more readable.
```
<pre>{@code
<dependency>
<groupId>org.apache.hadoop</groupId>
...
</dependency>
}</pre>
```
> Having flink-test-utils as a dependency outside Flink fails the build
> ---------------------------------------------------------------------
>
> Key: FLINK-4813
> URL: https://issues.apache.org/jira/browse/FLINK-4813
> Project: Flink
> Issue Type: Bug
> Components: Build System
> Affects Versions: 1.2.0
> Reporter: Robert Metzger
> Assignee: Nico Kruber
>
> The {{flink-test-utils}} depend on {{hadoop-minikdc}}, which has a
> dependency, which is only resolvable, if the {{maven-bundle-plugin}} is
> loaded.
> This is the error message
> {code}
> [ERROR] Failed to execute goal on project quickstart-1.2-tests: Could not
> resolve dependencies for project
> com.dataartisans:quickstart-1.2-tests:jar:1.0-SNAPSHOT: Failure to find
> org.apache.directory.jdbm:apacheds-jdbm1:bundle:2.0.0-M2 in
> https://repo.maven.apache.org/maven2 was cached in the local repository,
> resolution will not be reattempted until the update interval of central has
> elapsed or updates are forced -> [Help 1]
> {code}
> {{flink-parent}} loads that plugin, so all "internal" dependencies to the
> test utils can resolve the plugin.
> Right now, users have to use the maven bundle plugin to use our test utils
> externally.
> By making the hadoop minikdc dependency optional, we can probably resolve the
> issues. Then, only users who want to use the security-related tools in the
> test utils need to manually add the hadoop minikdc dependency + the plugin.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)