add Jenkinsfile fix pom to check snapshot dependencies

Signed-off-by: olivier lamy <olamy@apache.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ffac74e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+target/
+*.iml
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..e1ec02a
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,59 @@
+#!groovy
+
+pipeline {
+  agent any
+  options {
+    durabilityHint('PERFORMANCE_OPTIMIZED')
+    buildDiscarder(logRotator(numToKeepStr: '7', artifactNumToKeepStr: '2'))
+    timeout(time: 60, unit: 'MINUTES')
+  }
+  stages {
+    stage( "Parallel Stage" ) {
+      parallel {
+        stage( "Build / Test - JDK8" ) {
+          agent { node { label 'ubuntu' } }
+          options { timeout( time: 120, unit: 'MINUTES' ) }
+          steps {
+            mavenBuild( "JDK 1.8 (latest)", "clean site" )
+          }
+        }
+        stage( "Build / Test - JDK11" ) {
+          agent { node { label 'ubuntu' } }
+          options { timeout( time: 120, unit: 'MINUTES' ) }
+          steps {
+            mavenBuild( "JDK 11 (latest)", "clean site" )
+          }
+        }
+      }
+    }
+  }
+}
+
+
+
+/**
+ * To other developers, if you are using this method above, please use the following syntax.
+ *
+ * mavenBuild("<jdk>", "<profiles> <goals> <plugins> <properties>"
+ *
+ * @param jdk the jdk tool name (in jenkins) to use for this build
+ * @param cmdline the command line in "<profiles> <goals> <properties>"`format.
+ * @return the Jenkinsfile step representing a maven build
+ */
+def mavenBuild(jdk, cmdline) {
+  def mvnName = 'Maven 3.6.3'
+  //def localRepo = "${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER}" // ".repository" //
+  //def settingsName = 'oss-settings.xml'
+  def mavenOpts = '-Xms2g -Xmx2g -Djava.awt.headless=true'
+
+  withMaven(
+          maven: mvnName,
+          jdk: "$jdk",
+          publisherStrategy: 'EXPLICIT',
+          //globalMavenSettingsConfig: settingsName,
+          options: [junitPublisher(disabled: false)],
+          mavenOpts: mavenOpts) {
+    // Some common Maven command line + provided command line
+    sh "mvn -V -B -DfailIfNoTests=false -Dmaven.test.failure.ignore=true $cmdline"
+  }
+}
diff --git a/pom.xml b/pom.xml
index bc95784..a6ac3af 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,6 @@
     <groupId>org.apache.taglibs</groupId>
     <artifactId>taglibs-parent</artifactId>
     <version>4-SNAPSHOT</version>
-    <relativePath>../taglibs-parent/pom.xml</relativePath>
   </parent>
 
   <artifactId>site</artifactId>
@@ -93,4 +92,17 @@
     </plugins>
   </build>
 
+  <repositories>
+    <repository>
+      <id>apache.snapshots</id>
+      <url>https://repository.apache.org/content/repositories/snapshots/</url>
+      <releases>
+        <enabled>false</enabled>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+    </repository>
+  </repositories>
+
 </project>