Skip to content

Commit 4dac01b

Browse files
author
Julien Hattab
committed
Ref #596: adapt library 'camel-test-blueprint-junit5' to camel-karaf 4.10.x
1 parent 1eae174 commit 4dac01b

File tree

240 files changed

+13049
-66
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+13049
-66
lines changed
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one or more
5+
contributor license agreements. See the NOTICE file distributed with
6+
this work for additional information regarding copyright ownership.
7+
The ASF licenses this file to You under the Apache License, Version 2.0
8+
(the "License"); you may not use this file except in compliance with
9+
the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
<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/xsd/maven-4.0.0.xsd">
21+
<modelVersion>4.0.0</modelVersion>
22+
23+
<parent>
24+
<groupId>org.apache.camel.karaf</groupId>
25+
<artifactId>camel-karaf-components</artifactId>
26+
<version>4.10.8-SNAPSHOT</version>
27+
<relativePath>../pom.xml</relativePath>
28+
</parent>
29+
30+
<artifactId>camel-blueprint-main</artifactId>
31+
<packaging>jar</packaging>
32+
33+
<name>Apache Camel :: Karaf :: Blueprint Main</name>
34+
<description>Main support for OSGi Blueprint</description>
35+
36+
<properties>
37+
<firstVersion>3.2.0</firstVersion>
38+
<label>java,osgi</label>
39+
</properties>
40+
41+
<dependencies>
42+
<dependency>
43+
<groupId>org.apache.camel.karaf</groupId>
44+
<artifactId>camel-main</artifactId>
45+
<version>${project.version}</version>
46+
</dependency>
47+
48+
<dependency>
49+
<groupId>org.apache.camel.karaf</groupId>
50+
<artifactId>camel-core-languages</artifactId>
51+
<version>${project.version}</version>
52+
<scope>test</scope>
53+
</dependency>
54+
55+
<dependency>
56+
<groupId>org.apache.camel.karaf</groupId>
57+
<artifactId>camel-bean</artifactId>
58+
<version>${project.version}</version>
59+
<scope>test</scope>
60+
</dependency>
61+
62+
<dependency>
63+
<groupId>org.apache.camel.karaf</groupId>
64+
<artifactId>camel-mock</artifactId>
65+
<version>${project.version}</version>
66+
<scope>test</scope>
67+
</dependency>
68+
69+
<dependency>
70+
<groupId>org.apache.camel.karaf</groupId>
71+
<artifactId>camel-direct</artifactId>
72+
<version>${project.version}</version>
73+
<scope>test</scope>
74+
</dependency>
75+
76+
<dependency>
77+
<groupId>org.apache.camel.karaf</groupId>
78+
<artifactId>camel-blueprint</artifactId>
79+
<version>${project.version}</version>
80+
<!-- exclude aries blueprint as we add these dependencies explicit -->
81+
<exclusions>
82+
<exclusion>
83+
<groupId>org.apache.aries.blueprint</groupId>
84+
<artifactId>org.apache.aries.blueprint.core</artifactId>
85+
</exclusion>
86+
</exclusions>
87+
</dependency>
88+
89+
<!-- the ordering of the dependencies can matter as we load the dependencies from the classpath
90+
with felix-connect, and you may get a weird error if wrong order -->
91+
<dependency>
92+
<groupId>org.apache.aries.proxy</groupId>
93+
<artifactId>org.apache.aries.proxy</artifactId>
94+
</dependency>
95+
<dependency>
96+
<groupId>org.apache.aries.blueprint</groupId>
97+
<artifactId>org.apache.aries.blueprint.api</artifactId>
98+
</dependency>
99+
<dependency>
100+
<groupId>org.apache.aries.blueprint</groupId>
101+
<artifactId>org.apache.aries.blueprint.core</artifactId>
102+
</dependency>
103+
<dependency>
104+
<groupId>org.apache.aries.blueprint</groupId>
105+
<artifactId>org.apache.aries.blueprint.cm</artifactId>
106+
</dependency>
107+
<dependency>
108+
<groupId>org.apache.aries</groupId>
109+
<artifactId>org.apache.aries.util</artifactId>
110+
</dependency>
111+
<dependency>
112+
<groupId>org.apache.felix</groupId>
113+
<artifactId>org.apache.felix.connect</artifactId>
114+
<exclusions>
115+
<!-- felix-connect includes osgi.core and osgi.compendium version 5.0.0 -->
116+
<exclusion>
117+
<groupId>org.osgi</groupId>
118+
<artifactId>osgi.core</artifactId>
119+
</exclusion>
120+
<exclusion>
121+
<groupId>org.osgi</groupId>
122+
<artifactId>osgi.cmpn</artifactId>
123+
</exclusion>
124+
</exclusions>
125+
</dependency>
126+
<dependency>
127+
<groupId>org.apache.felix</groupId>
128+
<artifactId>org.apache.felix.configadmin</artifactId>
129+
<!-- exclude the following dependency which otherwise would pop up a lot of compilation
130+
errors both by this and the camel-maven-plugin modules under eclipse. -->
131+
<exclusions>
132+
<exclusion>
133+
<groupId>org.apache.felix</groupId>
134+
<artifactId>org.osgi.foundation</artifactId>
135+
</exclusion>
136+
<exclusion>
137+
<groupId>org.apache.felix</groupId>
138+
<artifactId>osgi.core</artifactId>
139+
</exclusion>
140+
<exclusion>
141+
<groupId>org.apache.felix</groupId>
142+
<artifactId>osgi.cmpn</artifactId>
143+
</exclusion>
144+
</exclusions>
145+
</dependency>
146+
147+
<dependency>
148+
<groupId>org.ops4j.pax.tinybundles</groupId>
149+
<artifactId>tinybundles</artifactId>
150+
</dependency>
151+
152+
<dependency>
153+
<groupId>org.apache.camel.karaf</groupId>
154+
<artifactId>camel-xpath</artifactId>
155+
<version>${project.version}</version>
156+
<scope>test</scope>
157+
</dependency>
158+
159+
<dependency>
160+
<groupId>org.apache.camel</groupId>
161+
<artifactId>camel-test-junit5</artifactId>
162+
<version>${camel-version}</version>
163+
<scope>test</scope>
164+
</dependency>
165+
166+
<dependency>
167+
<groupId>org.apache.logging.log4j</groupId>
168+
<artifactId>log4j-slf4j2-impl</artifactId>
169+
<version>${log4j2-version}</version>
170+
<scope>test</scope>
171+
</dependency>
172+
173+
<dependency>
174+
<groupId>org.apache.logging.log4j</groupId>
175+
<artifactId>log4j-core</artifactId>
176+
<version>${log4j2-version}</version>
177+
<scope>test</scope>
178+
</dependency>
179+
180+
</dependencies>
181+
</project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[[BlueprintMain-BlueprintMain]]
2+
= Blueprint Main
3+
4+
This module is used for running OSGi Blueprint standalone via a main class extended from `camel-main`.
5+
6+
Note this is only recommended for development purposes, as the standalone mode is using a limited simulation
7+
of an OSGi container using Apache Felix Connector. Some OSGi features are not supported in this mode.

0 commit comments

Comments
 (0)