Skip to content

Commit

Permalink
proof-of-concept part #2
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <[email protected]>
  • Loading branch information
J-N-K committed Aug 30, 2019
1 parent f1eeadd commit 0fbc20b
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
8 changes: 6 additions & 2 deletions bundles/org.openhab.binding.mail/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
<version>1.5</version>
<scope>provided</scope>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
<scope>provided</scope>
<scope>compile</scope>
</dependency>
</dependencies>

<properties>
<bnd.importpackage>sun.security.util;resolution:=optional</bnd.importpackage>
</properties>

</project>
2 changes: 0 additions & 2 deletions bundles/org.openhab.binding.mail/src/main/feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

<feature name="openhab-binding-mail" description="Mail Binding" version="${project.version}">
<feature>openhab-runtime-base</feature>
<bundle dependency="true">mvn:com.sun.mail/javax.mail/1.6.2</bundle>
<bundle dependency="true">mvn:org.apache.commons/commons-email/1.5</bundle>
<bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.binding.mail/${project.version}</bundle>
</feature>
</features>
2 changes: 1 addition & 1 deletion bundles/org.openhab.binding.snmp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.snmp4j</artifactId>
<version>2.6.3_1</version>
<scope>provided</scope>
<scope>compile</scope>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

<feature name="openhab-binding-snmp" description="SNMP Binding" version="${project.version}">
<feature>openhab-runtime-base</feature>
<bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j/2.6.3_1</bundle>
<bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.binding.snmp/${project.version}</bundle>
</feature>
</features>
28 changes: 26 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ Import-Package: \\
</lifecycleMappingMetadata>
</configuration>
</plugin>

<plugin>
<groupId>org.openhab.tools.sat</groupId>
<artifactId>sat-plugin</artifactId>
Expand Down Expand Up @@ -545,6 +546,7 @@ Import-Package: \\
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand All @@ -564,6 +566,28 @@ Import-Package: \\
</execution>
</executions>
</plugin>

<!-- embed compile time dependencies by copying -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>dependencies</id>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeScope>runtime</includeScope>
<includeTypes>jar</includeTypes>
<excludeGroupIds>javax.activation,org.apache.karaf.features</excludeGroupIds>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -620,7 +644,7 @@ Import-Package: \\
</file>
</activation>
<properties>
<bnd.includeresource>-${.}/../../NOTICE, -${.}/../../*.xsd, ${.}/../../lib/; filter:=*.jar; lib:=true</bnd.includeresource>
<bnd.includeresource>-${.}/../../NOTICE, -${.}/../../*.xsd, ${.}/../../lib/;filter:=*.jar;lib:=true</bnd.includeresource>
<feature.directory>../../src/main/feature/feature.xml</feature.directory>
</properties>
<build>
Expand Down Expand Up @@ -663,7 +687,7 @@ Import-Package: \\
</file>
</activation>
<properties>
<bnd.includeresource>-${.}/NOTICE, -${.}/*.xsd, ${.}/lib/; filter:=*.jar; lib:=true</bnd.includeresource>
<bnd.includeresource>-${.}/NOTICE, -${.}/*.xsd, ${.}/lib/;filter:=*.jar;lib:=true</bnd.includeresource>
</properties>
</profile>

Expand Down

0 comments on commit 0fbc20b

Please sign in to comment.