Github user zentol commented on a diff in the pull request: https://github.com/apache/flink/pull/5569#discussion_r170415181 --- Diff: flink-quickstart/flink-quickstart-java/src/main/resources/archetype-resources/pom.xml --- @@ -50,181 +51,113 @@ under the License. </repository> </repositories> - <!-- - - Execute "mvn clean package -Pbuild-jar" - to build a jar file out of this project! - - How to use the Flink Quickstart pom: - - a) Adding new dependencies: - You can add dependencies to the list below. - - b) Build a jar for running on the cluster: - - "mvn clean package -Pbuild-jar" - This will create a fat-jar which contains all dependencies necessary for running the created jar in a cluster. - --> - <dependencies> <!-- Apache Flink dependencies --> - <dependency> - <groupId>org.apache.flink</groupId> - <artifactId>flink-core</artifactId> - <version>${flink.version}</version> - </dependency> + <!-- These dependencies are provided, because they should not be packaged into the JAR file. --> <dependency> <groupId>org.apache.flink</groupId> <artifactId>flink-java</artifactId> <version>${flink.version}</version> + <scope>provided</scope> </dependency> <dependency> - <!-- This dependency is required to actually execute jobs. It is currently pulled in by - flink-streaming-java, but we explicitly depend on it to safeguard against future changes. --> <groupId>org.apache.flink</groupId> - <artifactId>flink-clients_${scala.binary.version}</artifactId> + <artifactId>flink-streaming-java_${scala.binary.version}</artifactId> <version>${flink.version}</version> + <scope>provided</scope> </dependency> + + <!-- Add connector dependencies here. They must be in the default scope (compile). --> + + <!-- Example: + <dependency> <groupId>org.apache.flink</groupId> - <artifactId>flink-streaming-java_${scala.binary.version}</artifactId> + <artifactId>flink-connector-kafka-0.10_${scala.binary.version}</artifactId> --- End diff -- no i didn't activate it. I only un-commented the dependency and tried to build it. It's a good question why this happened; after all the quickstart projects do not inherit from Flink.
---