From 1237c3c810a698753e1018db6c6bdeab8391943a Mon Sep 17 00:00:00 2001 From: alandavis Date: Thu, 29 Apr 2021 12:34:41 +0100 Subject: [PATCH 1/6] Simplify poms 1 Upgrade maven-surefire-plugin 2.22.1 -> 2.22.2 Upgrade maven-jar-plugin 3.1.0 (in ags) to -> 3.2.0 (was in repo) Upgrade alfresco-maven-plugin 2.1.1 (ags), 3.0.1 (c-pack) -> 4.0.1 (was in e-pack) swagger-ui.version 3.38 moved to community-repo stripped out java versions from ags poms alfresco-maven-plugin removed snapshotToTimestamp as we now use releases in ags moved project...Encoding to the 2 top level ags poms - did not want to try system wide - too big a change [ags] --- amps/ags/pom.xml | 30 ------------------- .../rm-community-rest-api-explorer/pom.xml | 2 -- pom.xml | 20 +++++++++++++ 3 files changed, 20 insertions(+), 32 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 6341a0871b..7ce9912946 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -38,9 +38,6 @@ true 3.2.2 false - 11 - ${java.version} - ${java.version} ${java.version} 1.9.1 3.8.0 @@ -252,7 +249,6 @@ maven-install-plugin - 2.5.2 default-install @@ -353,35 +349,10 @@ - - maven-surefire-plugin - 2.22.1 - - - --illegal-access=permit - - - - - maven-install-plugin - 2.5.2 - - - maven-jar-plugin - 3.1.0 - - - maven-assembly-plugin - 3.1.0 - org.alfresco.maven.plugin alfresco-maven-plugin - 2.1.1 true - - true - maven-compiler-plugin @@ -604,7 +575,6 @@ org.alfresco.maven.plugin alfresco-maven-plugin - 2.1.1 diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index ea502f70e8..1d0702ba78 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -12,8 +12,6 @@ false - UTF-8 - UTF-8 diff --git a/pom.xml b/pom.xml index 4dc130f93a..561109c720 100644 --- a/pom.xml +++ b/pom.xml @@ -85,6 +85,7 @@ 5.16.1 1.2.5 4.0.3 + 3.38.0 2.3.3 2.3.3 @@ -824,6 +825,25 @@ docker-maven-plugin 0.34.1 + + maven-surefire-plugin + 2.22.2 + + true + alphabetical + + --illegal-access=permit + + + + + org.alfresco.maven.plugin + alfresco-maven-plugin + + true + ${project.build.directory}/${project.build.finalName} + + maven-jar-plugin 3.2.0 From 66eae76a753c31c1f0d0d4f30541573bb71719d3 Mon Sep 17 00:00:00 2001 From: alandavis Date: Thu, 29 Apr 2021 14:09:45 +0100 Subject: [PATCH 2/6] Undo alfresco-maven-plugin change in last commit - build failures --- amps/ags/pom.xml | 2 ++ pom.xml | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 7ce9912946..69a48fa295 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -352,6 +352,7 @@ org.alfresco.maven.plugin alfresco-maven-plugin + 2.1.1 true @@ -575,6 +576,7 @@ org.alfresco.maven.plugin alfresco-maven-plugin + 2.1.1 diff --git a/pom.xml b/pom.xml index 561109c720..49be0916eb 100644 --- a/pom.xml +++ b/pom.xml @@ -836,14 +836,6 @@ - - org.alfresco.maven.plugin - alfresco-maven-plugin - - true - ${project.build.directory}/${project.build.finalName} - - maven-jar-plugin 3.2.0 From c592fd7c0253f7c77c745fc7783bfb739d703e95 Mon Sep 17 00:00:00 2001 From: alandavis Date: Thu, 29 Apr 2021 17:36:26 +0100 Subject: [PATCH 3/6] Fix: [WARNING] Reporting configuration should be done in section,... --- amps/ags/pom.xml | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 69a48fa295..5c108d3aef 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -282,14 +282,6 @@ site - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - - - default-deploy @@ -297,24 +289,8 @@ deploy - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - - - @@ -644,6 +620,15 @@ + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + + From 79017a60552f7733e6df1deef4637684e4b2c8a0 Mon Sep 17 00:00:00 2001 From: alandavis Date: Fri, 30 Apr 2021 14:36:19 +0100 Subject: [PATCH 4/6] Move common ags vars to community-repo [ags] --- amps/ags/pom.xml | 55 ----------------------------------------- packaging/war/pom.xml | 1 - pom.xml | 57 ++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 56 insertions(+), 57 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index 5c108d3aef..d955748358 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -16,62 +16,10 @@ - /alfresco - ${session.executionRootDirectory}/alf_data_dev - org.gjt.mm.mysql.Driver - alf_dev - AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0;IGNORECASE=TRUE - alfresco - jdbc:mysql://${alfresco.db.host}:${alfresco.db.port}/${alfresco.db.name} - alfresco - 8.15 - 7.0.0 - - 7.0.0 - - 61616 - 5672 - 3.7.0 - /share - - 3.1.0 true - 3.2.2 - false - ${java.version} - 1.9.1 - 3.8.0 - 3.0.0-M2 - 3.1.0 - 8080 - - 2.12.1 - 2.12.1 - 0.34.1 - 1.10.19 - UTF-8 UTF-8 - -Xmx1024m -XX:MaxPermSize=256m -Duser.language=en -Dcom.sun.management.jmxremote - - true - false - - ${project.build.directory}/${project.build.finalName}-war - src/main/amp - ../${project.build.finalName} true - ${project.build.directory}/ - WARN - ** - src/main/properties/local - ** - src/test/properties/local - - 2.4.0-b180830.0359 - 3.0.0-M4 - 4.0.1 - 1.19 @@ -218,7 +166,6 @@ maven-javadoc-plugin - ${maven.javadoc.version} none @@ -541,7 +488,6 @@ maven-war-plugin - ${maven.war.plugin.version} @@ -676,7 +622,6 @@ maven-javadoc-plugin - ${maven.javadoc.version} com.docflex.javadoc.Doclet ${project.build.directory}/docflex-javadoc-${docflex.version}/lib/docflex-javadoc.jar diff --git a/packaging/war/pom.xml b/packaging/war/pom.xml index cbe5cd465a..1e8f49c69f 100644 --- a/packaging/war/pom.xml +++ b/packaging/war/pom.xml @@ -183,7 +183,6 @@ maven-war-plugin - 3.3.1 diff --git a/pom.xml b/pom.xml index 49be0916eb..a67659827f 100644 --- a/pom.xml +++ b/pom.xml @@ -38,6 +38,8 @@ 11 11 11 + 3.2.2 + 3.2.0 ${project.build.directory}/alf_data @@ -112,6 +114,55 @@ 1.6 1.5 2.6 + + + + 8.15 + 7.0.0 + + 7.0.0 + + 5.15.8 + 61616 + 5672 + 3.7.0 + /share + + ${java.version} + + 1.9.1 + 3.8.0 + 3.0.0-M2 + 3.1.0 + 8080 + + 2.12.1 + 2.12.1 + 0.34.1 + 1.10.19 + + 42.2.16 + 5432 + 5.1.40 + 3306 + + 5431 + + true + false + + ${project.build.directory}/${project.build.finalName}-war + src/main/amp + ../${project.build.finalName} + ** + src/main/properties/local + ** + src/test/properties/local + + 2.4.0-b180830.0359 + 3.0.0-M4 + 4.0.1 + 1.19 @@ -840,10 +891,14 @@ maven-jar-plugin 3.2.0 + + maven-war-plugin + ${maven.war.plugin.version} + org.apache.maven.plugins maven-javadoc-plugin - 3.2.0 + ${maven.javadoc.plugin.version} org.apache.maven.plugins From 17ed9181c89a1d04b632b68e93f6d57bcaa711b5 Mon Sep 17 00:00:00 2001 From: alandavis Date: Fri, 30 Apr 2021 16:42:43 +0100 Subject: [PATCH 5/6] alfresco.api-explorer.version 7.0.0 + alfresco.maven-plugin.version 2.2.0 [ags] --- amps/ags/pom.xml | 8 +------- .../rm-community-rest-api-explorer/pom.xml | 2 +- pom.xml | 14 +++++++++++++- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index d955748358..aa7fee8de1 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -272,12 +272,6 @@ - - org.alfresco.maven.plugin - alfresco-maven-plugin - 2.1.1 - true - maven-compiler-plugin ${maven.compiler.version} @@ -498,7 +492,7 @@ org.alfresco.maven.plugin alfresco-maven-plugin - 2.1.1 + ${alfresco.maven-plugin.version} diff --git a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml index 1d0702ba78..1993ca3f96 100644 --- a/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml +++ b/amps/ags/rm-community/rm-community-rest-api-explorer/pom.xml @@ -66,7 +66,7 @@ org.alfresco api-explorer - ${api.explorer.version} + ${alfresco.api-explorer.version} war diff --git a/pom.xml b/pom.xml index a67659827f..945b31f1a9 100644 --- a/pom.xml +++ b/pom.xml @@ -102,6 +102,9 @@ 3.2.1 1.4.0 + 7.0.0 + 2.2.0 + 42.2.19 8.0.23 @@ -118,7 +121,6 @@ 8.15 - 7.0.0 7.0.0 @@ -910,6 +912,16 @@ maven-dependency-plugin 3.1.2 + + maven-assembly-plugin + 3.3.0 + + + org.alfresco.maven.plugin + alfresco-maven-plugin + ${alfresco.maven-plugin.version} + true + From 6ddf2afb0b0fb0a3946d6a4c4a4ee29a55d12675 Mon Sep 17 00:00:00 2001 From: alandavis Date: Sat, 1 May 2021 10:47:03 +0100 Subject: [PATCH 6/6] common versions pt1 --- amps/ags/pom.xml | 98 ++++++++----------- amps/ags/rm-community/pom.xml | 25 ----- .../rm-community/rm-community-repo/pom.xml | 21 +--- pom.xml | 75 ++++++-------- 4 files changed, 74 insertions(+), 145 deletions(-) diff --git a/amps/ags/pom.xml b/amps/ags/pom.xml index aa7fee8de1..2c4e8de8d0 100644 --- a/amps/ags/pom.xml +++ b/amps/ags/pom.xml @@ -17,72 +17,56 @@ true + + 1.9.1 + 3.8.0 + 3.0.0-M2 + 3.1.0 + 8080 + UTF-8 UTF-8 + + true + false + + ${project.build.directory}/${project.build.finalName}-war + src/main/amp + ../${project.build.finalName} true + ** + src/main/properties/local + ** + src/test/properties/local - - - - org.mockito - mockito-all - ${mockito.version} - - - org.alfresco.surf - spring-webscripts - ${alfresco-spring-webscripts.version} - tests - - - postgresql - postgresql - ${alfresco.postgres.version} - - - mysql - mysql-connector-java - ${dependency.mysql.version} - - - - - - junit - junit - 4.13.2 - test - - javax.xml.bind - jaxb-api - ${javax-jaxb.version} + jakarta.jws + jakarta.jws-api provided - - org.apache.camel - camel-mock - ${camel.mock.version} - test - + + + + + + - - com.sun.xml.bind - jaxb-impl - ${javax-jaxb-impl.version} - provided - + + + + + - - org.apache.bcel - bcel - 6.2.99 - provided - + + + + + + @@ -123,7 +107,7 @@ ags.module.repo.version.min - ${alfresco.min.version} + ${amp.min.version} (\d+)\.(\d+).* $1.$2 false @@ -287,8 +271,8 @@ testCompile - ${testJavaVersion} - ${testJavaVersion} + ${java.version} + ${java.version} @@ -487,7 +471,7 @@ org.apache.commons commons-compress - ${apache-compress.version} + ${dependency.apache-compress.version} org.alfresco.maven.plugin diff --git a/amps/ags/rm-community/pom.xml b/amps/ags/rm-community/pom.xml index a83000e57a..2fdcfcf9a8 100644 --- a/amps/ags/rm-community/pom.xml +++ b/amps/ags/rm-community/pom.xml @@ -28,31 +28,6 @@ spring-test ${dependency.spring.version} - - com.fasterxml.jackson.core - jackson-core - ${jackson.version} - - - com.fasterxml.jackson.core - jackson-annotations - ${jackson.version} - - - com.fasterxml.jackson.core - jackson-databind - ${jackson-databind.version} - - - com.fasterxml.jackson.datatype - jackson-datatype-joda - ${jackson.version} - - - com.fasterxml.jackson.dataformat - jackson-dataformat-yaml - ${jackson.version} - diff --git a/amps/ags/rm-community/rm-community-repo/pom.xml b/amps/ags/rm-community/rm-community-repo/pom.xml index a358e10a02..3e352d91fd 100644 --- a/amps/ags/rm-community/rm-community-repo/pom.xml +++ b/amps/ags/rm-community/rm-community-repo/pom.xml @@ -12,24 +12,7 @@ - ${basedir}/target/alf_test_data - org.alfresco.repo.domain.dialect.MySQLInnoDBDialect - alfresco - alfresco - alfresco - localhost - alfresco-test - - 5.7.23 - 3306 - 3307 - - 5432 - - 5431 - alfresco-platform - 9.1-901.jdbc4 alfresco/alfresco-governance-repository-community @@ -99,7 +82,7 @@ test - postgresql + org.postgresql postgresql test @@ -563,7 +546,7 @@ - mysql:${mysql.version} + mysql:${dependency.mysql-image.version} ${mysql.tests.port}:${mysql.port} diff --git a/pom.xml b/pom.xml index 945b31f1a9..fb4567c9b7 100644 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,7 @@ 1 0 + ${acs.version.major}.0.0 Community community @@ -65,6 +66,7 @@ 8.18 1.68 3.8.0 + 1.10.19 20210307 1.4-DBCP330 2.8.0 @@ -85,6 +87,7 @@ 3.4.1.Final 3.7.1 5.16.1 + 1.20 1.2.5 4.0.3 3.38.0 @@ -105,9 +108,9 @@ 7.0.0 2.2.0 - 42.2.19 8.0.23 + 8 2.7.2 3.0.44 3.3.0 @@ -119,52 +122,20 @@ 2.6 - - 8.15 - - 7.0.0 - - 5.15.8 61616 5672 - 3.7.0 - /share - - ${java.version} - - 1.9.1 - 3.8.0 - 3.0.0-M2 - 3.1.0 - 8080 - - 2.12.1 - 2.12.1 - 0.34.1 - 1.10.19 - - 42.2.16 5432 - 5.1.40 + 5431 3306 - - 5431 + 3307 - true - false - - ${project.build.directory}/${project.build.finalName}-war - src/main/amp - ../${project.build.finalName} - ** - src/main/properties/local - ** - src/test/properties/local - - 2.4.0-b180830.0359 - 3.0.0-M4 - 4.0.1 - 1.19 + ${basedir}/target/alf_test_data + org.alfresco.repo.domain.dialect.MySQLInnoDBDialect + alfresco + alfresco + alfresco + localhost + alfresco-test @@ -528,6 +499,16 @@ jackson-databind ${dependency.jackson-databind.version} + + com.fasterxml.jackson.datatype + jackson-datatype-joda + ${dependency.jackson.version} + + + com.fasterxml.jackson.dataformat + jackson-dataformat-yaml + ${dependency.jackson.version} + com.fasterxml.jackson.core jackson-annotations @@ -661,7 +642,7 @@ org.apache.commons commons-compress - 1.20 + ${dependency.apache-compress.version} org.apache.commons @@ -750,7 +731,7 @@ junit junit - 4.13.1 + 4.13.2 test @@ -759,6 +740,12 @@ ${dependency.antlr.version} test + + org.mockito + mockito-all + ${dependency.mockito-all.version} + test + org.mockito mockito-core