[
https://issues.jboss.org/browse/FORGE-14?page=com.atlassian.jira.plugin.s...
]
Lincoln Baxter III closed FORGE-14.
-----------------------------------
Fix Version/s: 1.0.0.Beta4
Resolution: Done
All better! Try building from sources, or waiting for the next SNAPSHOT to deploy to
nexus. Thanks for noticing this!
forge install-plugin fails with ClassNotFoundException:
org.apache.commons.cli.UnrecognizedOptionException
----------------------------------------------------------------------------------------------------------
Key: FORGE-14
URL:
https://issues.jboss.org/browse/FORGE-14
Project: Forge
Issue Type: Bug
Components: Shell
Affects Versions: 1.0.0.Beta2
Environment: Linux fireball 2.6.38-10-generic #46~lucid1-Ubuntu SMP Wed Jul 6
18:41:04 UTC 2011 x86_64 GNU/Linux
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
FORGE_HOME=/home/peter/Applications/forge-1.0.0-SNAPSHOT
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/peter/Applications/forge-1.0.0-SNAPSHOT/bin
Reporter: Peter Miklos
Assignee: Lincoln Baxter III
Fix For: 1.0.0.Beta4
forge install-plugin fails. I could reproduce it with 1.0.0.Beta2 and 1.0.0-SNAPSHOT as
well. I used zip distributions downloaded from jboss nexus.
[forge-openshift-demo] forge-openshift-demo $ forge install-plugin openshift-express
Connecting to remote repository
[
https://raw.github.com/forge/plugin-repository/master/repository.yaml]... connected!
***INFO*** Preparing to install plugin: openshift-express
***INFO*** Checking out plugin source files to [/tmp/forgetemp6992847724975759063/repo]
via 'git'
Receiving objects: 100% (169/169)
Resolving deltas: 100% (66/66)
***INFO*** Invoking build with underlying build system.
***ERROR*** [forge install-plugin] org/apache/commons/cli/UnrecognizedOptionException
org.jboss.forge.shell.exceptions.CommandExecutionException:
org/apache/commons/cli/UnrecognizedOptionException
at org.jboss.forge.shell.command.Execution.perform(Execution.java:151)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)
at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:711)
at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:495)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
at
org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
at
org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
at
org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
at
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:87)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.forge.shell.command.Execution.perform(Execution.java:146)
... 30 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/cli/UnrecognizedOptionException
at
org.jboss.forge.maven.facets.MavenCoreFacetImpl.executeMavenEmbedded(MavenCoreFacetImpl.java:266)
at
org.jboss.forge.maven.facets.MavenCoreFacetImpl.executeMavenEmbedded(MavenCoreFacetImpl.java:256)
at
org.jboss.forge.maven.facets.MavenCoreFacetImpl.executeMaven(MavenCoreFacetImpl.java:287)
at
org.jboss.forge.maven.facets.MavenCoreFacetImpl.executeMaven(MavenCoreFacetImpl.java:275)
at
org.jboss.forge.maven.facets.MavenPackagingFacet.executeBuild(MavenPackagingFacet.java:155)
at
org.jboss.forge.shell.plugins.builtin.ForgePlugin.buildFromCurrentProject(ForgePlugin.java:471)
at
org.jboss.forge.shell.plugins.builtin.ForgePlugin.installFromGit(ForgePlugin.java:415)
at
org.jboss.forge.shell.plugins.builtin.ForgePlugin.installFromIndex(ForgePlugin.java:223)
... 35 more
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.cli.UnrecognizedOptionException from [Module
"org.jboss.forge.shell-api:main" from local module loader @5c1428ea (roots:
/home/peter/Applications/forge-1.0.0-SNAPSHOT/modules,/home/peter/.forge/plugins)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
... 43 more
[forge-openshift-demo] forge-openshift-demo $ list-properties
SHELL=org.jboss.forge.shell.ShellImpl@6838a3ca
EXCEPTION_HANDLING=true
VERBOSE=true
IGNOREEOF=1
DEFAULT_PLUGIN_REPO=https://raw.github.com/forge/plugin-repository/master...
DEFFAULT_PLUGIN_REPO=https://raw.github.com/forge/plugin-repository/maste...
CWD=/home/peter/Projects/Sandbox/Forge/forge-openshift-demo
OS_NAME=Linux
PROMPT=[\c{green}$PROJECT_NAME\c] \c{blue}\W\c \c{green}\$\c
PROMPT_NOPROJ=[\c{red}no project\c] \c{blue}\W\c \c{red}\$\c
FORGE_CONFIG_DIR=/home/peter/.forge/
OFFLINE=false
NO_MOTD=false
PROJECT_NAME=forge-openshift-demo
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira