Skip to content

Commit 50634ea

Browse files
committed
Commit of vertx on Karaf
This includes, Vertx and Bus as service A customized shell to show verticles A WhiteBoard Extender to register verticles as services A Karaf Feature File A Karaf custom Distribution for easy testing
1 parent 1012d40 commit 50634ea

File tree

27 files changed

+1485
-0
lines changed

27 files changed

+1485
-0
lines changed

.gitignore

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
2+
# Created by https://www.gitignore.io/api/java,eclipse,intellij
3+
4+
### Java ###
5+
*.class
6+
7+
# Mobile Tools for Java (J2ME)
8+
.mtj.tmp/
9+
10+
# Package Files #
11+
*.jar
12+
*.war
13+
*.ear
14+
15+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
16+
hs_err_pid*
17+
18+
19+
### Eclipse ###
20+
21+
.metadata
22+
bin/
23+
tmp/
24+
*.tmp
25+
*.bak
26+
*.swp
27+
*~.nib
28+
local.properties
29+
.settings/
30+
.loadpath
31+
.recommenders
32+
33+
# Eclipse Core
34+
.project
35+
36+
# External tool builders
37+
.externalToolBuilders/
38+
39+
# Locally stored "Eclipse launch configurations"
40+
*.launch
41+
42+
# PyDev specific (Python IDE for Eclipse)
43+
*.pydevproject
44+
45+
# CDT-specific (C/C++ Development Tooling)
46+
.cproject
47+
48+
# JDT-specific (Eclipse Java Development Tools)
49+
.classpath
50+
51+
# Java annotation processor (APT)
52+
.factorypath
53+
54+
# PDT-specific (PHP Development Tools)
55+
.buildpath
56+
57+
# sbteclipse plugin
58+
.target
59+
60+
# Tern plugin
61+
.tern-project
62+
63+
# TeXlipse plugin
64+
.texlipse
65+
66+
# STS (Spring Tool Suite)
67+
.springBeans
68+
69+
# Code Recommenders
70+
.recommenders/
71+
72+
73+
### Intellij ###
74+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
75+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
76+
77+
# User-specific stuff:
78+
.idea/workspace.xml
79+
.idea/tasks.xml
80+
.idea/dictionaries
81+
.idea/vcs.xml
82+
.idea/jsLibraryMappings.xml
83+
84+
# Sensitive or high-churn files:
85+
.idea/dataSources.ids
86+
.idea/dataSources.xml
87+
.idea/dataSources.local.xml
88+
.idea/sqlDataSources.xml
89+
.idea/dynamic.xml
90+
.idea/uiDesigner.xml
91+
92+
# Gradle:
93+
.idea/gradle.xml
94+
.idea/libraries
95+
96+
# Mongo Explorer plugin:
97+
.idea/mongoSettings.xml
98+
99+
## File-based project format:
100+
*.iws
101+
102+
## Plugin-specific files:
103+
104+
# IntelliJ
105+
/out/
106+
107+
# mpeltonen/sbt-idea plugin
108+
.idea_modules/
109+
110+
# JIRA plugin
111+
atlassian-ide-plugin.xml
112+
113+
# Crashlytics plugin (for Android Studio and IntelliJ)
114+
com_crashlytics_export_strings.xml
115+
crashlytics.properties
116+
crashlytics-build.properties
117+
fabric.properties
118+
119+
### Intellij Patch ###
120+
*.iml
121+

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Vertex example project running on Apache Karaf
2+
3+
This is a simple sample showing how to run Vertx applications on Apache Karaf.
4+
5+
## a sample vertx application
6+
7+
## a specialized verx feature definition
8+
for easier deployment of vertx on Apache Karaf.

Vertx-Exampl-ITest/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target/

