Issue #5: Windows builds do not seem to work
- Reactivate Windows build
- Configure enforcer plugin so m2e properly picks up the compiler level
diff --git a/pom.xml b/pom.xml
index 3dc06e5..6fb499b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,15 +32,39 @@
<version>23</version>
<relativePath />
</parent>
-
+
<name>Apache UIMA - Jenkins Shared Library</name>
-
+
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>${maven.compiler.target}</maven.compiler.source>
</properties>
-
+
<build>
<sourceDirectory>${project.basedir}/src</sourceDirectory>
<testSourceDirectory>${project.basedir}/test</testSourceDirectory>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-maven</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireJavaVersion>
+ <version>[${maven.compiler.target},)</version>
+ </requireJavaVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
</project>
\ No newline at end of file
diff --git a/vars/defaultPipeline.groovy b/vars/defaultPipeline.groovy
index 0c5255a..a423b55 100644
--- a/vars/defaultPipeline.groovy
+++ b/vars/defaultPipeline.groovy
@@ -63,9 +63,7 @@
axes {
axis {
name 'PLATFORM'
-// https://github.com/apache/uima-build-jenkins-shared-library/issues/5
-// values 'ubuntu', 'Windows'
- values 'ubuntu'
+ values 'ubuntu', 'Windows'
}
}