From 203c11f2d169838ee66f195147d79af32332848b Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Sat, 25 May 2024 19:19:51 +0200
Subject: [PATCH 01/13] Update pom.xml
---
pom.xml | 231 +++++++++++++++++++++-----------------------------------
1 file changed, 85 insertions(+), 146 deletions(-)
diff --git a/pom.xml b/pom.xml
index d20ddec2e..36b78b668 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,4 +1,3 @@
-
4.0.0
@@ -21,13 +20,10 @@
Vaadin Pre-releases
https://maven.vaadin.com/vaadin-prereleases
-
-
+
vaadin-addons
http://maven.vaadin.com/vaadin-addons
-
vaadin-snapshots
http://oss.sonatype.org/content/repositories/vaadin-snapshots/
@@ -53,20 +49,12 @@
-
com.vaadin
vaadin-compatibility-server
${vaadin.version}
-
- com.sun
- tools
- 1.6.0
- system
- ${env.JAVA_HOME}/lib/tools.jar
-
com.vaadin
vaadin-compatibility-shared
@@ -88,89 +76,72 @@
3.0.1
compile
-
commons-beanutils
commons-beanutils
1.9.2
jar
-
-
-
- log4j
- log4j
- 1.2.9
-
-
- org.slf4j
- slf4j-api
- 1.7.7
-
-
- org.slf4j
- slf4j-simple
- 1.7.7
-
-
- org.slf4j
- slf4j-log4j12
- 1.7.7
-
-
-
-
- junit
- junit
- 4.7
- test
-
-
-
-
-
- commons-httpclient
- commons-httpclient
- 3.1
-
-
-
- org.apache.commons
- commons-lang3
- 3.1
-
-
-
-
- org.json
- json
- 20140107
-
-
- org.codehaus.jackson
- jackson-jaxrs
- 1.9.4
-
-
-
-
- com.sun.xml.security
- xml-security-impl
- 1.0
-
-
-
-
+
+ log4j
+ log4j
+ 1.2.9
+
+
+ org.slf4j
+ slf4j-api
+ 1.7.7
+
+
+ org.slf4j
+ slf4j-simple
+ 1.7.7
+
+
+ org.slf4j
+ slf4j-log4j12
+ 1.7.7
+
+
+ junit
+ junit
+ 4.7
+ test
+
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
+
+ org.apache.commons
+ commons-lang3
+ 3.1
+
+
+ org.json
+ json
+ 20140107
+
+
+ org.codehaus.jackson
+ jackson-jaxrs
+ 1.9.4
+
+
+ com.sun.xml.security
+ xml-security-impl
+ 1.0
+
+
org.apache.maven.plugins
- maven-compiler-plugin
- 3.2
-
+ maven-compiler-plugin
+ 3.2
+
1.8
1.8
@@ -180,69 +151,48 @@
jetty-maven-plugin
9.2.3.v20140905
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 2.19.1
-
- methods
- 10
-
- **/Test*.java
- **/Test.java
- **/TestCase.java
-
-
- **/*Abstract*Test.java
-
-
-
-
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.19.1
+
+ methods
+ 10
+
+ **/Test*.java
+ **/Test.java
+ **/TestCase.java
+
+
+ **/*Abstract*Test.java
+
+
+
- addressbook
+ addressbook
-
-
+
-
-
- org.apache.maven.plugins
- maven-surefire-report-plugin
- 2.19.1
-
-
-
-
-
+
+
+ org.apache.maven.plugins
+ maven-surefire-report-plugin
+ 2.19.1
+
+
+
+
+
development
true
-
metrics
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
org.apache.maven.plugins
maven-pmd-plugin
@@ -251,15 +201,11 @@
1.8
true
xml
-
20
-
true
2
-
-
findbugs-maven-plugin
2.4.0
@@ -317,9 +263,6 @@
org.apache.maven.plugins
maven-checkstyle-plugin
3.0.1
-
-
-
org.apache.maven.plugins
@@ -332,7 +275,6 @@
/pmd-rules.xml
-
20
true
@@ -446,10 +388,8 @@
/pmd-rules.xml
-
20
true
-
@@ -498,5 +438,4 @@
-
From eec0a4d8108d183c84a443608ac82eecd6c06bd0 Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Sun, 26 May 2024 10:41:31 +0200
Subject: [PATCH 02/13] Added Jenkinsfile
---
Jenkinsfile | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 Jenkinsfile
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 000000000..c26bb364d
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,36 @@
+pipeline {
+ agent any
+ stages {
+ stage('version') {
+ parallel {
+ stage('version') {
+ steps {
+ sh '''mvn --version
+git --version
+java -version'''
+ }
+ }
+
+ stage('check for pom') {
+ steps {
+ fileExists 'pom.xml'
+ }
+ }
+
+ }
+ }
+
+ stage('build') {
+ steps {
+ sh 'mvn compile test package'
+ }
+ }
+
+ stage('post build steep') {
+ steps {
+ writeFile(file: 'status.txt', text: 'its works')
+ }
+ }
+
+ }
+}
\ No newline at end of file
From 8863f02cc7d03419a330463806bd96eb51bd5729 Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Sun, 26 May 2024 17:18:16 +0200
Subject: [PATCH 03/13] Update pom.xml
---
pom.xml | 106 ++++++++++++--------------------------------------------
1 file changed, 22 insertions(+), 84 deletions(-)
diff --git a/pom.xml b/pom.xml
index 36b78b668..5076c2d2d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,6 +12,7 @@
false
8.0.0.alpha2
${vaadin.version}
+ 2.7
@@ -50,89 +51,7 @@
-
- com.vaadin
- vaadin-compatibility-server
- ${vaadin.version}
-
-
- com.vaadin
- vaadin-compatibility-shared
- ${vaadin.version}
-
-
- com.vaadin
- vaadin-compatibility-client-compiled
- ${vaadin.version}
-
-
- com.vaadin
- vaadin-themes
- ${vaadin.version}
-
-
- javax.servlet
- javax.servlet-api
- 3.0.1
- compile
-
-
- commons-beanutils
- commons-beanutils
- 1.9.2
- jar
-
-
- log4j
- log4j
- 1.2.9
-
-
- org.slf4j
- slf4j-api
- 1.7.7
-
-
- org.slf4j
- slf4j-simple
- 1.7.7
-
-
- org.slf4j
- slf4j-log4j12
- 1.7.7
-
-
- junit
- junit
- 4.7
- test
-
-
- commons-httpclient
- commons-httpclient
- 3.1
-
-
- org.apache.commons
- commons-lang3
- 3.1
-
-
- org.json
- json
- 20140107
-
-
- org.codehaus.jackson
- jackson-jaxrs
- 1.9.4
-
-
- com.sun.xml.security
- xml-security-impl
- 1.0
-
+
@@ -168,6 +87,24 @@
+
+ org.codehaus.mojo
+ cobertura-maven-plugin
+ ${cobertura.version}
+
+
+ html
+ xml
+
+
+
+
+
+ cobertura
+
+
+
+
addressbook
@@ -273,7 +210,7 @@
true
xml
- /pmd-rules.xml
+ /pmd-rules.xml
20
true
@@ -439,3 +376,4 @@
+
From d1ac880c1681fd156bdce94c63a8a9f5572c38dd Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Sun, 26 May 2024 17:22:43 +0200
Subject: [PATCH 04/13] Update pom.xml
---
pom.xml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 5076c2d2d..421086325 100644
--- a/pom.xml
+++ b/pom.xml
@@ -210,7 +210,7 @@
true
xml
- /pmd-rules.xml
+ /pmd-rules.xml
20
true
@@ -376,4 +376,3 @@
-
From e18642502e170b97458eceb660b58d8731ff814e Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Sun, 26 May 2024 17:33:11 +0200
Subject: [PATCH 05/13] Update pom.xml
---
pom.xml | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 83 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 421086325..047e96bbd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
false
8.0.0.alpha2
${vaadin.version}
- 2.7
+ 2.7
@@ -51,7 +51,88 @@
-
+
+ com.vaadin
+ vaadin-compatibility-server
+ ${vaadin.version}
+
+
+ com.vaadin
+ vaadin-compatibility-shared
+ ${vaadin.version}
+
+
+ com.vaadin
+ vaadin-compatibility-client-compiled
+ ${vaadin.version}
+
+
+ com.vaadin
+ vaadin-themes
+ ${vaadin.version}
+
+
+ javax.servlet
+ javax.servlet-api
+ 3.0.1
+ provided
+
+
+ commons-beanutils
+ commons-beanutils
+ 1.9.2
+
+
+ log4j
+ log4j
+ 1.2.9
+
+
+ org.slf4j
+ slf4j-api
+ 1.7.7
+
+
+ org.slf4j
+ slf4j-simple
+ 1.7.7
+
+
+ org.slf4j
+ slf4j-log4j12
+ 1.7.7
+
+
+ junit
+ junit
+ 4.7
+ test
+
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
+
+ org.apache.commons
+ commons-lang3
+ 3.1
+
+
+ org.json
+ json
+ 20140107
+
+
+ org.codehaus.jackson
+ jackson-jaxrs
+ 1.9.4
+
+
+ com.sun.xml.security
+ xml-security-impl
+ 1.0
+
From c92b02eeee3bbe0a821752c35b8d9a7ab04c3b6d Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Sun, 26 May 2024 17:46:10 +0200
Subject: [PATCH 06/13] Update pom.xml
---
pom.xml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 047e96bbd..f8ef8d571 100644
--- a/pom.xml
+++ b/pom.xml
@@ -136,6 +136,7 @@
+ addressbook
org.apache.maven.plugins
@@ -187,7 +188,6 @@
- addressbook
@@ -457,3 +457,4 @@
+
From 26e81cffbfd4c5f10c6bb5bad937b61414266bee Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Thu, 30 May 2024 11:48:21 +0200
Subject: [PATCH 07/13] Update pom.xml
---
pom.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pom.xml b/pom.xml
index f8ef8d571..8f365256d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,6 +25,10 @@
vaadin-addons
http://maven.vaadin.com/vaadin-addons
+
+ codehaus
+ http://repository.codehaus.org
+
vaadin-snapshots
http://oss.sonatype.org/content/repositories/vaadin-snapshots/
@@ -49,6 +53,7 @@
+
From 721edf92066e4a931b6a54e0a95a51cfd3946804 Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Thu, 30 May 2024 11:56:17 +0200
Subject: [PATCH 08/13] Update pom.xml
---
pom.xml | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/pom.xml b/pom.xml
index 8f365256d..b9f26f900 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,10 +25,10 @@
vaadin-addons
http://maven.vaadin.com/vaadin-addons
-
- codehaus
- http://repository.codehaus.org
-
+
+ codehaus
+ http://repository.codehaus.org
+
vaadin-snapshots
http://oss.sonatype.org/content/repositories/vaadin-snapshots/
@@ -53,7 +53,6 @@
-
@@ -462,4 +461,3 @@
-
From bcda804c4d8fd8ac1c9758db28ed47fd4a813481 Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Thu, 30 May 2024 12:08:08 +0200
Subject: [PATCH 09/13] Update pom.xml
---
pom.xml | 493 ++++----------------------------------------------------
1 file changed, 32 insertions(+), 461 deletions(-)
diff --git a/pom.xml b/pom.xml
index b9f26f900..280a6a3b1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,463 +1,34 @@
-
- 4.0.0
- com.edurekademo.tutorial
- addressbook
- war
- 2.0
- Vaadin Addressbook example
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.8
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
+
-
- UTF-8
- false
- 8.0.0.alpha2
- ${vaadin.version}
- 2.7
-
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.8
+
+
+
-
-
- vaadin-prereleases
- Vaadin Pre-releases
- https://maven.vaadin.com/vaadin-prereleases
-
-
- vaadin-addons
- http://maven.vaadin.com/vaadin-addons
-
-
- codehaus
- http://repository.codehaus.org
-
-
- vaadin-snapshots
- http://oss.sonatype.org/content/repositories/vaadin-snapshots/
-
- false
-
-
- true
-
-
-
-
-
-
- vaadin-snapshots
- http://oss.sonatype.org/content/repositories/vaadin-snapshots/
-
- false
-
-
- true
-
-
-
-
-
-
- com.vaadin
- vaadin-compatibility-server
- ${vaadin.version}
-
-
- com.vaadin
- vaadin-compatibility-shared
- ${vaadin.version}
-
-
- com.vaadin
- vaadin-compatibility-client-compiled
- ${vaadin.version}
-
-
- com.vaadin
- vaadin-themes
- ${vaadin.version}
-
-
- javax.servlet
- javax.servlet-api
- 3.0.1
- provided
-
-
- commons-beanutils
- commons-beanutils
- 1.9.2
-
-
- log4j
- log4j
- 1.2.9
-
-
- org.slf4j
- slf4j-api
- 1.7.7
-
-
- org.slf4j
- slf4j-simple
- 1.7.7
-
-
- org.slf4j
- slf4j-log4j12
- 1.7.7
-
-
- junit
- junit
- 4.7
- test
-
-
- commons-httpclient
- commons-httpclient
- 3.1
-
-
- org.apache.commons
- commons-lang3
- 3.1
-
-
- org.json
- json
- 20140107
-
-
- org.codehaus.jackson
- jackson-jaxrs
- 1.9.4
-
-
- com.sun.xml.security
- xml-security-impl
- 1.0
-
-
-
-
- addressbook
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.2
-
- 1.8
- 1.8
-
-
-
- org.eclipse.jetty
- jetty-maven-plugin
- 9.2.3.v20140905
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 2.19.1
-
- methods
- 10
-
- **/Test*.java
- **/Test.java
- **/TestCase.java
-
-
- **/*Abstract*Test.java
-
-
-
-
- org.codehaus.mojo
- cobertura-maven-plugin
- ${cobertura.version}
-
-
- html
- xml
-
-
-
-
-
- cobertura
-
-
-
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-report-plugin
- 2.19.1
-
-
-
-
-
-
- development
-
- true
-
-
-
- metrics
-
-
-
- org.apache.maven.plugins
- maven-pmd-plugin
- 3.2
-
- 1.8
- true
- xml
- 20
- true
- 2
-
-
-
- findbugs-maven-plugin
- 2.4.0
-
- Max
- true
-
-
-
-
-
-
- maven3
-
- true
-
-
-
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 1.0
-
-
- enforce-versions
-
- enforce
-
-
-
-
- [3.0,)
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-site-plugin
- 3.3
-
-
-
- maven-project-info-reports-plugin
- 2.7
-
-
- org.jacoco
- jacoco-maven-plugin
- 0.7.2.201409121644
-
-
- org.apache.maven.plugins
- maven-checkstyle-plugin
- 3.0.1
-
-
- org.apache.maven.plugins
- maven-pmd-plugin
- 3.2
-
- 1.8
- true
- xml
-
- /pmd-rules.xml
-
- 20
- true
-
-
-
- org.codehaus.mojo
- findbugs-maven-plugin
- 2.4.0
-
- Max
- true
-
-
-
- maven-javadoc-plugin
- 2.9.1
-
- 1.8
-
- gr.spinellis.umlgraph.doclet.UmlGraphDoc
-
-
- gr.spinellis
- UmlGraph
- 4.6
-
-
- -inferrel -inferdep -hide java.* -collpackages
- java.util.* -attributes -operations
- -enumerations -enumconstants
-
-
-
-
- org.apache.maven.plugins
- maven-jxr-plugin
- 2.4
-
-
-
-
-
- com.edurekademo.tutorial
- addressbook
- ${project.version}
-
-
-
-
-
-
-
- maven2
-
-
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 1.0
-
-
- enforce-versions
-
- enforce
-
-
-
-
- [2.0.9, 2.2.1]
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-site-plugin
- 2.1.1
-
-
- com.edurekademo.tutorial
- addressbook
- ${project.version}
-
-
-
-
-
-
-
-
- org.codehaus.mojo
- cobertura-maven-plugin
- ${cobertura.version}
-
-
- html
- xml
-
-
-
-
- org.apache.maven.plugins
- maven-pmd-plugin
- 2.5
-
- 1.8
- true
- xml
-
- /pmd-rules.xml
-
- 20
- true
-
-
-
- org.apache.maven.plugins
- maven-checkstyle-plugin
- 2.9.1
-
- addressbook-build/checkstyle.xml
-
-
-
- org.codehaus.mojo
- findbugs-maven-plugin
- 2.4.0
-
- Max
- true
-
-
-
- maven-javadoc-plugin
- 2.7
-
- 1.8
-
- gr.spinellis.umlgraph.doclet.UmlGraphDoc
-
-
- gr.spinellis
- UmlGraph
- 4.6
-
-
- -inferrel -inferdep -hide java.* -collpackages
- java.util.* -attributes -operations
- -enumerations -enumconstants
-
-
-
-
- org.apache.maven.plugins
- maven-jxr-plugin
- 2.1
-
-
-
-
-
-
From beabf617d05991af1f5f18f2542c66a12e5562de Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Thu, 30 May 2024 12:12:20 +0200
Subject: [PATCH 10/13] Update pom.xml
---
pom.xml | 499 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 467 insertions(+), 32 deletions(-)
diff --git a/pom.xml b/pom.xml
index 280a6a3b1..163677fe5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,34 +1,469 @@
-
-
-
- org.jacoco
- jacoco-maven-plugin
- 0.8.8
-
-
-
- prepare-agent
-
-
-
- report
- test
-
- report
-
-
-
-
-
-
+
+ 4.0.0
+ com.edurekademo.tutorial
+ addressbook
+ war
+ 2.0
+ Vaadin Addressbook example
-
-
-
- org.jacoco
- jacoco-maven-plugin
- 0.8.8
-
-
-
+
+ UTF-8
+ false
+ 8.0.0.alpha2
+ ${vaadin.version}
+ 0.8.8
+
+
+
+ vaadin-prereleases
+ Vaadin Pre-releases
+ https://maven.vaadin.com/vaadin-prereleases
+
+
+ vaadin-addons
+ http://maven.vaadin.com/vaadin-addons
+
+
+ codehaus
+ http://repository.codehaus.org
+
+
+ vaadin-snapshots
+ http://oss.sonatype.org/content/repositories/vaadin-snapshots/
+
+ false
+
+
+ true
+
+
+
+
+
+
+ vaadin-snapshots
+ http://oss.sonatype.org/content/repositories/vaadin-snapshots/
+
+ false
+
+
+ true
+
+
+
+
+
+
+ com.vaadin
+ vaadin-compatibility-server
+ ${vaadin.version}
+
+
+ com.vaadin
+ vaadin-compatibility-shared
+ ${vaadin.version}
+
+
+ com.vaadin
+ vaadin-compatibility-client-compiled
+ ${vaadin.version}
+
+
+ com.vaadin
+ vaadin-themes
+ ${vaadin.version}
+
+
+ javax.servlet
+ javax.servlet-api
+ 3.0.1
+ provided
+
+
+ commons-beanutils
+ commons-beanutils
+ 1.9.2
+
+
+ log4j
+ log4j
+ 1.2.9
+
+
+ org.slf4j
+ slf4j-api
+ 1.7.7
+
+
+ org.slf4j
+ slf4j-simple
+ 1.7.7
+
+
+ org.slf4j
+ slf4j-log4j12
+ 1.7.7
+
+
+ junit
+ junit
+ 4.7
+ test
+
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
+
+ org.apache.commons
+ commons-lang3
+ 3.1
+
+
+ org.json
+ json
+ 20140107
+
+
+ org.codehaus.jackson
+ jackson-jaxrs
+ 1.9.4
+
+
+ com.sun.xml.security
+ xml-security-impl
+ 1.0
+
+
+
+
+ addressbook
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.2
+
+ 1.8
+ 1.8
+
+
+
+ org.eclipse.jetty
+ jetty-maven-plugin
+ 9.2.3.v20140905
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.19.1
+
+ methods
+ 10
+
+ **/Test*.java
+ **/Test.java
+ **/TestCase.java
+
+
+ **/*Abstract*Test.java
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-report-plugin
+ 2.19.1
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+
+
+
+ development
+
+ true
+
+
+
+ metrics
+
+
+
+ org.apache.maven.plugins
+ maven-pmd-plugin
+ 3.2
+
+ 1.8
+ true
+ xml
+ 20
+ true
+ 2
+
+
+
+ findbugs-maven-plugin
+ 2.4.0
+
+ Max
+ true
+
+
+
+
+
+
+ maven3
+
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ 1.0
+
+
+ enforce-versions
+
+ enforce
+
+
+
+
+ [3.0,)
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-site-plugin
+ 3.3
+
+
+
+ maven-project-info-reports-plugin
+ 2.7
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.7.2.201409121644
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.0.1
+
+
+ org.apache.maven.plugins
+ maven-pmd-plugin
+ 3.2
+
+ 1.8
+ true
+ xml
+
+ /pmd-rules.xml
+
+ 20
+ true
+
+
+
+ org.codehaus.mojo
+ findbugs-maven-plugin
+ 2.4.0
+
+ Max
+ true
+
+
+
+ maven-javadoc-plugin
+ 2.9.1
+
+ 1.8
+
+ gr.spinellis.umlgraph.doclet.UmlGraphDoc
+
+
+ gr.spinellis
+ UmlGraph
+ 4.6
+
+
+ -inferrel -inferdep -hide java.* -collpackages
+ java.util.* -attributes -operations
+ -enumerations -enumconstants
+
+
+
+
+ org.apache.maven.plugins
+ maven-jxr-plugin
+ 2.4
+
+
+
+
+
+ com.edurekademo.tutorial
+ addressbook
+ ${project.version}
+
+
+
+
+
+
+
+ maven2
+
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ 1.0
+
+
+ enforce-versions
+
+ enforce
+
+
+
+
+ [2.0.9, 2.2.1]
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-site-plugin
+ 2.1.1
+
+
+ com.edurekademo.tutorial
+ addressbook
+ ${project.version}
+
+
+
+
+
+
+
+
+ org.codehaus.mojo
+ cobertura-maven-plugin
+ ${cobertura.version}
+
+
+ html
+ xml
+
+
+
+
+ org.apache.maven.plugins
+ maven-pmd-plugin
+ 2.5
+
+ 1.8
+ true
+ xml
+
+ /pmd-rules.xml
+
+ 20
+ true
+
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 2.9.1
+
+ addressbook-build/checkstyle.xml
+
+
+
+ org.codehaus.mojo
+ findbugs-maven-plugin
+ 2.4.0
+
+ Max
+ true
+
+
+
+ maven-javadoc-plugin
+ 2.7
+
+ 1.8
+
+ gr.spinellis.umlgraph.doclet.UmlGraphDoc
+
+
+ gr.spinellis
+ UmlGraph
+ 4.6
+
+
+ -inferrel -inferdep -hide java.* -collpackages
+ java.util.* -attributes -operations
+ -enumerations -enumconstants
+
+
+
+
+ org.apache.maven.plugins
+ maven-jxr-plugin
+ 2.1
+
+
+
+
+
+
From 36f2bab8a179fb1763e877e8f33c5e8a4a590937 Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Thu, 30 May 2024 12:25:10 +0200
Subject: [PATCH 11/13] Update pom.xml add jacoco
---
pom.xml | 26 ++++++++++----------------
1 file changed, 10 insertions(+), 16 deletions(-)
diff --git a/pom.xml b/pom.xml
index 163677fe5..01f599a0a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -174,20 +174,19 @@
- org.jacoco
- jacoco-maven-plugin
- ${jacoco.version}
+ org.codehaus.mojo
+ cobertura-maven-plugin
+ ${cobertura.version}
+
+
+ html
+ xml
+
+
- prepare-agent
-
-
-
- report
- test
-
- report
+ cobertura
@@ -202,11 +201,6 @@
maven-surefire-report-plugin
2.19.1
-
- org.jacoco
- jacoco-maven-plugin
- ${jacoco.version}
-
From 7c644103b813af95662d774ad8941b8dc4bda253 Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Thu, 30 May 2024 12:32:13 +0200
Subject: [PATCH 12/13] Update pom.xml
---
pom.xml | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git a/pom.xml b/pom.xml
index 01f599a0a..163677fe5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -174,19 +174,20 @@
- org.codehaus.mojo
- cobertura-maven-plugin
- ${cobertura.version}
-
-
- html
- xml
-
-
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
- cobertura
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
@@ -201,6 +202,11 @@
maven-surefire-report-plugin
2.19.1
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
From 6ecdab3d70e0cf65499f1a945b85d3d720ed50a0 Mon Sep 17 00:00:00 2001
From: MOHAMED SESAY <162488876+deeeye2@users.noreply.github.com>
Date: Wed, 5 Jun 2024 23:34:34 +0200
Subject: [PATCH 13/13] Create jenkinspipeline
---
jenkinspipeline | 76 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
create mode 100644 jenkinspipeline
diff --git a/jenkinspipeline b/jenkinspipeline
new file mode 100644
index 000000000..9eb2541ba
--- /dev/null
+++ b/jenkinspipeline
@@ -0,0 +1,76 @@
+pipeline {
+ agent {
+ name "host1"
+ }
+ tools {
+ jdk 'java'
+ maven 'maven'
+ }
+
+ stages {
+ stage('Checkout SCM') {
+ steps {
+ checkout([
+ $class: 'GitSCM',
+ branches: [[name: 'master']],
+ userRemoteConfigs: [[
+ url: 'https://github.com/deeeye2/DevOpsClassCodes.git',
+ credentialsId: ''
+ ]]
+ ])
+ }
+ }
+ stage('Clone Repository') {
+ steps {
+ git url: 'https://github.com/deeeye2/DevOpsClassCodes.git'
+ }
+ }
+ stage('Compile') {
+ steps {
+ sh 'mvn compile'
+ }
+ }
+ stage('Unit Test') {
+ steps {
+ sh 'mvn test'
+ }
+ }
+ stage('Metric Check') {
+ steps {
+ sh 'mvn clean verify jacoco:report'
+ }
+ }
+ stage('Package') {
+ steps {
+ sh 'mvn package'
+ }
+ }
+ stage('Send Build Artifacts Over SSH') {
+ steps {
+ sshPublisher(publishers: [
+ sshPublisherDesc(
+ configName: 'dockerhost', // Name of the SSH configuration in Jenkins
+ transfers: [
+ sshTransfer(
+ sourceFiles: 'target/addressbook.war',
+ remoteDirectory: '//opt//docker', // Corrected remote directory
+ removePrefix: 'target',
+ execCommand: 'echo "Deployment Complete"'
+ )
+ ],
+ usePromotionTimestamp: false,
+ useWorkspaceInPromotion: false,
+ verbose: true
+ )
+ ])
+ }
+ }
+ }
+ post {
+ always {
+ junit 'target/surefire-reports/*.xml'
+ jacoco execPattern: 'target/jacoco.exec', classPattern: 'target/classes', sourcePattern: 'src/main/java', exclusionPattern: '**/Test*.class'
+ cleanWs()
+ }
+ }
+}