Review Board 1.7.22


FLUME-2013 Parametrize java source and target version in the main pom file

Review Request #10694 - Created April 22, 2013 and submitted

Jarek Cecho
FLUME-2013
Reviewers
Flume
flume-git
I've created properties sourceJavaVersion and targetJavaVersion that can user override on the command line.
I've tested target 1.6 and 1.7.

Diff revision 1 (Latest)

  1. pom.xml: Loading...
pom.xml
Revision 36f989d007ac8c77682a33805597743fc9d64a52 New Change
[20] 33 lines
[+20]
34

    
   
34

   
35
  <properties>
35
  <properties>
36
    <!-- Set default encoding to UTF-8 to remove maven complaints -->
36
    <!-- Set default encoding to UTF-8 to remove maven complaints -->
37
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38

    
   
38

   

    
   
39
    <!-- Java compiler configuration -->

    
   
40
    <sourceJavaVersion>1.6</sourceJavaVersion>

    
   
41
    <targetJavaVersion>1.6</targetJavaVersion>

    
   
42

   
39
    <!-- defaults for flaky test and focused test exclusions -->
43
    <!-- defaults for flaky test and focused test exclusions -->
40
    <test.exclude.pattern>$</test.exclude.pattern> <!-- junk pattern -->
44
    <test.exclude.pattern>$</test.exclude.pattern> <!-- junk pattern -->
41
    <test.include.pattern>**/Test*.java</test.include.pattern>
45
    <test.include.pattern>**/Test*.java</test.include.pattern>
42
    <siteUrlDeployment>file://people.apache.org/www/incubator.apache.org/flume</siteUrlDeployment>
46
    <siteUrlDeployment>file://people.apache.org/www/incubator.apache.org/flume</siteUrlDeployment>
43
    <stagingDirectory>${project.basedir}/target/docs</stagingDirectory>
47
    <stagingDirectory>${project.basedir}/target/docs</stagingDirectory>
[+20] [20] 440 lines
[+20]
484
        <plugin>
488
        <plugin>
485
          <groupId>org.apache.maven.plugins</groupId>
489
          <groupId>org.apache.maven.plugins</groupId>
486
          <artifactId>maven-compiler-plugin</artifactId>
490
          <artifactId>maven-compiler-plugin</artifactId>
487
          <version>2.3.2</version>
491
          <version>2.3.2</version>
488
          <configuration>
492
          <configuration>
489
            <source>1.6</source>
493
            <source>${sourceJavaVersion}</source>
490
            <target>1.6</target>
494
            <target>${targetJavaVersion}</target>
491
          </configuration>
495
          </configuration>
492
        </plugin>
496
        </plugin>
493

    
   
497

   
494
        <plugin>
498
        <plugin>
495
          <groupId>org.apache.maven.plugins</groupId>
499
          <groupId>org.apache.maven.plugins</groupId>
[+20] [20] 560 lines
  1. pom.xml: Loading...