Skip to content

Commit

Permalink
[FLINK-1194] Fix Java quickstart archetype POM file
Browse files Browse the repository at this point in the history
This closes apache#165
  • Loading branch information
StephanEwen committed Oct 28, 2014
1 parent 73ee385 commit 3f33278
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 24 deletions.
1 change: 1 addition & 0 deletions flink-java8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ under the License.
<versionRange>[3.1,)</versionRange>
<goals>
<goal>testCompile</goal>
<goal>compile</goal>
</goals>
</pluginExecutionFilter>
<action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ under the License.
</dependency>
</dependencies>

<!-- We use the maven-assembly plugin to create a fat jar that contains all dependencies
except flink and it's transitive dependencies. The resulting fat-jar can be executed
on a cluster. Change the value of Program-Class if your program entry point changes. -->
<build>
<plugins>

<!-- We use the maven-assembly plugin to create a fat jar that contains all dependencies
except flink and it's transitive dependencies. The resulting fat-jar can be executed
on a cluster. Change the value of Program-Class if your program entry point changes. -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4.1</version>
Expand All @@ -74,9 +75,9 @@ under the License.
<descriptor>src/assembly/flink-fat-jar.xml</descriptor>
</descriptors>
<archive>
<manifestEntries>
<Program-Class>${package}.Job</Program-Class>
</manifestEntries>
<manifest>
<mainClass>${package}.Job</mainClass>
</manifest>
</archive>
</configuration>
<executions>
Expand All @@ -89,36 +90,43 @@ under the License.
</execution>
</executions>
</plugin>

<!-- Configure the jar plugin to add the main class as a manifest entry -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Main-Class>${package}.Job</Main-Class>
</manifestEntries>
</archive>
</configuration>
</plugin>

<!-- We use the JDT compiler because it adds the generic types of methods (also lambdas) to the class files-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source> <!-- If you want to use Java 8, change this to "1.8" -->
<target>1.6</target> <!-- If you want to use Java 8, change this to "1.8" -->
<compilerId>jdt</compilerId>
</configuration>
<dependencies>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-jdt</artifactId>
<version>0.21.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>

<!-- If you want to use Java 8 Lambda Expressions uncomment the following lines -->
<!-- <pluginManagement>
<!-- Eclipse should not evaluate the compiler plugin, but use its own settings -->
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>jdt</compilerId>
</configuration>
<dependencies>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-jdt</artifactId>
<version>0.21.0</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
Expand Down Expand Up @@ -146,6 +154,7 @@ under the License.
<versionRange>[3.1,)</versionRange>
<goals>
<goal>testCompile</goal>
<goal>compile</goal>
</goals>
</pluginExecutionFilter>
<action>
Expand All @@ -158,6 +167,6 @@ under the License.
</plugin>
</plugins>
</pluginManagement>
-->

</build>
</project>

0 comments on commit 3f33278

Please sign in to comment.