This is an automated email from the ASF dual-hosted git repository. alien11689 pushed a commit to branch ARIES-2253-build-blueprint-bundle-with-sources-and-javadoc in repository https://gitbox.apache.org/repos/asf/aries.git
commit 9c209a74ad1040eb10523f3455a55167ce84210c Author: Dominik Przybysz <[email protected]> AuthorDate: Mon Nov 30 20:55:42 2026 +0100 ARIES-2253: Fix empty javadoc and sources for blueprint-bundle --- blueprint/blueprint-bundle/pom.xml | 47 ++++++++++++++++++++++++++++++++++++++ blueprint/blueprint-cm/pom.xml | 18 +++++++++++++++ blueprint/blueprint-core/pom.xml | 13 +++++++++++ 3 files changed, 78 insertions(+) diff --git a/blueprint/blueprint-bundle/pom.xml b/blueprint/blueprint-bundle/pom.xml index 5ec642276..ddf766b9c 100644 --- a/blueprint/blueprint-bundle/pom.xml +++ b/blueprint/blueprint-bundle/pom.xml @@ -112,6 +112,7 @@ <org.apache.aries.quiesce.api.version>1.0.1</org.apache.aries.quiesce.api.version> <org.osgi.service.blueprint.version>1.0.2</org.osgi.service.blueprint.version> <osgi.cmpn.version>4.3.1</osgi.cmpn.version> + <org.osgi.annotation.versioning.version>1.1.2</org.osgi.annotation.versioning.version> <slf4j.version>2.0.20</slf4j.version> </properties> @@ -170,6 +171,18 @@ <version>${asm.version}</version> <scope>test</scope> </dependency> + <dependency> + <groupId>org.osgi</groupId> + <artifactId>osgi.core</artifactId> + <version>${osgi.core.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.osgi</groupId> + <artifactId>org.osgi.annotation.versioning</artifactId> + <version>${org.osgi.annotation.versioning.version}</version> + <scope>provided</scope> + </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>osgi.cmpn</artifactId> @@ -276,6 +289,15 @@ </properties> <build> <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </configuration> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> @@ -305,6 +327,31 @@ </artifactItem> </artifactItems> <outputDirectory>${project.build.directory}/sources</outputDirectory> + <excludes>**/META-INF/NOTICE*,**/META-INF/LICENSE*</excludes> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>add-unpacked-sources-and-resources</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + <goal>add-resource</goal> + </goals> + <configuration> + <sources> + <source>${project.build.directory}/sources</source> + </sources> + <resources> + <resource> + <directory>${project.build.directory}/sources</directory> + </resource> + </resources> </configuration> </execution> </executions> diff --git a/blueprint/blueprint-cm/pom.xml b/blueprint/blueprint-cm/pom.xml index b15cb7fb9..81c421d96 100644 --- a/blueprint/blueprint-cm/pom.xml +++ b/blueprint/blueprint-cm/pom.xml @@ -108,4 +108,22 @@ <scope>provided</scope> </dependency> </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <phase>process-classes</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> </project> diff --git a/blueprint/blueprint-core/pom.xml b/blueprint/blueprint-core/pom.xml index 7db8ea1bc..a7cf543e7 100644 --- a/blueprint/blueprint-core/pom.xml +++ b/blueprint/blueprint-core/pom.xml @@ -274,6 +274,19 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <phase>process-classes</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build>
