Skip to content

Commit e1fc885

Browse files
Raphael SchweikertRaphael Schweikert
Raphael Schweikert
authored and
Raphael Schweikert
committed
fix: read exported package version from packageinfo file
1 parent e93c801 commit e1fc885

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

spi-fly/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@
154154
</includes>
155155
</configuration>
156156
</plugin>
157+
<plugin>
158+
<groupId>org.codehaus.mojo</groupId>
159+
<artifactId>properties-maven-plugin</artifactId>
160+
<version>1.2.1</version>
161+
</plugin>
157162
</plugins>
158163
</pluginManagement>
159164
<plugins>

spi-fly/spi-fly-static-bundle/pom.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,24 @@
7878

7979
<build>
8080
<plugins>
81+
<plugin>
82+
<groupId>org.codehaus.mojo</groupId>
83+
<artifactId>properties-maven-plugin</artifactId>
84+
<executions>
85+
<execution>
86+
<phase>initialize</phase>
87+
<goals>
88+
<goal>read-project-properties</goal>
89+
</goals>
90+
<configuration>
91+
<files>
92+
<file>../spi-fly-core/src/main/resources/org/apache/aries/spifly/packageinfo</file>
93+
</files>
94+
<keyPrefix>spiFlyPackage.</keyPrefix>
95+
</configuration>
96+
</execution>
97+
</executions>
98+
</plugin>
8199
<plugin>
82100
<groupId>biz.aQute.bnd</groupId>
83101
<artifactId>bnd-maven-plugin</artifactId>
@@ -86,7 +104,7 @@
86104
<bnd><![CDATA[
87105
Bundle-Activator: org.apache.aries.spifly.staticbundle.StaticWeavingActivator
88106
Export-Package: \
89-
org.apache.aries.spifly.*;version=${project.version}
107+
org.apache.aries.spifly.*;version=${spiFlyPackage.version}
90108
-conditionalpackage: \
91109
aQute.bnd.exceptions,\
92110
aQute.bnd.header,\

0 commit comments

Comments
 (0)