From dc8a8e9d2f77cf81531af78ec5a07bdc6ab7f324 Mon Sep 17 00:00:00 2001 From: Radek Felcman Date: Mon, 16 Aug 2021 18:03:48 +0200 Subject: [PATCH 1/5] Maven build issue with Maven 3.8.2 Signed-off-by: Radek Felcman --- pom.xml | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index bdf17d63cee..a16e39b3afb 100644 --- a/pom.xml +++ b/pom.xml @@ -1126,11 +1126,6 @@ xml-maven-plugin 1.0.2 - - org.commonjava.maven.plugins - directory-maven-plugin - 0.3.1 - org.codehaus.gmaven groovy-maven-plugin @@ -1218,27 +1219,18 @@ - - org.codehaus.mojo build-helper-maven-plugin From 6cfcd524426d172eda79a38635aa574aeca54ab7 Mon Sep 17 00:00:00 2001 From: Radek Felcman Date: Thu, 2 Sep 2021 10:53:56 +0200 Subject: [PATCH 3/5] Common resources (license files, test properties) assembly in Parent project Signed-off-by: Radek Felcman --- pom.xml | 32 ++++++++++++++++++++++++++ src/main/assembly/common-license.xml | 34 ++++++++++++++++++++++++++++ src/main/assembly/test-defaults.xml | 33 +++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 src/main/assembly/common-license.xml create mode 100644 src/main/assembly/test-defaults.xml diff --git a/pom.xml b/pom.xml index 60ccb49b6c1..c2d674211f5 100644 --- a/pom.xml +++ b/pom.xml @@ -1231,6 +1231,38 @@ + + org.apache.maven.plugins + maven-assembly-plugin + + + license.jar + package + + single + + false + + + src/main/assembly/common-license.xml + + + + + test-defaults.jar + package + + single + + false + + + src/main/assembly/test-defaults.xml + + + + + org.codehaus.mojo build-helper-maven-plugin diff --git a/src/main/assembly/common-license.xml b/src/main/assembly/common-license.xml new file mode 100644 index 00000000000..04077ea109b --- /dev/null +++ b/src/main/assembly/common-license.xml @@ -0,0 +1,34 @@ + + + + + common-license.jar + + jar + + false + + + ${project.basedir} + . + + LICENSE.md + NOTICE.md + + + + \ No newline at end of file diff --git a/src/main/assembly/test-defaults.xml b/src/main/assembly/test-defaults.xml new file mode 100644 index 00000000000..9916c22f714 --- /dev/null +++ b/src/main/assembly/test-defaults.xml @@ -0,0 +1,33 @@ + + + + + test-defaults.jar + + jar + + false + + + ${project.basedir}/etc + etc + + *.properties + + + + \ No newline at end of file From 36cd1236fe9a6186a8f64088a03fb57d880f388c Mon Sep 17 00:00:00 2001 From: Radek Felcman Date: Thu, 2 Sep 2021 21:46:28 +0200 Subject: [PATCH 4/5] Use/consume common resources (license files, test properties) assembly in sub-projects Signed-off-by: Radek Felcman --- bundles/eclipselink/pom.xml | 8 ++ .../src/main/assembly/eclipselink.zip.xml | 29 ++++--- bundles/moxy-standalone/pom.xml | 8 ++ .../src/main/assembly/moxy.xml | 29 ++++--- bundles/others/pom.xml | 8 ++ .../src/main/assembly/common-license.xml | 29 ------- .../eclipselink-plugins-nosql.zip.xml | 20 ++++- .../main/assembly/eclipselink-plugins.zip.xml | 20 ++++- .../assembly/eclipselink-test-src.zip.xml | 24 +++++- pom.xml | 83 ++++++++++++------- src/main/assembly/common-license.xml | 13 ++- src/main/assembly/test-defaults.xml | 6 +- 12 files changed, 179 insertions(+), 98 deletions(-) delete mode 100644 bundles/others/src/main/assembly/common-license.xml diff --git a/bundles/eclipselink/pom.xml b/bundles/eclipselink/pom.xml index 8e30726c632..dd00db8cfcc 100644 --- a/bundles/eclipselink/pom.xml +++ b/bundles/eclipselink/pom.xml @@ -185,6 +185,14 @@ + + org.eclipse.persistence + org.eclipse.persistence.parent + ${project.version} + zip + common-license.zip + provided + org.eclipse.persistence org.eclipse.persistence.asm diff --git a/bundles/eclipselink/src/main/assembly/eclipselink.zip.xml b/bundles/eclipselink/src/main/assembly/eclipselink.zip.xml index 6bea3bf79a5..72e1a718c98 100644 --- a/bundles/eclipselink/src/main/assembly/eclipselink.zip.xml +++ b/bundles/eclipselink/src/main/assembly/eclipselink.zip.xml @@ -1,7 +1,7 @@ + + false + provided + eclipselink/ + + ${project.groupId}:org.eclipse.persistence.parent:zip:common-license.zip + + true + + + about.html + license.html + readme.html + + + true eclipselink/jlib/ @@ -113,16 +130,6 @@ - - - ${project.root.location} - eclipselink/ - - about.html - license.html - readme.html - - ${project.build.scriptSourceDirectory} diff --git a/bundles/moxy-standalone/pom.xml b/bundles/moxy-standalone/pom.xml index 1017e5c0a8d..1d91285f800 100644 --- a/bundles/moxy-standalone/pom.xml +++ b/bundles/moxy-standalone/pom.xml @@ -35,6 +35,14 @@ + + org.eclipse.persistence + org.eclipse.persistence.parent + ${project.version} + zip + common-license.zip + provided + org.eclipse.persistence org.eclipse.persistence.moxy diff --git a/bundles/moxy-standalone/src/main/assembly/moxy.xml b/bundles/moxy-standalone/src/main/assembly/moxy.xml index ecc1893720d..b500bfc3c33 100644 --- a/bundles/moxy-standalone/src/main/assembly/moxy.xml +++ b/bundles/moxy-standalone/src/main/assembly/moxy.xml @@ -1,7 +1,7 @@ + + false + provided + moxy + + ${project.groupId}:org.eclipse.persistence.parent:zip:common-license.zip + + true + + + about.html + license.html + readme.html + + + false moxy/jlib/ @@ -29,16 +46,6 @@ - - - ${project.root.location} - moxy/ - - about.html - license.html - readme.html - - ${generated.res.dir}/xsds diff --git a/bundles/others/pom.xml b/bundles/others/pom.xml index 9cfafc8ae99..315370eb0e6 100644 --- a/bundles/others/pom.xml +++ b/bundles/others/pom.xml @@ -50,6 +50,14 @@ + + org.eclipse.persistence + org.eclipse.persistence.parent + ${project.version} + zip + common-license.zip + provided + org.eclipse.persistence eclipselink diff --git a/bundles/others/src/main/assembly/common-license.xml b/bundles/others/src/main/assembly/common-license.xml deleted file mode 100644 index 7fafd61dc8c..00000000000 --- a/bundles/others/src/main/assembly/common-license.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - ${project.root.location} - . - - about.html - license.html - readme.html - - - - \ No newline at end of file diff --git a/bundles/others/src/main/assembly/eclipselink-plugins-nosql.zip.xml b/bundles/others/src/main/assembly/eclipselink-plugins-nosql.zip.xml index d6e1ee22b05..b37af235e61 100644 --- a/bundles/others/src/main/assembly/eclipselink-plugins-nosql.zip.xml +++ b/bundles/others/src/main/assembly/eclipselink-plugins-nosql.zip.xml @@ -21,10 +21,24 @@ zip false - - src/main/assembly/common-license.xml - + + + false + provided + . + + ${project.groupId}:org.eclipse.persistence.parent:zip:common-license.zip + + true + + + about.html + license.html + readme.html + + + org.eclipse.persistence:org.eclipse.persistence.nosql diff --git a/bundles/others/src/main/assembly/eclipselink-plugins.zip.xml b/bundles/others/src/main/assembly/eclipselink-plugins.zip.xml index 0999d05f25e..3faa3f17fb7 100644 --- a/bundles/others/src/main/assembly/eclipselink-plugins.zip.xml +++ b/bundles/others/src/main/assembly/eclipselink-plugins.zip.xml @@ -21,10 +21,24 @@ zip false - - src/main/assembly/common-license.xml - + + + false + provided + . + + ${project.groupId}:org.eclipse.persistence.parent:zip:common-license.zip + + true + + + about.html + license.html + readme.html + + + ${artifact.artifactId}_${release.version}.${build.qualifier}.${artifact.extension} diff --git a/bundles/others/src/main/assembly/eclipselink-test-src.zip.xml b/bundles/others/src/main/assembly/eclipselink-test-src.zip.xml index c5309d9fc35..70727e26ae3 100644 --- a/bundles/others/src/main/assembly/eclipselink-test-src.zip.xml +++ b/bundles/others/src/main/assembly/eclipselink-test-src.zip.xml @@ -1,7 +1,7 @@ + + false + provided + . + + ${project.groupId}:org.eclipse.persistence.parent:zip:common-license.zip + + true + + + about.html + license.html + readme.html + + + + diff --git a/pom.xml b/pom.xml index c2d674211f5..29a5d85d4b1 100644 --- a/pom.xml +++ b/pom.xml @@ -111,6 +111,7 @@ ${project.version}.${build.qualifier} test-reports test-summary + ${project.build.directory}/license LICENSE.md, NOTICE.md @@ -137,7 +138,7 @@ ${user.home}/${test.derby.properties.file} ${test.derby.properties.file} - ${project.root.location}/etc + ${project.build.directory}/test-default-properties derby false @@ -1205,39 +1206,13 @@ - - - org.codehaus.gmaven - groovy-maven-plugin - - - find-project-root - validate - - execute - - - - - - - - - org.apache.maven.plugins maven-assembly-plugin - license.jar - package + common-license.zip + generate-resources single @@ -1249,8 +1224,8 @@ - test-defaults.jar - package + test-defaults.zip + initialize single @@ -1263,6 +1238,50 @@ + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-legal-resource + generate-resources + + unpack + + + + + ${project.groupId} + org.eclipse.persistence.parent + ${project.version} + common-license.zip + zip + ${project.build.licenceResourceDirectory} + + + + + + unpack-test-properties + initialize + + unpack + + + + + ${project.groupId} + org.eclipse.persistence.parent + ${project.version} + test-defaults.zip + zip + ${test.properties.default.directory} + + + + + + org.codehaus.mojo build-helper-maven-plugin @@ -1315,7 +1334,7 @@ - ${project.root.location} + ${project.build.licenceResourceDirectory} ${common.licenceFiles} META-INF diff --git a/src/main/assembly/common-license.xml b/src/main/assembly/common-license.xml index 04077ea109b..bbd4bb09c48 100644 --- a/src/main/assembly/common-license.xml +++ b/src/main/assembly/common-license.xml @@ -16,9 +16,9 @@ - common-license.jar + common-license.zip - jar + zip false @@ -30,5 +30,14 @@ NOTICE.md + + ${project.basedir}/features + . + + about.html + license.html + readme.html + + \ No newline at end of file diff --git a/src/main/assembly/test-defaults.xml b/src/main/assembly/test-defaults.xml index 9916c22f714..8d4899e4f30 100644 --- a/src/main/assembly/test-defaults.xml +++ b/src/main/assembly/test-defaults.xml @@ -16,15 +16,15 @@ - test-defaults.jar + test-defaults.zip - jar + zip false ${project.basedir}/etc - etc + . *.properties From 5e41851b7c0e82666afa00ba09fe5c39d3fb988d Mon Sep 17 00:00:00 2001 From: Radek Felcman Date: Fri, 3 Sep 2021 11:48:21 +0200 Subject: [PATCH 5/5] Reflect PR comments - there are stil SDO test errors Signed-off-by: Radek Felcman --- bundles/eclipselink/pom.xml | 2 +- .../src/main/assembly/eclipselink.zip.xml | 6 ++---- bundles/moxy-standalone/pom.xml | 2 +- bundles/moxy-standalone/src/main/assembly/moxy.xml | 6 ++---- bundles/others/pom.xml | 2 +- .../assembly/eclipselink-plugins-nosql.zip.xml | 6 ++---- .../src/main/assembly/eclipselink-plugins.zip.xml | 6 ++---- .../src/main/assembly/eclipselink-test-src.zip.xml | 6 ++---- pom.xml | 14 ++++++-------- src/main/assembly/common-license.xml | 4 ++-- src/main/assembly/test-defaults.xml | 2 +- 11 files changed, 22 insertions(+), 34 deletions(-) diff --git a/bundles/eclipselink/pom.xml b/bundles/eclipselink/pom.xml index dd00db8cfcc..5320168d23d 100644 --- a/bundles/eclipselink/pom.xml +++ b/bundles/eclipselink/pom.xml @@ -190,7 +190,7 @@ org.eclipse.persistence.parent ${project.version} zip - common-license.zip + common-license provided diff --git a/bundles/eclipselink/src/main/assembly/eclipselink.zip.xml b/bundles/eclipselink/src/main/assembly/eclipselink.zip.xml index 72e1a718c98..a1469b17812 100644 --- a/bundles/eclipselink/src/main/assembly/eclipselink.zip.xml +++ b/bundles/eclipselink/src/main/assembly/eclipselink.zip.xml @@ -28,14 +28,12 @@ provided eclipselink/ - ${project.groupId}:org.eclipse.persistence.parent:zip:common-license.zip + ${project.groupId}:org.eclipse.persistence.parent:zip:common-license true - about.html - license.html - readme.html + *.html diff --git a/bundles/moxy-standalone/pom.xml b/bundles/moxy-standalone/pom.xml index 1d91285f800..968332f1121 100644 --- a/bundles/moxy-standalone/pom.xml +++ b/bundles/moxy-standalone/pom.xml @@ -40,7 +40,7 @@ org.eclipse.persistence.parent ${project.version} zip - common-license.zip + common-license provided diff --git a/bundles/moxy-standalone/src/main/assembly/moxy.xml b/bundles/moxy-standalone/src/main/assembly/moxy.xml index b500bfc3c33..67768b1f864 100644 --- a/bundles/moxy-standalone/src/main/assembly/moxy.xml +++ b/bundles/moxy-standalone/src/main/assembly/moxy.xml @@ -28,14 +28,12 @@ provided moxy - ${project.groupId}:org.eclipse.persistence.parent:zip:common-license.zip + ${project.groupId}:org.eclipse.persistence.parent:zip:common-license true - about.html - license.html - readme.html + *.html diff --git a/bundles/others/pom.xml b/bundles/others/pom.xml index 315370eb0e6..a27aead21c8 100644 --- a/bundles/others/pom.xml +++ b/bundles/others/pom.xml @@ -55,7 +55,7 @@ org.eclipse.persistence.parent ${project.version} zip - common-license.zip + common-license provided diff --git a/bundles/others/src/main/assembly/eclipselink-plugins-nosql.zip.xml b/bundles/others/src/main/assembly/eclipselink-plugins-nosql.zip.xml index b37af235e61..34946e753a9 100644 --- a/bundles/others/src/main/assembly/eclipselink-plugins-nosql.zip.xml +++ b/bundles/others/src/main/assembly/eclipselink-plugins-nosql.zip.xml @@ -28,14 +28,12 @@ provided . - ${project.groupId}:org.eclipse.persistence.parent:zip:common-license.zip + ${project.groupId}:org.eclipse.persistence.parent:zip:common-license true - about.html - license.html - readme.html + *.html diff --git a/bundles/others/src/main/assembly/eclipselink-plugins.zip.xml b/bundles/others/src/main/assembly/eclipselink-plugins.zip.xml index 3faa3f17fb7..c0f3f8a0900 100644 --- a/bundles/others/src/main/assembly/eclipselink-plugins.zip.xml +++ b/bundles/others/src/main/assembly/eclipselink-plugins.zip.xml @@ -28,14 +28,12 @@ provided . - ${project.groupId}:org.eclipse.persistence.parent:zip:common-license.zip + ${project.groupId}:org.eclipse.persistence.parent:zip:common-license true - about.html - license.html - readme.html + *.html diff --git a/bundles/others/src/main/assembly/eclipselink-test-src.zip.xml b/bundles/others/src/main/assembly/eclipselink-test-src.zip.xml index 70727e26ae3..fea18895dd1 100644 --- a/bundles/others/src/main/assembly/eclipselink-test-src.zip.xml +++ b/bundles/others/src/main/assembly/eclipselink-test-src.zip.xml @@ -28,14 +28,12 @@ provided . - ${project.groupId}:org.eclipse.persistence.parent:zip:common-license.zip + ${project.groupId}:org.eclipse.persistence.parent:zip:common-license true - about.html - license.html - readme.html + *.html diff --git a/pom.xml b/pom.xml index 29a5d85d4b1..7d9207b99b6 100644 --- a/pom.xml +++ b/pom.xml @@ -113,8 +113,6 @@ test-summary ${project.build.directory}/license - - LICENSE.md, NOTICE.md src/it/ @@ -1211,7 +1209,7 @@ maven-assembly-plugin - common-license.zip + common-license generate-resources single @@ -1224,7 +1222,7 @@ - test-defaults.zip + test-defaults initialize single @@ -1254,7 +1252,7 @@ ${project.groupId} org.eclipse.persistence.parent ${project.version} - common-license.zip + common-license zip ${project.build.licenceResourceDirectory} @@ -1273,7 +1271,7 @@ ${project.groupId} org.eclipse.persistence.parent ${project.version} - test-defaults.zip + test-defaults zip ${test.properties.default.directory} @@ -1334,8 +1332,8 @@ - ${project.build.licenceResourceDirectory} - ${common.licenceFiles} + ${project.build.licenceResourceDirectory}/md + * META-INF diff --git a/src/main/assembly/common-license.xml b/src/main/assembly/common-license.xml index bbd4bb09c48..8208489bee7 100644 --- a/src/main/assembly/common-license.xml +++ b/src/main/assembly/common-license.xml @@ -16,7 +16,7 @@ - common-license.zip + common-license zip @@ -24,7 +24,7 @@ ${project.basedir} - . + md LICENSE.md NOTICE.md diff --git a/src/main/assembly/test-defaults.xml b/src/main/assembly/test-defaults.xml index 8d4899e4f30..f2af1515f7a 100644 --- a/src/main/assembly/test-defaults.xml +++ b/src/main/assembly/test-defaults.xml @@ -16,7 +16,7 @@ - test-defaults.zip + test-defaults zip