Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure new provisioning idea does not get lost out of existence #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README-PROVISION.md
Original file line number Diff line number Diff line change
@@ -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