Vertx-Exampl-ITest/pom.xml

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<artifactId>vertx-parent</artifactId>
7+
<groupId>de.nierbeck.example.vertx</groupId>
8+
<version>0.1.0-SNAPSHOT</version>
9+
</parent>
10+
11+
<artifactId>Vertx-Exampl-ITest</artifactId>
12+
13+
<properties>
14+
<pax.exam.version>4.7.0</pax.exam.version>
15+
<pax.url.version>2.1.0</pax.url.version>
16+
<logback.version>1.0.4</logback.version>
17+
<slf4j.version>1.7.4</slf4j.version>
18+
<junit.version>4.11</junit.version>
19+
</properties>
20+
21+
<dependencies>
22+
<dependency>
23+
<groupId>io.vertx</groupId>
24+
<artifactId>vertx-core</artifactId>
25+
</dependency>
26+
27+
<dependency>
28+
<groupId>junit</groupId>
29+
<artifactId>junit</artifactId>
30+
<scope>test</scope>
31+
<version>${junit.version}</version>
32+
</dependency>
33+
34+
<!-- Pax Exam Dependencies -->
35+
<dependency>
36+
<groupId>org.ops4j.pax.exam</groupId>
37+
<artifactId>pax-exam-junit4</artifactId>
38+
<version>${pax.exam.version}</version>
39+
<scope>test</scope>
40+
</dependency>
41+
42+
<dependency>
43+
<groupId>org.ops4j.pax.exam</groupId>
44+
<artifactId>pax-exam-invoker-junit</artifactId>
45+
<version>${pax.exam.version}</version>
46+
<scope>test</scope>
47+
</dependency>
48+
49+
<!-- Karaf Container -->
50+
<dependency>
51+
<groupId>org.ops4j.pax.exam</groupId>
52+
<artifactId>pax-exam-container-karaf</artifactId>
53+
<version>${pax.exam.version}</version>
54+
<scope>test</scope>
55+
</dependency>
56+
57+
<dependency>
58+
<groupId>org.ops4j.pax.exam</groupId>
59+
<artifactId>pax-exam-inject</artifactId>
60+
<version>${pax.exam.version}</version>
61+
<scope>test</scope>
62+
</dependency>
63+
64+
<dependency>
65+
<groupId>org.ops4j.pax.exam</groupId>
66+
<artifactId>pax-exam-extender-service</artifactId>
67+
<version>${pax.exam.version}</version>
68+
<scope>test</scope>
69+
</dependency>
70+
71+
<!-- Preferred link because it does not require an mvn url handler implicitely. -->
72+
<dependency>
73+
<groupId>org.ops4j.pax.exam</groupId>
74+
<artifactId>pax-exam-link-mvn</artifactId>
75+
<version>${pax.exam.version}</version>
76+
<scope>test</scope>
77+
</dependency>
78+
79+
<dependency>
80+
<groupId>org.ops4j.pax.exam</groupId>
81+
<artifactId>pax-exam-link-assembly</artifactId>
82+
<version>${pax.exam.version}</version>
83+
<scope>test</scope>
84+
</dependency>
85+
86+
<dependency>
87+
<groupId>ch.qos.logback</groupId>
88+
<artifactId>logback-core</artifactId>
89+
<version>${logback.version}</version>
90+
<scope>test</scope>
91+
</dependency>
92+
93+
<dependency>
94+
<groupId>ch.qos.logback</groupId>
95+
<artifactId>logback-classic</artifactId>
96+
<version>${logback.version}</version>
97+
<scope>test</scope>
98+
</dependency>
99+
100+
<dependency>
101+
<groupId>org.apache.geronimo.specs</groupId>
102+
<artifactId>geronimo-atinject_1.0_spec</artifactId>
103+
<version>1.0</version>
104+
<scope>provided</scope>
105+
</dependency>
106+
107+
<dependency>
108+
<groupId>org.apache.karaf.features</groupId>
109+
<artifactId>org.apache.karaf.features.core</artifactId>
110+
<version>${karaf.version}</version>
111+
<scope>test</scope>
112+
</dependency>
113+
<dependency>
114+
<groupId>org.apache.karaf.system</groupId>
115+
<artifactId>org.apache.karaf.system.core</artifactId>
116+
<version>${karaf.version}</version>
117+
<scope>test</scope>
118+
</dependency>
119+
120+
<dependency>
121+
<groupId>org.apache.karaf.shell</groupId>
122+
<artifactId>org.apache.karaf.shell.ssh</artifactId>
123+
<version>${karaf.version}</version>
124+
<scope>test</scope>
125+
</dependency>
126+
127+
<dependency>
128+
<groupId>org.apache.karaf.package</groupId>
129+
<artifactId>org.apache.karaf.package.core</artifactId>
130+
<version>${karaf.version}</version>
131+
<scope>test</scope>
132+
</dependency>
133+
134+
<dependency>
135+
<groupId>${project.groupId}</groupId>
136+
<artifactId>Vertx-Karaf</artifactId>
137+
<version>${project.version}</version>
138+
<type>tar.gz</type>
139+
<scope>test</scope>
140+
</dependency>
141+
142+
</dependencies>
143+
144+
145+
<build>
146+
<plugins>
147+
<plugin>
148+
<groupId>org.apache.maven.plugins</groupId>
149+
<artifactId>maven-compiler-plugin</artifactId>
150+
<version>3.1</version>
151+
<configuration>
152+
<source>1.7</source>
153+
<target>1.7</target>
154+
</configuration>
155+
</plugin>
156+
<plugin>
157+
<groupId>org.apache.servicemix.tooling</groupId>
158+
<artifactId>depends-maven-plugin</artifactId>
159+
<version>1.2</version>
160+
<executions>
161+
<execution>
162+
<id>generate-depends-file</id>
163+
<phase>generate-resources</phase>
164+
<goals>
165+
<goal>generate-depends-file</goal>
166+
</goals>
167+
</execution>
168+
</executions>
169+
</plugin>
170+
</plugins>
171+
</build>
172+
</project>

0 commit comments

Comments
 (0)