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>
Mon, 9 Jan 2012 16:21:12 +0000 (17:21 +0100)
pom.xml

diff --git a/pom.xml b/pom.xml
index 201244c..e1016c8 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>