From 359192206ea28d241b0a6934a1fa53ca2ffe9dbf Mon Sep 17 00:00:00 2001 From: Andrei Pozolotin Date: Sun, 2 Sep 2012 12:16:59 -0500 Subject: [PATCH 1/3] missing osgi core dependency (m2e can not import in eclipse) --- itest/src/it/regression-multi/pom.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/itest/src/it/regression-multi/pom.xml b/itest/src/it/regression-multi/pom.xml index 62944a10e..cefe95937 100644 --- a/itest/src/it/regression-multi/pom.xml +++ b/itest/src/it/regression-multi/pom.xml @@ -103,10 +103,14 @@ provided + + org.osgi + org.osgi.core + provided + org.osgi org.osgi.compendium - 4.2.0 provided From 9b0fdf45d319afa45b057e0b6e6e2be06b2197a2 Mon Sep 17 00:00:00 2001 From: Andrei Pozolotin Date: Sat, 29 Sep 2012 09:42:19 -0500 Subject: [PATCH 2/3] Harald Wellmann - possible solution --- README-PROVISION.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 README-PROVISION.md diff --git a/README-PROVISION.md b/README-PROVISION.md new file mode 100644 index 000000000..9f7677d22 --- /dev/null +++ b/README-PROVISION.md @@ -0,0 +1,21 @@ +Pax Exam 2 - Provisioning +================================ + +Here is an outline of a possible solution: + +1) Use depends-maven-plugin to generate dependencies.properties, listing all transitive dependencies with version and scope in a format easily consumed without a runtime dependency on Maven APIs. + +2) Add a goal to the new exam-maven-plugin to postprocess this properties file, allowing to include or exclude artifacts by scope or groupId or artifactId patterns. The result of this step should be a file with mvn: URLs. + +3) Revive the scanFile() option to provision bundles listed in the file resulting from 2). + + + +1) is already used to support the versionAsInProject() feature. + +2) would be a new Mojo for the exam-maven-plugin available on the exam3-milestones branch. + +3) is only supported by Pax Runner Container in 2.x, it's deprecated and more or less undocumented, and it's been removed in 3.x, but it's certainly feasible to reintroduce this option (or a similar one) and make it work for _all_ containers. + +See also http://team.ops4j.org/wiki/display/paxscanner/File+Scanner + From ca8369105c7c793a3dc59401be76942697114cbe Mon Sep 17 00:00:00 2001 From: Andrei Pozolotin Date: Sat, 29 Sep 2012 09:44:10 -0500 Subject: [PATCH 3/3] Revert "missing osgi core dependency (m2e can not import in eclipse)" This reverts commit 359192206ea28d241b0a6934a1fa53ca2ffe9dbf. --- itest/src/it/regression-multi/pom.xml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/itest/src/it/regression-multi/pom.xml b/itest/src/it/regression-multi/pom.xml index 72b4099d7..63db9ae48 100644 --- a/itest/src/it/regression-multi/pom.xml +++ b/itest/src/it/regression-multi/pom.xml @@ -109,14 +109,10 @@ provided - - org.osgi - org.osgi.core - provided - org.osgi org.osgi.compendium + 4.2.0 provided