mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-26 20:21:33 +01:00
add property to enable bnd resolver on Maven run (#494)
The property `withResolver` binds the `resolve` goal of the `bnd-resolver-maven-plugin` to the `package` phase. Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
This commit is contained in:
parent
53096ba08f
commit
60d51f92c2
35
pom.xml
35
pom.xml
@ -274,8 +274,8 @@ Import-Package: \\
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- Define the version of the baseline plugin we use and avoid failing when no baseline jar exists. (for example
|
||||
before the first release) -->
|
||||
<!-- Define the version of the baseline plugin we use and avoid failing when no baseline jar exists. -->
|
||||
<!-- (for example before the first release) -->
|
||||
<plugin>
|
||||
<groupId>biz.aQute.bnd</groupId>
|
||||
<artifactId>bnd-baseline-maven-plugin</artifactId>
|
||||
@ -473,8 +473,8 @@ Import-Package: \\
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build
|
||||
itself. -->
|
||||
<!-- This plugin's configuration is used to store Eclipse m2e settings only. -->
|
||||
<!-- It has no influence on the Maven build itself. -->
|
||||
<plugin>
|
||||
<groupId>org.eclipse.m2e</groupId>
|
||||
<artifactId>lifecycle-mapping</artifactId>
|
||||
@ -530,6 +530,33 @@ Import-Package: \\
|
||||
<module>itests</module>
|
||||
</modules>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>with-bnd-resolver-resolve</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>withResolver</name>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>biz.aQute.bnd</groupId>
|
||||
<artifactId>bnd-resolver-maven-plugin</artifactId>
|
||||
<version>${bnd.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>resolve</goal>
|
||||
</goals>
|
||||
<phase>package</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<modules>
|
||||
|
Loading…
Reference in New Issue
Block a user