Update the pom to set the Java source level. This enables Eclipse
to correctly configure itself.
Also include plugins to publish the source and javadocs vai Maven.
Update .gitignore to exclude a local pom.
---
.gitignore | 1 +
pom.xml.in | 41 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+)
diff --git a/.gitignore b/.gitignore
index 28ddc6e..cbc1cf6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,4 +5,5 @@
.settings
target
README
+pom.xml
diff --git a/pom.xml.in b/pom.xml.in
index 4f49a3a..fd743ad 100644
--- a/pom.xml.in
+++ b/pom.xml.in
@@ -30,6 +30,47 @@
<version>[3.4.1,4.0.0]</version>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>package-source</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>package-javadocs</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
--
1.8.4.5