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

ExecuteMojo doesn't update Ruby classloader to plugin classloader #252

Open
byteit101 opened this issue Nov 24, 2022 · 0 comments
Open

ExecuteMojo doesn't update Ruby classloader to plugin classloader #252

byteit101 opened this issue Nov 24, 2022 · 0 comments

Comments

@byteit101
Copy link

When using pom.rb, the Parser uses the coreExtension>io.takari.polyglot:polyglot-ruby classloader. When executing the mojos, the Thread context classloader is the plugin>io.takari.polyglot:polyglot-maven-plugin classloader with custom dependencies added, but JRuby still uses the "coreExtension" classloader.

Ruby execute blocks should pick up dependencies added:

# ...
plugin!('io.takari.polyglot:polyglot-maven-plugin', VERSIONS[:polyglot_version]) do
    dependency( 'org.apache.maven.shared', 'maven-dependency-tree', '3.2.1')
end

execute :install_gems, :'initialize' do |ctx|
    org.apache.maven.shared.dependency.graph.DependencyGraphBuilder # => Exception!
end
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant