-
Notifications
You must be signed in to change notification settings - Fork 21
Description
lock_jars prints the error: No plugin found for prefix 'gem' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (~/.m2/repository), central (https://repo.maven.apache.org/maven2)]
Environment Information
Provide at least:
- JRuby version (
jruby -v) and command line (flags, JRUBY_OPTS, etc):9.4.9.0 - Operating system and platform (e.g.
uname -a):Darwin Andys-MacBook-Pro-2.local 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:37:36 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6020 arm64
Other relevant info you may wish to add:
- Installed or activated gems:
glimmer-dsl-swt - Application/framework version (e.g. Rails, Sinatra):
glimmer-dsl-swt4.30.0.0 - Environment variables:
export JRUBY_OPTS="$JRUBY_OPTS -J-XstartOnFirstThread"
Expected Behavior
Running:
lock_jars --vendor-dir vendor/jars
... used to lock jars under a vendor directory.
Actual Behavior
Running the lock_jars command now gives me this error:
% lock_jars --vendor-dir vendor/jars
Installing gem 'ruby-maven' . . .
using maven for the first time results in maven
downloading all its default plugin and can take time.
as those plugins get cached on disk and further execution
of maven is much faster then the first time.
-- jar root dependencies --
isorelax:isorelax:20030108:compile
org.nokogiri:nekodtd:0.1.11.noko2:compile
net.sourceforge.htmlunit:neko-htmlunit:2.63.0:compile
nu.validator:jing:20200702VNU:compile
xalan:serializer:2.7.3:compile
xalan:xalan:2.7.3:compile
xerces:xercesImpl:2.12.2:compile
xml-apis:xml-apis:1.4.01:compile
org.snakeyaml:snakeyaml-engine:2.7:compile
[ERROR] No plugin found for prefix 'gem' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (~/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException
I discovered the issue while attempting to upgrade this project to the latest JRuby and package as a native app with Glimmer DSL for SWT (you can clone the GitHub repo, bundle, and then try to run that command or glimmer "package[dmg]" on Mac, which invokes it indirectly):
https://github.com/AndyObtiva/dcr
glimmer "package[dmg]" on the Mac invokes lock_jars --vendor-dir vendor/jars, but it is failing now. It worked in the past. I have been able to package this application about 2-3 years ago.