Skip to content

Commit

Permalink
fix: read exported package version from packageinfo file
Browse files Browse the repository at this point in the history
  • Loading branch information
sabberworm committed May 31, 2024
1 parent e93c801 commit e1fc885
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions spi-fly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.2.1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down
20 changes: 19 additions & 1 deletion spi-fly/spi-fly-static-bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,24 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>../spi-fly-core/src/main/resources/org/apache/aries/spifly/packageinfo</file>
</files>
<keyPrefix>spiFlyPackage.</keyPrefix>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
Expand All @@ -86,7 +104,7 @@
<bnd><![CDATA[
Bundle-Activator: org.apache.aries.spifly.staticbundle.StaticWeavingActivator
Export-Package: \
org.apache.aries.spifly.*;version=${project.version}
org.apache.aries.spifly.*;version=${spiFlyPackage.version}
-conditionalpackage: \
aQute.bnd.exceptions,\
aQute.bnd.header,\
Expand Down

0 comments on commit e1fc885

Please sign in to comment.