Skip to content

Commit 96640bb

Browse files
committed
[MAINTENANCE] Update pax-logging to the highest possible 1.x and stop using pax-logging-service
1 parent 7f1b9a4 commit 96640bb

31 files changed

Lines changed: 120 additions & 45 deletions

File tree

application/application-itests/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<org.apache.felix.configadmin.version>1.9.26</org.apache.felix.configadmin.version>
7070
<org.eclipse.osgi.version>3.8.0.v20120529-1548</org.eclipse.osgi.version>
7171
<pax-exam.version>4.13.5</pax-exam.version>
72-
<pax-logging.version>2.2.9</pax-logging.version>
72+
<pax-logging.version>1.12.12</pax-logging.version>
7373
<pax-url.version>2.6.16</pax-url.version>
7474
</properties>
7575

@@ -96,7 +96,7 @@
9696
</dependency>
9797
<dependency>
9898
<groupId>org.ops4j.pax.logging</groupId>
99-
<artifactId>pax-logging-service</artifactId>
99+
<artifactId>pax-logging-log4j2</artifactId>
100100
<version>${pax-logging.version}</version>
101101
<scope>test</scope>
102102
</dependency>

application/application-resolve-transform-cm-itests/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
<osgi.cmpn.version>4.3.1</osgi.cmpn.version>
6363
<osgi.core.version>4.3.1</osgi.core.version>
6464
<pax-exam.version>4.13.5</pax-exam.version>
65+
<pax-logging.version>1.12.12</pax-logging.version>
6566
<pax-swissbox.version>1.8.3</pax-swissbox.version>
6667
<pax-url.version>2.6.16</pax-url.version>
6768
</properties>
@@ -150,11 +151,13 @@
150151
<dependency>
151152
<groupId>org.ops4j.pax.logging</groupId>
152153
<artifactId>pax-logging-api</artifactId>
154+
<version>${pax-logging.version}</version>
153155
<scope>test</scope>
154156
</dependency>
155157
<dependency>
156158
<groupId>org.ops4j.pax.logging</groupId>
157-
<artifactId>pax-logging-service</artifactId>
159+
<artifactId>pax-logging-log4j2</artifactId>
160+
<version>${pax-logging.version}</version>
158161
<scope>test</scope>
159162
</dependency>
160163

application/application-tooling-repository-generator/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
<org.apache.aries.util.version>1.0.0</org.apache.aries.util.version>
7070
<org.apache.felix.bundlerepository.version>1.6.6</org.apache.felix.bundlerepository.version>
7171
<org.eclipse.osgi.version>3.8.0.v20120529-1548</org.eclipse.osgi.version>
72+
<pax-logging.version>1.12.12</pax-logging.version>
7273
<services.version>3.1.200-v20070605</services.version>
7374
</properties>
7475

@@ -94,11 +95,13 @@
9495
<dependency>
9596
<groupId>org.ops4j.pax.logging</groupId>
9697
<artifactId>pax-logging-api</artifactId>
98+
<version>${pax-logging.version}</version>
9799
</dependency>
98100

99101
<dependency>
100102
<groupId>org.ops4j.pax.logging</groupId>
101-
<artifactId>pax-logging-service</artifactId>
103+
<artifactId>pax-logging-log4j2</artifactId>
104+
<version>${pax-logging.version}</version>
102105
</dependency>
103106

104107
<dependency>

