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

Include plugin folder in each schema plugin jar #4724

Closed
jodygarnett opened this issue May 28, 2020 · 0 comments
Closed

Include plugin folder in each schema plugin jar #4724

jodygarnett opened this issue May 28, 2020 · 0 comments
Labels
stale stale issue flagged for closure.

Comments

@jodygarnett
Copy link
Contributor

Transition from use of maven-resources-plugin:copy-resources (directory based) to maven-dependency-plugin:unpack (artifact based).

See proposal Host Geonetwork artifacts on repo.osgeo.org for background information.

Describe the solution you'd like

I would like each plugin artifact to include its 'plugin' folder when published to the maven repository.

I would then like to use maven to unpack the plugin folder as part of web/pom.xml process-resources step.

Ideally this should allow developers to build metadata101 schema plugins independently, and add profiles to web/pom.xml for use.

Describe alternatives you've considered

  • I considered asking each plugin to publish a second "zip" artifact (so both a jar and zip) would be published. While possible it is not really a maven best practice (which thrives at having one artifact for each pom.xml).

  • I considered having the java bean extract its own plugin folder when it is first run If the folder is not already unpacked). This has been shown to work for thesauri, but would make testing a bit harder. I also note that this is this approach may be added as a capability in the future if there is interest.

Additional context

This is an orthogonal but complementary change to changing maven repositories to manage artifacts.

@jodygarnett jodygarnett changed the title package schema plugin folder with each jar Include plugin folder in each schema plugin jar May 28, 2020
@ticheler ticheler added the stale stale issue flagged for closure. label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale stale issue flagged for closure.
Projects
None yet
Development

No branches or pull requests

2 participants