Skip to content

Commit

Permalink
Add bnd-run target (#1707)
Browse files Browse the repository at this point in the history
This allows running the demo project from the command line, using the bnd maven plugin.

mvn bnd-run:run

You can also add an agent to remote debug openHAB, and even hotswap :

mvn -D-runjdb=10001 package bnd-run:run

This is very useful when using Intellij IDEA or IDEs other than Eclipse.

Signed-off-by: Gwendal Roulleau <[email protected]>
  • Loading branch information
dalgwen authored Dec 24, 2024
1 parent a0b33ed commit bb1def0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions launch/app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,17 @@
</executions>
</plugin>

<!-- Allow running openHAB demo app from a Maven/bnd task -->
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-run-maven-plugin</artifactId>
<version>${bnd.version}</version>
<configuration>
<includeDependencyManagement>true</includeDependencyManagement>
<bndrun>app.bndrun</bndrun>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
Expand Down Expand Up @@ -301,6 +312,10 @@
</pluginManagement>

<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-run-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
Expand Down

0 comments on commit bb1def0

Please sign in to comment.