From 274375272ea3b72fd3a600ca87c1b6c09825c962 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 15 Feb 2022 09:16:34 +1000 Subject: [PATCH] simplify pom by using simple property rather than xml fragment (#7578) * simplify skip deploy configuration Signed-off-by: Olivier Lamy --- build-resources/pom.xml | 14 +----- examples/pom.xml | 14 +----- jetty-jmh/pom.xml | 13 +---- jetty-osgi/test-jetty-osgi-context/pom.xml | 9 +--- jetty-osgi/test-jetty-osgi-fragment/pom.xml | 9 +--- jetty-osgi/test-jetty-osgi-server/pom.xml | 9 +--- .../test-jetty-osgi-webapp-resources/pom.xml | 48 ++++++++----------- jetty-osgi/test-jetty-osgi-webapp/pom.xml | 9 +--- tests/pom.xml | 34 ++----------- tests/test-continuation/pom.xml | 12 ----- tests/test-http-client-transport/pom.xml | 8 ---- tests/test-jmx/jmx-webapp/pom.xml | 10 ---- .../test-sessions/test-file-sessions/pom.xml | 12 ----- .../test-gcloud-sessions/pom.xml | 12 ----- .../test-hazelcast-sessions/pom.xml | 9 +--- .../test-infinispan-sessions/pom.xml | 8 ---- .../test-sessions/test-jdbc-sessions/pom.xml | 8 ---- .../test-memcached-sessions/pom.xml | 12 ----- .../test-mongodb-sessions/pom.xml | 8 ---- tests/test-webapps/pom.xml | 8 ---- tests/test-webapps/test-jaas-webapp/pom.xml | 8 ---- tests/test-webapps/test-jetty-webapp/pom.xml | 10 +--- tests/test-webapps/test-jndi-webapp/pom.xml | 8 ---- tests/test-webapps/test-proxy-webapp/pom.xml | 10 +--- tests/test-webapps/test-servlet-spec/pom.xml | 12 ----- .../test-spec-webapp/pom.xml | 8 ---- .../test-webapps/test-webapp-rfc2616/pom.xml | 8 ---- 27 files changed, 36 insertions(+), 294 deletions(-) diff --git a/build-resources/pom.xml b/build-resources/pom.xml index 3d7fe75d4a4..ce8cac68de3 100644 --- a/build-resources/pom.xml +++ b/build-resources/pom.xml @@ -8,19 +8,7 @@ UTF-8 + true - - - - org.apache.maven.plugins - maven-deploy-plugin - 3.0.0-M2 - - - true - - - - diff --git a/examples/pom.xml b/examples/pom.xml index 4c3da512fc7..7d42a41dd0d 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -15,21 +15,9 @@ true true + true - - - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - - - - - true - - - - diff --git a/jetty-osgi/test-jetty-osgi-context/pom.xml b/jetty-osgi/test-jetty-osgi-context/pom.xml index b5c798a3a47..4a44083227c 100644 --- a/jetty-osgi/test-jetty-osgi-context/pom.xml +++ b/jetty-osgi/test-jetty-osgi-context/pom.xml @@ -10,6 +10,7 @@ Test Jetty OSGi bundle with a ContextHandler ${project.groupId}.testcontext + true @@ -44,14 +45,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.apache.felix maven-bundle-plugin diff --git a/jetty-osgi/test-jetty-osgi-fragment/pom.xml b/jetty-osgi/test-jetty-osgi-fragment/pom.xml index 654e0624991..a03ead7b6f3 100644 --- a/jetty-osgi/test-jetty-osgi-fragment/pom.xml +++ b/jetty-osgi/test-jetty-osgi-fragment/pom.xml @@ -11,6 +11,7 @@ Test Jetty OSGi Webapp Fragment bundle ${project.groupId}.webapp.fragment + true @@ -20,14 +21,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.apache.felix maven-bundle-plugin diff --git a/jetty-osgi/test-jetty-osgi-server/pom.xml b/jetty-osgi/test-jetty-osgi-server/pom.xml index 48b97a0212a..9180af0b70a 100644 --- a/jetty-osgi/test-jetty-osgi-server/pom.xml +++ b/jetty-osgi/test-jetty-osgi-server/pom.xml @@ -10,6 +10,7 @@ Test Jetty OSGi bundle with a Server ${project.groupId}.testserver + true @@ -35,14 +36,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.apache.felix maven-bundle-plugin diff --git a/jetty-osgi/test-jetty-osgi-webapp-resources/pom.xml b/jetty-osgi/test-jetty-osgi-webapp-resources/pom.xml index b826a932a85..b12b673f98e 100644 --- a/jetty-osgi/test-jetty-osgi-webapp-resources/pom.xml +++ b/jetty-osgi/test-jetty-osgi-webapp-resources/pom.xml @@ -14,26 +14,26 @@ - - org.apache.maven.plugins - maven-resources-plugin - - - copy-resources - validate - - copy-resources - - - ${basedir}/target/classes - - - src/main/resources - - - - - + + org.apache.maven.plugins + maven-resources-plugin + + + copy-resources + validate + + copy-resources + + + ${basedir}/target/classes + + + src/main/resources + + + + + org.apache.felix @@ -58,14 +58,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - false - - diff --git a/jetty-osgi/test-jetty-osgi-webapp/pom.xml b/jetty-osgi/test-jetty-osgi-webapp/pom.xml index ed466035d47..fa4c45f9c03 100644 --- a/jetty-osgi/test-jetty-osgi-webapp/pom.xml +++ b/jetty-osgi/test-jetty-osgi-webapp/pom.xml @@ -11,6 +11,7 @@ Test Jetty OSGi Webapp bundle ${project.groupId}.webapp + true @@ -37,14 +38,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.apache.felix maven-bundle-plugin diff --git a/tests/pom.xml b/tests/pom.xml index fe7d5ca9e8f..44e19556087 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -13,37 +13,11 @@ pom true + + true + true + true - - - - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - - - org.apache.maven.plugins - maven-source-plugin - - - true - - - - org.apache.maven.plugins - maven-javadoc-plugin - - - true - - - - - test-webapps test-sessions diff --git a/tests/test-continuation/pom.xml b/tests/test-continuation/pom.xml index 2690f741f89..4b73019f478 100644 --- a/tests/test-continuation/pom.xml +++ b/tests/test-continuation/pom.xml @@ -14,18 +14,6 @@ ${project.groupId}.continuation - - - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - - - org.eclipse.jetty diff --git a/tests/test-http-client-transport/pom.xml b/tests/test-http-client-transport/pom.xml index 6ab008cd169..3201562dcf1 100644 --- a/tests/test-http-client-transport/pom.xml +++ b/tests/test-http-client-transport/pom.xml @@ -95,14 +95,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.apache.maven.plugins maven-surefire-plugin diff --git a/tests/test-jmx/jmx-webapp/pom.xml b/tests/test-jmx/jmx-webapp/pom.xml index 10f81d8676e..56d0d2ee1c3 100644 --- a/tests/test-jmx/jmx-webapp/pom.xml +++ b/tests/test-jmx/jmx-webapp/pom.xml @@ -27,15 +27,5 @@ jmx-webapp - - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - - diff --git a/tests/test-sessions/test-file-sessions/pom.xml b/tests/test-sessions/test-file-sessions/pom.xml index 63b3322224b..1ba6f1ce758 100644 --- a/tests/test-sessions/test-file-sessions/pom.xml +++ b/tests/test-sessions/test-file-sessions/pom.xml @@ -11,18 +11,6 @@ ${project.groupId}.sessions.file - - - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - - - org.eclipse.jetty diff --git a/tests/test-sessions/test-gcloud-sessions/pom.xml b/tests/test-sessions/test-gcloud-sessions/pom.xml index 6b1b3b96cb6..84122382d95 100644 --- a/tests/test-sessions/test-gcloud-sessions/pom.xml +++ b/tests/test-sessions/test-gcloud-sessions/pom.xml @@ -11,18 +11,6 @@ ${project.groupId}.sessions.gcloud - - - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - - - org.eclipse.jetty diff --git a/tests/test-sessions/test-hazelcast-sessions/pom.xml b/tests/test-sessions/test-hazelcast-sessions/pom.xml index 26cb7b22bbb..1e96bb3ba6d 100644 --- a/tests/test-sessions/test-hazelcast-sessions/pom.xml +++ b/tests/test-sessions/test-hazelcast-sessions/pom.xml @@ -10,17 +10,10 @@ Jetty Tests :: Sessions :: Hazelcast ${project.groupId}.sessions.hazelcast + true - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.apache.maven.plugins maven-dependency-plugin diff --git a/tests/test-sessions/test-infinispan-sessions/pom.xml b/tests/test-sessions/test-infinispan-sessions/pom.xml index 765068f1817..68de0ec07b3 100644 --- a/tests/test-sessions/test-infinispan-sessions/pom.xml +++ b/tests/test-sessions/test-infinispan-sessions/pom.xml @@ -17,14 +17,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.apache.maven.plugins maven-surefire-plugin diff --git a/tests/test-sessions/test-jdbc-sessions/pom.xml b/tests/test-sessions/test-jdbc-sessions/pom.xml index d1ce62996e4..89dc9309b60 100644 --- a/tests/test-sessions/test-jdbc-sessions/pom.xml +++ b/tests/test-sessions/test-jdbc-sessions/pom.xml @@ -14,14 +14,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.apache.maven.plugins maven-surefire-plugin diff --git a/tests/test-sessions/test-memcached-sessions/pom.xml b/tests/test-sessions/test-memcached-sessions/pom.xml index 16d6983d2c5..b3cd68ef1dc 100644 --- a/tests/test-sessions/test-memcached-sessions/pom.xml +++ b/tests/test-sessions/test-memcached-sessions/pom.xml @@ -12,18 +12,6 @@ ${project.groupId}.sessions.memcached - - - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - - - org.eclipse.jetty diff --git a/tests/test-sessions/test-mongodb-sessions/pom.xml b/tests/test-sessions/test-mongodb-sessions/pom.xml index 47a9842ee10..424b348c8e7 100644 --- a/tests/test-sessions/test-mongodb-sessions/pom.xml +++ b/tests/test-sessions/test-mongodb-sessions/pom.xml @@ -14,14 +14,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.apache.maven.plugins maven-surefire-plugin diff --git a/tests/test-webapps/pom.xml b/tests/test-webapps/pom.xml index 3c501d033a5..b588cc03739 100644 --- a/tests/test-webapps/pom.xml +++ b/tests/test-webapps/pom.xml @@ -12,14 +12,6 @@ pom - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.jacoco jacoco-maven-plugin diff --git a/tests/test-webapps/test-jaas-webapp/pom.xml b/tests/test-webapps/test-jaas-webapp/pom.xml index cfd46a5b3a7..7ca80b425b4 100644 --- a/tests/test-webapps/test-jaas-webapp/pom.xml +++ b/tests/test-webapps/test-jaas-webapp/pom.xml @@ -14,14 +14,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.eclipse.jetty jetty-maven-plugin diff --git a/tests/test-webapps/test-jetty-webapp/pom.xml b/tests/test-webapps/test-jetty-webapp/pom.xml index 67d55e7b486..9d3fb5d1323 100644 --- a/tests/test-webapps/test-jetty-webapp/pom.xml +++ b/tests/test-webapps/test-jetty-webapp/pom.xml @@ -13,6 +13,8 @@ war ${project.groupId}.tests.webapp + + false @@ -125,14 +127,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - false - - diff --git a/tests/test-webapps/test-jndi-webapp/pom.xml b/tests/test-webapps/test-jndi-webapp/pom.xml index 0b89b7cf9ec..c27cb35521a 100644 --- a/tests/test-webapps/test-jndi-webapp/pom.xml +++ b/tests/test-webapps/test-jndi-webapp/pom.xml @@ -14,14 +14,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - maven-antrun-plugin diff --git a/tests/test-webapps/test-proxy-webapp/pom.xml b/tests/test-webapps/test-proxy-webapp/pom.xml index 037f640d5db..f582e4bf811 100644 --- a/tests/test-webapps/test-proxy-webapp/pom.xml +++ b/tests/test-webapps/test-proxy-webapp/pom.xml @@ -13,6 +13,8 @@ war ${project.groupId}.proxy + + false @@ -24,14 +26,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - false - - diff --git a/tests/test-webapps/test-servlet-spec/pom.xml b/tests/test-webapps/test-servlet-spec/pom.xml index 94332148e7e..556e6807865 100644 --- a/tests/test-webapps/test-servlet-spec/pom.xml +++ b/tests/test-webapps/test-servlet-spec/pom.xml @@ -9,18 +9,6 @@ test-servlet-spec-parent Jetty Tests :: Spec Test WebApp :: Parent pom - - - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - - - test-web-fragment test-container-initializer diff --git a/tests/test-webapps/test-servlet-spec/test-spec-webapp/pom.xml b/tests/test-webapps/test-servlet-spec/test-spec-webapp/pom.xml index 880d400330a..299d045ec9b 100644 --- a/tests/test-webapps/test-servlet-spec/test-spec-webapp/pom.xml +++ b/tests/test-webapps/test-servlet-spec/test-spec-webapp/pom.xml @@ -14,14 +14,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - true - - - org.apache.maven.plugins maven-assembly-plugin diff --git a/tests/test-webapps/test-webapp-rfc2616/pom.xml b/tests/test-webapps/test-webapp-rfc2616/pom.xml index 73c73aba398..cded38c774a 100644 --- a/tests/test-webapps/test-webapp-rfc2616/pom.xml +++ b/tests/test-webapps/test-webapp-rfc2616/pom.xml @@ -14,14 +14,6 @@ - - org.apache.maven.plugins - maven-deploy-plugin - - - true - - org.eclipse.jetty jetty-maven-plugin