blueprint/itests/blueprint-itests/src/test/java/org/apache/aries/blueprint/itests/AbstractBlueprintIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public Option baseOptions() {
6565
return composite(
6666
junitBundles(),
6767
setPaxExamLogLevel("INFO"),
68-
addPaxLoggingV2Bundles(),
68+
addPaxLoggingBundles(),
6969
addAsmBundles(),
7070
configurePaxUrlLocalMavenRepoIfNeeded(),
7171
systemProperty("pax.exam.osgi.unresolved.fail").value("true")

jmx/jmx-whiteboard/pom.xml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,17 @@
8080
javax.management.MBeanServer
8181
</aries.osgi.import.service>
8282

83+
<depends-maven-plugin.version>1.5.0</depends-maven-plugin.version>
8384
<javax.inject.version>1</javax.inject.version>
8485
<maven-antrun-plugin.version>3.1.0</maven-antrun-plugin.version>
8586
<mockito-core.version>4.11.0</mockito-core.version>
8687
<org.apache.aries.jmx.core.version>1.1.8</org.apache.aries.jmx.core.version>
88+
<org.apache.felix.configadmin.version>1.9.26</org.apache.felix.configadmin.version>
8789
<org.eclipse.osgi.version>3.23.0</org.eclipse.osgi.version>
8890
<osgi.cmpn.version>4.3.1</osgi.cmpn.version>
8991
<osgi.core.version>4.3.1</osgi.core.version>
9092
<pax-exam.version>4.13.5</pax-exam.version>
93+
<pax-logging.version>1.12.12</pax-logging.version>
9194
<pax-tinybundles.version>2.1.1</pax-tinybundles.version>
9295
<pax-url.version>2.6.16</pax-url.version>
9396
</properties>
@@ -128,6 +131,20 @@
128131
</excludes>
129132
</configuration>
130133
</plugin>
134+
<plugin>
135+
<groupId>org.apache.servicemix.tooling</groupId>
136+
<artifactId>depends-maven-plugin</artifactId>
137+
<!-- TODO ARIES-2165: remove configuration when the newest parent pom is used -->
138+
<version>${depends-maven-plugin.version}</version>
139+
<executions>
140+
<execution>
141+
<id>generate-depends-file</id>
142+
<goals>
143+
<goal>generate-depends-file</goal>
144+
</goals>
145+
</execution>
146+
</executions>
147+
</plugin>
131148
</plugins>
132149
</build>
133150

@@ -214,11 +231,38 @@
214231
<version>${pax-tinybundles.version}</version>
215232
<scope>test</scope>
216233
</dependency>
234+
<dependency>
235+
<groupId>org.ops4j.pax.logging</groupId>
236+
<artifactId>pax-logging-api</artifactId>
237+
<version>${pax-logging.version}</version>
238+
<scope>test</scope>
239+
</dependency>
240+
<dependency>
241+
<groupId>org.ops4j.pax.logging</groupId>
242+
<artifactId>pax-logging-log4j2</artifactId>
243+
<version>${pax-logging.version}</version>
244+
<scope>test</scope>
245+
</dependency>
217246
<dependency>
218247
<groupId>javax.inject</groupId>
219248
<artifactId>javax.inject</artifactId>
220249
<version>${javax.inject.version}</version>
221250
</dependency>
251+
<dependency>
252+
<groupId>org.apache.felix</groupId>
253+
<artifactId>org.apache.felix.configadmin</artifactId>
254+
<version>${org.apache.felix.configadmin.version}</version>
255+
<exclusions>
256+
<exclusion>
257+
<groupId>org.apache.felix</groupId>
258+
<artifactId>org.osgi.compendium</artifactId>
259+
</exclusion>
260+
<exclusion>
261+
<groupId>org.apache.felix</groupId>
262+
<artifactId>org.osgi.core</artifactId>
263+
</exclusion>
264+
</exclusions>
265+
</dependency>
222266
</dependencies>
223267

224268
<profiles>

jmx/jmx-whiteboard/src/test/java/org/apache/aries/jmx/whiteboard/integration/helper/IntegrationTestBase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ public static Option[] configuration() {
8686
junitBundles(),
8787

8888
bundle(bundleFile.toURI().toString()),
89-
mavenBundle("org.ops4j.pax.tinybundles", "tinybundles", "2.0.0"),
90-
mavenBundle("org.apache.felix", "org.apache.felix.configadmin", "1.9.26"),
91-
mavenBundle("org.ops4j.pax.logging", "pax-logging-api", "1.7.2"),
92-
mavenBundle("org.ops4j.pax.logging", "pax-logging-service", "1.7.2"));
89+
mavenBundle("org.ops4j.pax.tinybundles", "tinybundles").versionAsInProject(),
90+
mavenBundle("org.apache.felix", "org.apache.felix.configadmin").versionAsInProject(),
91+
mavenBundle("org.ops4j.pax.logging", "pax-logging-api").versionAsInProject(),
92+
mavenBundle("org.ops4j.pax.logging", "pax-logging-log4j2").versionAsInProject());
9393

9494
return options;
9595
}

jndi/jndi-url-itest/src/test/java/org/apache/aries/jndi/itests/JndiUrlIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private String getTestServletResponse() throws IOException {
132132
public Option baseOptions() {
133133
return composite(
134134
junitBundles(),
135-
addPaxLoggingV2Bundles(),
135+
addPaxLoggingBundles(),
136136
setPaxExamLogLevel("INFO"),
137137
configurePaxUrlLocalMavenRepoIfNeeded()
138138
);

proxy/proxy-itests/src/test/java/org/apache/aries/proxy/itests/AbstractProxyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ private void assertCalled(TestListener listener, boolean pre, boolean post, bool
290290
protected Option proxyOptions() {
291291
return composite(
292292
junitBundles(),
293-
addPaxLoggingV2Bundles(),
293+
addPaxLoggingBundles(),
294294
setPaxExamLogLevel("INFO"),
295295
configurePaxUrlLocalMavenRepoIfNeeded(),
296296
addAsmBundles(),

quiesce/quiesce-manager-itest/src/test/java/org/apache/aries/quiesce/manager/itest/QuiesceManagerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public Option baseOptions() {
281281
return composite(
282282
junitBundles(),
283283
setPaxExamLogLevel("INFO"),
284-
addPaxLoggingV2Bundles(),
284+
addPaxLoggingBundles(),
285285
configurePaxUrlLocalMavenRepoIfNeeded(),
286286
setupRemoteDebugging()
287287
);

samples/ariestrader/assemblies/equinox-test-harness/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</dependency>
6161
<dependency>
6262
<groupId>org.ops4j.pax.logging</groupId>
63-
<artifactId>pax-logging-service</artifactId>
63+
<artifactId>pax-logging-log4j2</artifactId>
6464
</dependency>
6565
<dependency>
6666
<groupId>org.ops4j.pax.web</groupId>

0 commit comments

Comments
 (0)