Skip to content

Commit b3b2b45

Browse files
committed
[KARAF-7780] Create a feature repo for Jakarta specs using capability/requirement etc
1 parent 30657b6 commit b3b2b45

7 files changed

Lines changed: 509 additions & 0 deletions

File tree

Lines changed: 297 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,297 @@
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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
4+
<!--
5+
6+
Licensed to the Apache Software Foundation (ASF) under one or more
7+
contributor license agreements. See the NOTICE file distributed with
8+
this work for additional information regarding copyright ownership.
9+
The ASF licenses this file to You under the Apache License, Version 2.0
10+
(the "License"); you may not use this file except in compliance with
11+
the License. You may obtain a copy of the License at
12+
13+
http://www.apache.org/licenses/LICENSE-2.0
14+
15+
Unless required by applicable law or agreed to in writing, software
16+
distributed under the License is distributed on an "AS IS" BASIS,
17+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
See the License for the specific language governing permissions and
19+
limitations under the License.
20+
-->
21+
22+
<modelVersion>4.0.0</modelVersion>
23+
24+
<parent>
25+
<groupId>org.apache.karaf.assemblies.features</groupId>
26+
<artifactId>features</artifactId>
27+
<version>4.5.0-SNAPSHOT</version>
28+
<relativePath>../pom.xml</relativePath>
29+
</parent>
30+
31+
<groupId>org.apache.karaf.features</groupId>
32+
<artifactId>jakarta</artifactId>
33+
<packaging>pom</packaging>
34+
<name>Apache Karaf :: Assemblies :: Features :: Jakarta</name>
35+
36+
<properties>
37+
<appendedResourcesDirectory>${basedir}/../../../etc/appended-resources</appendedResourcesDirectory>
38+
</properties>
39+
40+
<dependencyManagement>
41+
<dependencies>
42+
<dependency>
43+
<groupId>org.apache.karaf</groupId>
44+
<artifactId>karaf-bom</artifactId>
45+
<version>${project.version}</version>
46+
<type>pom</type>
47+
<scope>import</scope>
48+
</dependency>
49+
</dependencies>
50+
</dependencyManagement>
51+
52+
<dependencies>
53+
54+
<!-- Framework distribution -->
55+
<dependency>
56+
<groupId>org.apache.karaf.features</groupId>
57+
<artifactId>framework</artifactId>
58+
<type>kar</type>
59+
<scope>provided</scope>
60+
</dependency>
61+
62+
<!-- transaction deps -->
63+
<dependency>
64+
<groupId>org.apache.aries.transaction</groupId>
65+
<artifactId>org.apache.aries.transaction.blueprint</artifactId>
66+
<scope>provided</scope>
67+
</dependency>
68+
69+
<!-- jpa deps -->
70+
<dependency>
71+
<groupId>org.apache.aries</groupId>
72+
<artifactId>org.apache.aries.util</artifactId>
73+
<scope>provided</scope>
74+
</dependency>
75+
<dependency>
76+
<groupId>org.apache.aries.jpa</groupId>
77+
<artifactId>org.apache.aries.jpa.api</artifactId>
78+
<scope>provided</scope>
79+
</dependency>
80+
<dependency>
81+
<groupId>org.apache.aries.jpa</groupId>
82+
<artifactId>org.apache.aries.jpa.blueprint.aries</artifactId>
83+
<scope>provided</scope>
84+
</dependency>
85+
<dependency>
86+
<groupId>org.apache.aries.jpa</groupId>
87+
<artifactId>org.apache.aries.jpa.container</artifactId>
88+
<scope>provided</scope>
89+
</dependency>
90+
<dependency>
91+
<groupId>org.apache.aries.jpa</groupId>
92+
<artifactId>org.apache.aries.jpa.container.context</artifactId>
93+
<scope>provided</scope>
94+
</dependency>
95+
96+
<!-- jndi deps -->
97+
<dependency>
98+
<groupId>org.apache.aries.jndi</groupId>
99+
<artifactId>org.apache.aries.jndi.api</artifactId>
100+
<scope>provided</scope>
101+
</dependency>
102+
<dependency>
103+
<groupId>org.apache.aries.jndi</groupId>
104+
<artifactId>org.apache.aries.jndi.core</artifactId>
105+
<scope>provided</scope>
106+
</dependency>
107+
<dependency>
108+
<groupId>org.apache.aries.jndi</groupId>
109+
<artifactId>org.apache.aries.jndi.rmi</artifactId>
110+
<scope>provided</scope>
111+
</dependency>
112+
<dependency>
113+
<groupId>org.apache.aries.jndi</groupId>
114+
<artifactId>org.apache.aries.jndi.url</artifactId>
115+
<scope>provided</scope>
116+
</dependency>
117+
<dependency>
118+
<groupId>org.apache.aries.jndi</groupId>
119+
<artifactId>org.apache.aries.jndi.legacy.support</artifactId>
120+
<scope>provided</scope>
121+
</dependency>
122+
123+
<!-- application-without-isolation deps -->
124+
<dependency>
125+
<groupId>org.apache.karaf.features</groupId>
126+
<artifactId>standard</artifactId>
127+
<classifier>features</classifier>
128+
<type>xml</type>
129+
<scope>provided</scope>
130+
</dependency>
131+
<dependency>
132+
<groupId>org.apache.aries.application</groupId>
133+
<artifactId>org.apache.aries.application.resolver.obr</artifactId>
134+
<scope>provided</scope>
135+
</dependency>
136+
<dependency>
137+
<groupId>org.apache.aries.application</groupId>
138+
<artifactId>org.apache.aries.application.install</artifactId>
139+
<scope>provided</scope>
140+
</dependency>
141+
<dependency>
142+
<groupId>org.apache.aries.application</groupId>
143+
<artifactId>org.apache.aries.application.api</artifactId>
144+
<scope>provided</scope>
145+
</dependency>
146+
<dependency>
147+
<groupId>org.apache.aries.application</groupId>
148+
<artifactId>org.apache.aries.application.management</artifactId>
149+
<scope>provided</scope>
150+
</dependency>
151+
<dependency>
152+
<groupId>org.apache.aries.application</groupId>
153+
<artifactId>org.apache.aries.application.utils</artifactId>
154+
<scope>provided</scope>
155+
</dependency>
156+
<dependency>
157+
<groupId>org.apache.aries.application</groupId>
158+
<artifactId>org.apache.aries.application.modeller</artifactId>
159+
<scope>provided</scope>
160+
</dependency>
161+
<dependency>
162+
<groupId>org.apache.aries.application</groupId>
163+
<artifactId>org.apache.aries.application.default.local.platform</artifactId>
164+
<scope>provided</scope>
165+
</dependency>
166+
<dependency>
167+
<groupId>org.apache.aries.application</groupId>
168+
<artifactId>org.apache.aries.application.deployment.management</artifactId>
169+
<scope>provided</scope>
170+
</dependency>
171+
172+
<!-- without isolation -->
173+
<dependency>
174+
<groupId>org.apache.aries.application</groupId>
175+
<artifactId>org.apache.aries.application.runtime</artifactId>
176+
<scope>provided</scope>
177+
</dependency>
178+
179+
<!-- subsystems -->
180+
<dependency>
181+
<groupId>org.apache.karaf.services</groupId>
182+
<artifactId>org.apache.karaf.services.coordinator</artifactId>
183+
<scope>provided</scope>
184+
</dependency>
185+
<dependency>
186+
<groupId>org.apache.karaf.subsystem</groupId>
187+
<artifactId>org.apache.karaf.subsystem.core</artifactId>
188+
<scope>provided</scope>
189+
</dependency>
190+
<dependency>
191+
<groupId>org.ops4j.pax.cdi</groupId>
192+
<artifactId>pax-cdi-features</artifactId>
193+
<version>${pax.cdi.version}</version>
194+
<classifier>features</classifier>
195+
<type>xml</type>
196+
<scope>provided</scope>
197+
</dependency>
198+
199+
<!-- hibernate deps -->
200+
<dependency>
201+
<groupId>org.hibernate</groupId>
202+
<artifactId>hibernate-osgi</artifactId>
203+
<version>${hibernate.version}</version>
204+
</dependency>
205+
</dependencies>
206+
207+
<build>
208+
<resources>
209+
<resource>
210+
<directory>${project.basedir}/src/main/feature</directory>
211+
<filtering>true</filtering>
212+
<targetPath>${project.build.directory}/feature</targetPath>
213+
</resource>
214+
</resources>
215+
<plugins>
216+
<plugin>
217+
<groupId>org.apache.maven.plugins</groupId>
218+
<artifactId>maven-resources-plugin</artifactId>
219+
<executions>
220+
<execution>
221+
<goals>
222+
<goal>resources</goal>
223+
</goals>
224+
</execution>
225+
</executions>
226+
</plugin>
227+
<plugin>
228+
<groupId>org.apache.karaf.tooling</groupId>
229+
<artifactId>karaf-maven-plugin</artifactId>
230+
<executions>
231+
<execution>
232+
<id>verify</id>
233+
<phase>process-resources</phase>
234+
<goals>
235+
<goal>verify</goal>
236+
</goals>
237+
<configuration>
238+
<descriptors>
239+
<descriptor>mvn:org.apache.karaf.features/framework/${project.version}/xml/features</descriptor>
240+
<descriptor>mvn:org.apache.karaf.features/specs/${project.version}/xml/features</descriptor>
241+
<descriptor>file:${project.build.directory}/feature/feature.xml</descriptor>
242+
</descriptors>
243+
<distribution>org.apache.karaf.features:framework</distribution>
244+
<javase>1.8</javase>
245+
<framework>
246+
<feature>framework</feature>
247+
</framework>
248+
</configuration>
249+
</execution>
250+
</executions>
251+
</plugin>
252+
<plugin>
253+
<groupId>org.codehaus.mojo</groupId>
254+
<artifactId>build-helper-maven-plugin</artifactId>
255+
<executions>
256+
<execution>
257+
<id>attach-artifacts</id>
258+
<phase>package</phase>
259+
<goals>
260+
<goal>attach-artifact</goal>
261+
</goals>
262+
<configuration>
263+
<artifacts>
264+
<artifact>
265+
<file>target/feature/feature.xml</file>
266+
<classifier>features</classifier>
267+
<type>xml</type>
268+
</artifact>
269+
</artifacts>
270+
</configuration>
271+
</execution>
272+
</executions>
273+
</plugin>
274+
</plugins>
275+
</build>
276+
277+
<profiles>
278+
<profile>
279+
<id>test</id>
280+
<build>
281+
<plugins>
282+
<plugin>
283+
<groupId>org.apache.karaf.tooling</groupId>
284+
<artifactId>karaf-maven-plugin</artifactId>
285+
<executions>
286+
<execution>
287+
<id>verify</id>
288+
<phase>none</phase>
289+
</execution>
290+
</executions>
291+
</plugin>
292+
</plugins>
293+
</build>
294+
</profile>
295+
</profiles>
296+
297+
</project>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
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+
<features name="activemq" xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 http://karaf.apache.org/xmlns/features/v1.3.0">
20+
21+
<feature name="activemq-client" description="ActiveMQ client libraries" version="6.0.0">
22+
<feature version="[5,7)">spring</feature>
23+
<bundle>mvn:org.apache.commons/commons-pool2/2.12.0</bundle>
24+
<bundle>mvn:org.apache.activemq/activemq-osgi/6.0.0</bundle>
25+
<capability>
26+
jakarta-jms;provider:=activemq
27+
</capability>
28+
<requirement>
29+
jakarta-jms-api
30+
</requirement>
31+
</feature>
32+
33+
</features>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
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+
<features name="cxf" xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 http://karaf.apache.org/xmlns/features/v1.3.0">
20+
21+
<feature name="cxf-ws-rs" version="3.6.2">
22+
<feature version="3.6.2">cxf-core</feature>
23+
<feature version="3.6.2">cxf-http</feature>
24+
<feature version="3.6.2">cxf-jackson</feature>
25+
<feature version="3.6.2">cxf-rt-security</feature>
26+
<bundle start-level="30" dependency="true">mvn:org.codehaus.jettison/jettison/1.5.4</bundle>
27+
<bundle start-level="40">mvn:org.apache.cxf/cxf-rt-rs-extension-providers/3.6.2</bundle>
28+
<bundle start-level="40">mvn:org.apache.cxf/cxf-rt-rs-extension-search/3.6.2</bundle>
29+
<bundle start-level="40">mvn:org.apache.cxf/cxf-rt-rs-json-basic/3.6.2</bundle><bundle start-level="40">mvn:org.apache.cxf/cxf-rt-rs-service-description/3.6.2</bundle>
30+
<bundle start-level="40">mvn:org.apache.cxf/cxf-rt-frontend-jaxrs/3.6.2</bundle>
31+
<bundle start-level="40">mvn:org.apache.cxf/cxf-rt-rs-client/3.6.2</bundle>
32+
<capability>
33+
jakarta-ws-rs;provider:=cxf-ws-rs-server
34+
</capability>
35+
<requirement>
36+
jakarta-ws-rs-api
37+
</requirement>
38+
</feature>
39+
</features>

0 commit comments

Comments
 (0)