Add build plugin with source version
authorDennis Schafroth <dennis@indexdata.com>
Mon, 9 Jan 2012 16:21:12 +0000 (17:21 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 16 Feb 2012 13:38:10 +0000 (14:38 +0100)
pom.xml

diff --git a/pom.xml b/pom.xml
index 3628e50..1f8b7c0 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                        <version>1.3.1</version>
                </dependency>
        </dependencies>
+       <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>             
+       </properties>
        <build>
+               <pluginManagement>
+                       <plugins>
+                               <plugin>
+                                       <groupId>org.apache.maven.plugins</groupId>
+                                       <artifactId>maven-compiler-plugin</artifactId>
+                                       <inherited>true</inherited>
+                                       <configuration>
+                                               <source>1.6</source>
+                                               <target>1.6</target>
+                                       </configuration>
+                               </plugin>
+                       </plugins>
+               </pluginManagement>        
                <sourceDirectory>src</sourceDirectory>
                <!-- <testSourceDirectory>src/test/java</testSourceDirectory> <testResources> 
                        <testResource> <directory>src/test/resources</directory> </testResource> 
                        </testResources> <resources> <resource> <directory>src/main/resource</directory> 
                        </resource> </resources> -->
        </build>
-
-
        <distributionManagement>
                <repository>
                        <uniqueVersion>false</uniqueVersion>