Skip to content

Commit

Permalink
bbottema#288. Add Karaf feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Tino Ojala committed Apr 14, 2023
1 parent 2ecf4f8 commit 68065de
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 1 deletion.
7 changes: 7 additions & 0 deletions modules/karaf-module/karaf-feature/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Compiles simplejavamail into an Apache Karaf feature.

Usage in Karaf simılar to:
```
karaf@root()> repo-add mvn:org.simplejavamail/simplejavamail-karaf-feature/<VERSION>/xml/features
karaf@root()> feature:install simplejavamail-karaf-feature
```
65 changes: 65 additions & 0 deletions modules/karaf-module/karaf-feature/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.simplejavamail</groupId>
<artifactId>karaf-module</artifactId>
<version>8.0.1</version>
</parent>

<artifactId>simplejavamail-karaf-feature</artifactId>
<packaging>feature</packaging>
<name>Simple Java Mail - Karaf feature</name>
<description>Feature descriptor for Apache Karaf</description>

<build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>4.4.3</version>
<extensions>true</extensions>
<configuration>
<excludedArtifactIds>
<excludedArtifactId>slf4j-api</excludedArtifactId>
</excludedArtifactIds>
</configuration>
<executions>
<execution>
<goals>
<goal>features-generate-descriptor</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.simplejavamail</groupId>
<artifactId>core-module</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.simplejavamail</groupId>
<artifactId>simple-java-mail</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
23 changes: 23 additions & 0 deletions modules/karaf-module/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.simplejavamail</groupId>
<artifactId>maven-master-project</artifactId>
<!--suppress MavenPropertyInParent -->
<version>8.0.1</version>
<relativePath>../../</relativePath>
</parent>

<artifactId>karaf-module</artifactId>
<packaging>pom</packaging>
<name>Simple Java Mail - Karaf module</name>

<modules>
<module>karaf-feature</module>
</modules>

</project>
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<module>modules/spring-module</module>
<module>modules/cli-module</module>
<module>modules/jacoco-aggregator-module</module>
<module>modules/karaf-module</module>
</modules>

<dependencies>
Expand Down Expand Up @@ -265,4 +266,4 @@
</build>
</profile>
</profiles>
</project>
</project>

0 comments on commit 68065de

Please sign in to comment.