From 116406fbbc665f6ea6d8fccf150389d808751642 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Fri, 16 Apr 2021 15:30:36 +0700 Subject: [PATCH] Fix: make sure that source assemblies are attached to build Previously I renamed the source assemblies from the uniform name 'sources' to something more individual like 'aspectjtools-sources', not realising that the magic name 'sources' in combination with the default configuration value 'appendAssemblyId=true' results in an artifact classifier equal to the assembly ID, i.e. 'sources', which is exactly what we need here, but not quite obvious. Therefore, I documented it with comments in both the assemblies and the POMs. Signed-off-by: Alexander Kriegisch --- aspectjmatcher/aspectjmatcher-sources-assembly.xml | 3 ++- aspectjmatcher/pom.xml | 4 ++-- aspectjrt/aspectjrt-sources-assembly.xml | 3 ++- aspectjrt/pom.xml | 6 +++--- aspectjtools/aspectjtools-sources-assembly.xml | 3 ++- aspectjtools/pom.xml | 4 ++-- aspectjweaver/aspectjweaver-sources-assembly.xml | 3 ++- aspectjweaver/pom.xml | 4 ++-- installer/aspectjinstaller-assembly.xml | 3 ++- 9 files changed, 19 insertions(+), 14 deletions(-) diff --git a/aspectjmatcher/aspectjmatcher-sources-assembly.xml b/aspectjmatcher/aspectjmatcher-sources-assembly.xml index c3f925a4a..0425ccbe8 100644 --- a/aspectjmatcher/aspectjmatcher-sources-assembly.xml +++ b/aspectjmatcher/aspectjmatcher-sources-assembly.xml @@ -2,7 +2,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd"> -aspectjmatcher-sources + + sources jar diff --git a/aspectjmatcher/pom.xml b/aspectjmatcher/pom.xml index 3aa998b6c..b183bd3d6 100644 --- a/aspectjmatcher/pom.xml +++ b/aspectjmatcher/pom.xml @@ -103,8 +103,8 @@ single - sources - aspectjmatcher-${project.version} + + true diff --git a/aspectjrt/aspectjrt-sources-assembly.xml b/aspectjrt/aspectjrt-sources-assembly.xml index b4c13e2a9..fc030c3c2 100644 --- a/aspectjrt/aspectjrt-sources-assembly.xml +++ b/aspectjrt/aspectjrt-sources-assembly.xml @@ -2,7 +2,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd"> -aspectjrt-sources + + sources jar diff --git a/aspectjrt/pom.xml b/aspectjrt/pom.xml index 341b83fd6..930ba02ca 100644 --- a/aspectjrt/pom.xml +++ b/aspectjrt/pom.xml @@ -99,14 +99,14 @@ - aspectjrt-src-assembly + aspectjrt-sources-assembly package single - sources - aspectjrt-${project.version} + + true diff --git a/aspectjtools/aspectjtools-sources-assembly.xml b/aspectjtools/aspectjtools-sources-assembly.xml index 7b54c09b2..8317c9f20 100644 --- a/aspectjtools/aspectjtools-sources-assembly.xml +++ b/aspectjtools/aspectjtools-sources-assembly.xml @@ -2,7 +2,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd"> -aspectjtools-sources + + sources jar diff --git a/aspectjtools/pom.xml b/aspectjtools/pom.xml index cac9b9e2f..62cf15ebf 100644 --- a/aspectjtools/pom.xml +++ b/aspectjtools/pom.xml @@ -119,8 +119,8 @@ single - sources - aspectjtools-${project.version} + + true diff --git a/aspectjweaver/aspectjweaver-sources-assembly.xml b/aspectjweaver/aspectjweaver-sources-assembly.xml index e1760dfe5..61d89a71e 100644 --- a/aspectjweaver/aspectjweaver-sources-assembly.xml +++ b/aspectjweaver/aspectjweaver-sources-assembly.xml @@ -2,7 +2,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd"> -aspectjweaver-sources + + sources jar diff --git a/aspectjweaver/pom.xml b/aspectjweaver/pom.xml index 921401691..3552ab630 100644 --- a/aspectjweaver/pom.xml +++ b/aspectjweaver/pom.xml @@ -122,8 +122,8 @@ single - sources - aspectjweaver-${project.version} + + true diff --git a/installer/aspectjinstaller-assembly.xml b/installer/aspectjinstaller-assembly.xml index f7255b345..2a5cfac7b 100644 --- a/installer/aspectjinstaller-assembly.xml +++ b/installer/aspectjinstaller-assembly.xml @@ -3,9 +3,11 @@ xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd"> aspectjinstaller + jar + false @@ -20,7 +22,6 @@ ../aj-build/dist/docs files - ../runtime/target/site/apidocs files/doc/runtime-apidocs -- 2.39.5