From 5bf32282591c0e12d9fdbc5b87284cd4dd03675a Mon Sep 17 00:00:00 2001 From: Robbie Gemmell Date: Thu, 3 Jun 2021 11:40:57 +0100 Subject: [PATCH 1/4] ARTEMIS-3328: fix assembly descriptors and stop downgrading assembly plugin - Remove assembly plugin downgrade from 7733a76649403193e0e0e7e1a6279095fdbf426c in ARTEMIS-3296. - Ensure bin descriptor marks key artemis setup/startup script executable file permissions, it wasnt before as while aiming to it only defined inclusions for old files that no longer exist. - Add mode fields to every area to make clear what they will be using, make formats consistent with doc. - Update source release assembly to similarly mark key scripts with executable file permissions. --- .../src/main/assembly/dep.xml | 62 ++++++++++++++----- .../src/main/assembly/source-assembly.xml | 27 +++++++- pom.xml | 9 --- 3 files changed, 73 insertions(+), 25 deletions(-) diff --git a/artemis-distribution/src/main/assembly/dep.xml b/artemis-distribution/src/main/assembly/dep.xml index 0b24360f2b..018266dc87 100644 --- a/artemis-distribution/src/main/assembly/dep.xml +++ b/artemis-distribution/src/main/assembly/dep.xml @@ -21,8 +21,8 @@ - 755 - 644 + 0755 + 0644 lib ${artifact.artifactId}.${artifact.extension} false @@ -34,8 +34,8 @@ - 755 - 644 + 0755 + 0644 @@ -106,8 +106,8 @@ false - 755 - 644 + 0755 + 0644 org.apache.activemq:artemis-jms-client-all @@ -128,6 +128,8 @@ false + 0755 + 0644 @@ -139,6 +141,8 @@ web true false + 0755 + 0644 @@ -147,6 +151,8 @@ web/api true false + 0755 + 0644 @@ -158,6 +164,8 @@ false console.war false + 0755 + 0644 @@ -167,6 +175,8 @@ false activemq-branding.war false + 0755 + 0644 @@ -176,6 +186,8 @@ false artemis-plugin.war false + 0755 + 0644 @@ -185,16 +197,22 @@ ${activemq.basedir}/artemis-server/src/main/resources/schema/ schema keep + 0755 + 0644 ${activemq.basedir}/artemis-jms-server/src/main/resources/schema/ schema keep + 0755 + 0644 ${activemq.basedir}/artemis-dto/target/schema/org.apache.activemq/dto/ schema keep + 0755 + 0644 @@ -202,25 +220,21 @@ ${file.separator} keep - bin/activemq - bin/run.sh - bin/stop.sh + bin/artemis **/target/** **/**/*.iml **/**/*.dat **/licenses/** - docker/** + 0755 + 0644 - src/main/resources ${file.separator} keep - bin/activemq - bin/run.sh - bin/stop.sh + bin/artemis 0755 0755 @@ -235,18 +249,38 @@ **/**/*.iml **/**/*.dat **/**/*.md + **/**/*.sh + 0755 + 0644 + + + ${activemq.basedir}/examples + examples + keep + + **/**/*.sh + + + **/target/** + + 0755 + 0755 ${project.build.directory}/markdown-pages/examples examples keep + 0755 + 0644 ${activemq.basedir}/artemis-distribution/src/main/resources/licenses/bin ${file.separator} true + 0755 + 0644 diff --git a/artemis-distribution/src/main/assembly/source-assembly.xml b/artemis-distribution/src/main/assembly/source-assembly.xml index c0e151f7e5..46805d45c9 100644 --- a/artemis-distribution/src/main/assembly/source-assembly.xml +++ b/artemis-distribution/src/main/assembly/source-assembly.xml @@ -34,12 +34,18 @@ ${activemq.basedir} ${file.separator} true - + 0755 + 0644 tests/extra-tests/ tests/performance-jmh/ + artemis-distribution/src/main/resources/bin/artemis + artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis + artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis-service + scripts/*.sh + **/**/*.sh + data/ @@ -130,5 +136,22 @@ + + ${activemq.basedir} + ${file.separator} + true + 0755 + 0755 + + artemis-distribution/src/main/resources/bin/artemis + artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis + artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis-service + scripts/*.sh + **/**/*.sh + + + **/target/** + + diff --git a/pom.xml b/pom.xml index 5bd914ac2b..a48af171f6 100644 --- a/pom.xml +++ b/pom.xml @@ -97,10 +97,6 @@ 9.4.40.v20210413 3.6.13.Final 2.6.0 - - 3.1.1 3.0.0-M3 5.1.2 3.9.0 @@ -1482,11 +1478,6 @@ true - - org.apache.maven.plugins - maven-assembly-plugin - ${maven.assembly.plugin.version} - org.apache.maven.plugins maven-rar-plugin From c05c5955f3c2398f05b8cb728e6c801576b0cf62 Mon Sep 17 00:00:00 2001 From: Robbie Gemmell Date: Thu, 3 Jun 2021 11:41:14 +0100 Subject: [PATCH 2/4] ARTEMIS-3328: only build the source-release assembly during the release process, or upon request --- artemis-distribution/pom.xml | 40 ++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/artemis-distribution/pom.xml b/artemis-distribution/pom.xml index 82bdf48655..eae42a6ca4 100644 --- a/artemis-distribution/pom.xml +++ b/artemis-distribution/pom.xml @@ -264,19 +264,6 @@ maven-assembly-plugin - - source - - - src/main/assembly/source-assembly.xml - - posix - - package - - single - - bin @@ -329,4 +316,31 @@ + + + apache-release + + + + maven-assembly-plugin + + + source + + + src/main/assembly/source-assembly.xml + + posix + + package + + single + + + + + + + + From aa67a12449f2ba8053206c197167d123ed1dca19 Mon Sep 17 00:00:00 2001 From: Robbie Gemmell Date: Thu, 3 Jun 2021 11:41:32 +0100 Subject: [PATCH 3/4] ARTEMIS-3328: override the parent pom assembly creation, suppress creating and deploying unused assembly --- RELEASING.md | 15 ++++----------- pom.xml | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index 25b38ff948..0b654653bd 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -140,18 +140,11 @@ scm.tag=1.4.0 ``` -## Removing additional files - -The last step before closing the staging repository is removing the `artemis-pom-<version>-source-release.zip` file. At -the moment this artifact is uploaded automatically by the Apache release plugin. In future versions the ActiveMQ Artemis -pom will be updated to take this into account. - -The file will be located under ./artemis-pom/<version>/ - -Remove these files manually under Nexus (https://repository.apache.org/#stagingRepositories) while the repository is still open. - -Once the file is removed close the staging repo using the "Close" button on Nexus website. +## Closing the staging repository +Give the staging repository contents a quick inspection using the content navigation area, then proceed to close the +staging repo using the "Close" button on Nexus website, locking it from further modification and exposing its contents +at a staging URL to allow testing. Set a description such as "ActiveMQ Artemis (RC1)" while closing. ## Stage the release to the dist dev area diff --git a/pom.xml b/pom.xml index a48af171f6..c2d722e643 100644 --- a/pom.xml +++ b/pom.xml @@ -1100,6 +1100,26 @@ + + + apache-release + + + + maven-assembly-plugin + + + source-release-assembly + + true + + + + + + + tests-retry From c24a2faf52860efc82622d57b29ad364822f1859 Mon Sep 17 00:00:00 2001 From: Robbie Gemmell Date: Fri, 4 Jun 2021 15:05:22 +0100 Subject: [PATCH 4/4] NO-JIRA: remove profiled module definitions which duplicate the base module set, delete empty profile both look to have been unnecessary since Artemis 1.1 via 649edd3a376819312d5e4552a90e83b4dbdc4929 --- pom.xml | 102 -------------------------------------------------------- 1 file changed, 102 deletions(-) diff --git a/pom.xml b/pom.xml index c2d722e643..f82dd196c6 100644 --- a/pom.xml +++ b/pom.xml @@ -1013,63 +1013,15 @@ dev - - artemis-boot - artemis-dto - artemis-web - artemis-cli - artemis-commons - artemis-selector - artemis-core-client - artemis-server - artemis-jms-client - artemis-jms-server - artemis-protocols - artemis-journal - artemis-jdbc-store - artemis-ra - artemis-rest - artemis-service-extensions - artemis-maven-plugin - artemis-jdbc-store - integration/activemq-spring-integration - tests - false false - - distro - - true - - release - artemis-dto - artemis-web - artemis-website - artemis-cli - artemis-commons - artemis-selector - artemis-core-client - artemis-server - artemis-jms-client - artemis-jms-client-all - artemis-jms-server - artemis-journal - artemis-jdbc-store - artemis-ra - artemis-rest - artemis-service-extensions - artemis-maven-plugin - integration/activemq-spring-integration examples - tests - artemis-distribution false @@ -1139,26 +1091,6 @@ tests - - artemis-dto - artemis-web - artemis-website - artemis-cli - artemis-commons - artemis-selector - artemis-core-client - artemis-server - artemis-jms-client - artemis-jms-server - artemis-journal - artemis-jdbc-store - artemis-ra - artemis-rest - artemis-service-extensions - artemis-maven-plugin - integration/activemq-spring-integration - tests - false false @@ -1181,23 +1113,6 @@ fast-tests - - artemis-dto - artemis-cli - artemis-commons - artemis-selector - artemis-core-client - artemis-server - artemis-jms-client - artemis-jms-server - artemis-journal - artemis-jdbc-store - artemis-ra - artemis-service-extensions - artemis-maven-plugin - integration/activemq-spring-integration - tests - false false @@ -1212,23 +1127,6 @@ examples - artemis-dto - artemis-web - artemis-cli - artemis-commons - artemis-selector - artemis-core-client - artemis-server - artemis-jms-client - artemis-jms-server - artemis-journal - artemis-jdbc-store - artemis-ra - artemis-rest - artemis-service-extensions - artemis-maven-plugin - integration/activemq-spring-integration - tests examples