diff --git a/0001-Remove-javadoc-execution.patch b/0001-Remove-javadoc-execution.patch deleted file mode 100644 index c2c520c..0000000 --- a/0001-Remove-javadoc-execution.patch +++ /dev/null @@ -1,56 +0,0 @@ -From c582282bd0742ea950c644d2954e5e65980fc4d5 Mon Sep 17 00:00:00 2001 -From: Stanislav Ochotnicky -Date: Tue, 24 Jan 2012 10:33:17 +0100 -Subject: [PATCH 1/8] Remove javadoc execution - -We generate javadoc as a separate step ---- - jetty-aggregate/jetty-all/pom.xml | 13 ------------- - jetty-distribution/pom.xml | 7 ------- - 2 files changed, 0 insertions(+), 20 deletions(-) - -diff --git a/jetty-aggregate/jetty-all/pom.xml b/jetty-aggregate/jetty-all/pom.xml -index e6f83fe..97461a8 100644 ---- a/jetty-aggregate/jetty-all/pom.xml -+++ b/jetty-aggregate/jetty-all/pom.xml -@@ -76,19 +76,6 @@ - - - -- -- org.apache.maven.plugins -- maven-javadoc-plugin -- -- -- javadoc-jar -- compile -- -- jar -- -- -- -- - - - -diff --git a/jetty-distribution/pom.xml b/jetty-distribution/pom.xml -index 32ac454..aff91ff 100644 ---- a/jetty-distribution/pom.xml -+++ b/jetty-distribution/pom.xml -@@ -398,13 +398,6 @@ - jetty-overlay-deployer - ${project.version} - -- -- org.eclipse.jetty.aggregate -- jetty-all -- javadoc -- jar -- ${project.version} -- - - - --- -1.7.7.6 - diff --git a/0002-Disable-test-artifacts.patch b/0002-Disable-test-artifacts.patch deleted file mode 100644 index ef57be4..0000000 --- a/0002-Disable-test-artifacts.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 032c4ef3747063337f4dc7eccf9085c1aef55ecc Mon Sep 17 00:00:00 2001 -From: Stanislav Ochotnicky -Date: Tue, 24 Jan 2012 11:09:27 +0100 -Subject: [PATCH 2/8] Disable test artifacts - -- they need more dependencies then we have time for right now :-) ---- - jetty-osgi/pom.xml | 1 - - pom.xml | 5 ----- - 2 files changed, 0 insertions(+), 6 deletions(-) - -diff --git a/jetty-osgi/pom.xml b/jetty-osgi/pom.xml -index b1060c6..44cb42c 100644 ---- a/jetty-osgi/pom.xml -+++ b/jetty-osgi/pom.xml -@@ -23,7 +23,6 @@ - jetty-osgi-boot-jsp - jetty-osgi-boot-warurl - jetty-osgi-httpservice -- test-jetty-osgi - - - -diff --git a/pom.xml b/pom.xml -index 06cd996..6e4f1b2 100644 ---- a/pom.xml -+++ b/pom.xml -@@ -382,14 +382,9 @@ - jetty-http-spi - jetty-jsp - jetty-distribution -- test-continuation -- -- test-jetty-servlet - test-jetty-webapp -- test-jetty-nested - example-jetty-embedded - example-async-rest -- tests - - - --- -1.7.7.6 - diff --git a/0003-Change-servelt-groupId-to-javax.servlet.patch b/0003-Change-servelt-groupId-to-javax.servlet.patch deleted file mode 100644 index 352189d..0000000 --- a/0003-Change-servelt-groupId-to-javax.servlet.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 715883e87acb5a080d0591cd78b8b1c65cdda910 Mon Sep 17 00:00:00 2001 -From: Stanislav Ochotnicky -Date: Tue, 24 Jan 2012 11:10:12 +0100 -Subject: [PATCH 3/8] Change servelt groupId to javax.servlet - ---- - pom.xml | 3 +++ - 1 files changed, 3 insertions(+), 0 deletions(-) - -diff --git a/pom.xml b/pom.xml -index 6e4f1b2..691bf8d 100644 ---- a/pom.xml -+++ b/pom.xml -@@ -15,6 +15,9 @@ - UTF-8 - http://www.eclipse.org/jetty - 3.0.0.v201112011016 -+ javax.servlet -+ servlet-api -+ 3.0.20100224 - 1.1 - 1.6.1 - 1.2 --- -1.7.7.6 - diff --git a/0005-Remove-pmd-plugin.patch b/0005-Remove-pmd-plugin.patch deleted file mode 100644 index 71eb2c2..0000000 --- a/0005-Remove-pmd-plugin.patch +++ /dev/null @@ -1,54 +0,0 @@ -From 561d02921266735f31bff5111c69741f5d9af648 Mon Sep 17 00:00:00 2001 -From: Stanislav Ochotnicky -Date: Tue, 24 Jan 2012 11:15:56 +0100 -Subject: [PATCH 5/8] Remove pmd plugin - -- prevents problem with "Reporting mojo's can only be called from - ReportDocumentRender". Investigate proper fix some other time? ---- - pom.xml | 29 ----------------------------- - 1 files changed, 0 insertions(+), 29 deletions(-) - -diff --git a/pom.xml b/pom.xml -index 691bf8d..9eb07e2 100644 ---- a/pom.xml -+++ b/pom.xml -@@ -171,35 +171,6 @@ - - - -- -- org.apache.maven.plugins -- maven-pmd-plugin -- -- -- named-logging-enforcement -- compile -- -- check -- -- -- true -- -- -- -- -- 1.6 -- -- jetty/pmd_logging_ruleset.xml -- -- -- -- -- org.eclipse.jetty.toolchain -- jetty-build-support -- ${build-support-version} -- -- -- - - - --- -1.7.7.6 - diff --git a/0006-Remove-unpack-config-deps-from-distribution.patch b/0006-Remove-unpack-config-deps-from-distribution.patch deleted file mode 100644 index 027af8e..0000000 --- a/0006-Remove-unpack-config-deps-from-distribution.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 560d5f75fed8bb44df915140c74512c7d95d1717 Mon Sep 17 00:00:00 2001 -From: Stanislav Ochotnicky -Date: Tue, 27 Mar 2012 10:11:41 +0200 -Subject: [PATCH 6/8] Remove unpack-config-deps from distribution - -This is needed because original code used classifiers to select subset -of artifacts. Unfortunately there seems to be a weird bug affecting even -upstream maven when this goes outside of reactor resolver. Or perhaps -this is a weird feature. - -Our resolver obviously can't handle this so we have to unpack these -manually before building distribution ---- - jetty-distribution/pom.xml | 14 -------------- - 1 files changed, 0 insertions(+), 14 deletions(-) - -diff --git a/jetty-distribution/pom.xml b/jetty-distribution/pom.xml -index aff91ff..8cd3aba 100644 ---- a/jetty-distribution/pom.xml -+++ b/jetty-distribution/pom.xml -@@ -202,20 +202,6 @@ - - - -- unpack-config-deps -- generate-resources -- -- unpack-dependencies -- -- -- org.eclipse.jetty -- config -- false -- META-INF/** -- ${assembly-directory} -- -- -- - copy-lib-monitor-deps - generate-resources - --- -1.7.7.6 - diff --git a/0007-disable-jetty-osgi.patch b/0007-disable-jetty-osgi.patch deleted file mode 100644 index 6720fc7..0000000 --- a/0007-disable-jetty-osgi.patch +++ /dev/null @@ -1,73 +0,0 @@ -From 32ba8f2a4688759640570ba3b99d969a2ef53b55 Mon Sep 17 00:00:00 2001 -From: Stanislav Ochotnicky -Date: Mon, 30 Apr 2012 16:24:57 +0200 -Subject: [PATCH 7/8] disable jetty-osgi - ---- - jetty-jsp/pom.xml | 9 ++++++++- - pom.xml | 18 ------------------ - 2 files changed, 8 insertions(+), 19 deletions(-) - -diff --git a/jetty-jsp/pom.xml b/jetty-jsp/pom.xml -index 305766d..03e9965 100644 ---- a/jetty-jsp/pom.xml -+++ b/jetty-jsp/pom.xml -@@ -48,11 +48,18 @@ - com.sun.el - 2.2.0.v201108011116 - -- -+ -+ -+ -+ org.glassfish.web -+ javax.servlet.jsp -+ 2.2.3 - - - -diff --git a/pom.xml b/pom.xml -index 9eb07e2..4575f76 100644 ---- a/pom.xml -+++ b/pom.xml -@@ -351,7 +351,6 @@ - jetty-start - jetty-nested - jetty-overlay-deployer -- jetty-osgi - jetty-nosql - jetty-http-spi - jetty-jsp -@@ -543,23 +542,6 @@ - - - -- -- osgi -- -- true -- -- ${basedir}/pom.xml -- -- -- -- jetty-osgi -- -- -- - update-version - - --- -1.7.7.6 - diff --git a/0008-Disable-jetty-nosql.patch b/0008-Disable-jetty-nosql.patch deleted file mode 100644 index 4daa635..0000000 --- a/0008-Disable-jetty-nosql.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 36fc0972e0a8ea3fc67aa4f655c2ea24b0784a9a Mon Sep 17 00:00:00 2001 -From: Mikolaj Izdebski -Date: Thu, 24 May 2012 13:39:02 +0200 -Subject: [PATCH 8/8] Disable jetty-nosql - ---- - pom.xml | 1 - - 1 files changed, 0 insertions(+), 1 deletions(-) - -diff --git a/pom.xml b/pom.xml -index 4575f76..ca5c317 100644 ---- a/pom.xml -+++ b/pom.xml -@@ -351,7 +351,6 @@ - jetty-start - jetty-nested - jetty-overlay-deployer -- jetty-nosql - jetty-http-spi - jetty-jsp - jetty-distribution --- -1.7.7.6 - diff --git a/jetty.spec b/jetty.spec index 3847048..68bf1f2 100644 --- a/jetty.spec +++ b/jetty.spec @@ -56,14 +56,7 @@ Source1: djetty.script Source3: jetty.logrotate Source4: %{name}-depmap.xml Source5: %{name}.service -Patch1: 0001-Remove-javadoc-execution.patch -Patch2: 0002-Disable-test-artifacts.patch -Patch3: 0003-Change-servelt-groupId-to-javax.servlet.patch Patch4: 0004-Modify-dependencies.patch -Patch5: 0005-Remove-pmd-plugin.patch -Patch6: 0006-Remove-unpack-config-deps-from-distribution.patch -Patch7: 0007-disable-jetty-osgi.patch -Patch8: 0008-Disable-jetty-nosql.patch BuildRequires: geronimo-annotation BuildRequires: geronimo-jaspic-spec @@ -576,17 +569,41 @@ Requires: jpackage-utils for f in $(find . -name "*.?ar"); do rm $f; done find . -name "*.class" -exec rm {} \; - -%patch1 -p1 -b .sav -%patch2 -p1 -b .sav -%patch3 -p1 -b .sav %patch4 -p1 -b .sav -%patch5 -p1 -b .sav -%patch6 -p1 -b .sav -%if 0%{?rhel} > 0 -%patch7 -p1 -b .sav -%patch8 -p1 -b .sav -%endif + +# Remove javadoc execution +# We generate javadoc as a separate step +%pom_remove_plugin :maven-javadoc-plugin jetty-aggregate/jetty-all +%pom_remove_dep :jetty-all jetty-distribution + +# Disable test artifacts +# they need more dependencies then we have time for right now :-) +%pom_disable_module tests +%pom_disable_module test-continuation +%pom_disable_module test-jetty-nested +%pom_disable_module test-jetty-servlet +%pom_disable_module test-jetty-osgi jetty-osgi + +# Change servelt groupId to javax.servlet +%pom_xpath_inject "pom:project/pom:properties" " + javax.servlet + servlet-api + 3.0.20100224" + +# Prevents problem with "Reporting mojo's can only be called from +# ReportDocumentRender". Investigate proper fix some other time? +%pom_remove_plugin :maven-pmd-plugin + +# Remove unpack-config-deps from distribution +# +# This is needed because original code used classifiers to select subset +# of artifacts. Unfortunately there seems to be a weird bug affecting even +# upstream maven when this goes outside of reactor resolver. Or perhaps +# this is a weird feature. +# +# Our resolver obviously can't handle this so we have to unpack these +# manually before building distribution +%pom_xpath_remove "pom:execution[pom:id[text()='unpack-config-deps']]" jetty-distribution # Disable SPDY for now as there are missing dependencies # (like some TLS extensions for OpenJDK) @@ -594,6 +611,24 @@ find . -name "*.class" -exec rm {} \; %pom_remove_dep org.eclipse.jetty.spdy: jetty-distribution %pom_xpath_remove "pom:execution[pom:id[text()='copy-spdy']]" jetty-distribution +%if 0%{?rhel} > 0 +# Use Glassfish JSP +%pom_remove_dep :org.eclipse.jdt.core jetty-jsp +%pom_xpath_inject "pom:project/pom:dependencies" " + + org.glassfish.web + javax.servlet.jsp + any + " jetty-jsp + +# Disable OSGi +%pom_disable_module jetty-osgi +%pom_xpath_remove "pom:profile[pom:id[text()='osgi']]" + +# Disable NoSQL +%pom_disable_module jetty-nosql +%endif + cp %{SOURCE1} djetty # this needs jetty6 things, so just remove it