Vineet Reynolds created FORGE-1811:
--------------------------------------
Summary: Version ranges from Maven Central cannot be obtained when other
repositories are activated
Key: FORGE-1811
URL:
https://issues.jboss.org/browse/FORGE-1811
Project: Forge
Issue Type: Bug
Components: Maven
Affects Versions: 2.5.0.Final
Reporter: Vineet Reynolds
Given a settings.xml file with profiles that activate remote repositories, like [the one
used in WFK
development|https://github.com/jboss-developer/jboss-wfk-quickstarts/blob...],
the VersionRangeRequest failures are encountered:
{noformat}
WARNING: Could not install Facet of type [class
org.jboss.forge.addon.facets.AbstractFacet_$$_javassist_f2834ff7-c2f0-4484-bfb6-80e880fec7c2],
due to exception:
java.lang.IllegalStateException: Could not resolve version for dependency
[org.jboss.spec.javax.faces:jboss-jsf-api_2.0_spec:::].
at
org.jboss.forge.addon.projects.impl.DependencyInstallerImpl.install(DependencyInstallerImpl.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
at
org.jboss.forge.addon.projects.impl.DependencyInstallerImpl_$$_javassist_a0a4f4eb-2ac1-410f-8895-a84b9c9fc855.install(DependencyInstallerImpl_$$_javassist_a0a4f4eb-2ac1-410f-8895-a84b9c9fc855.java)
at org.jboss.forge.addon.javaee.AbstractJavaEEFacet.install(AbstractJavaEEFacet.java:81)
at
org.jboss.forge.addon.javaee.faces.AbstractFacesFacetImpl.install(AbstractFacesFacetImpl.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
at
org.jboss.forge.addon.facets.AbstractFacet_$$_javassist_f2834ff7-c2f0-4484-bfb6-80e880fec7c2.install(AbstractFacet_$$_javassist_f2834ff7-c2f0-4484-bfb6-80e880fec7c2.java)
at org.jboss.forge.addon.facets.AbstractFaceted.install(AbstractFaceted.java:76)
at org.jboss.forge.addon.facets.FacetFactoryImpl.install(FacetFactoryImpl.java:212)
at org.jboss.forge.addon.facets.FacetFactoryImpl.install(FacetFactoryImpl.java:139)
at org.jboss.forge.addon.facets.FacetFactoryImpl.install(FacetFactoryImpl.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
at
org.jboss.forge.addon.facets.FacetFactoryImpl_$$_javassist_7c622a44-6b3f-479f-a563-63193e506080.install(FacetFactoryImpl_$$_javassist_7c622a44-6b3f-479f-a563-63193e506080.java)
at
org.jboss.forge.addon.javaee.faces.ui.FacesSetupWizard.execute(FacesSetupWizard.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)
at
org.jboss.forge.addon.javaee.faces.ui.FacesSetupWizard_$$_javassist_4d1a8c08-cf39-4c32-8cd7-7204e27638d5.execute(FacesSetupWizard_$$_javassist_4d1a8c08-cf39-4c32-8cd7-7204e27638d5.java)
at
org.jboss.forge.addon.ui.result.navigation.CompositeCommand.execute(CompositeCommand.java:82)
at
org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:153)
at
org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$1.call(ClassLoaderAdapterCallback.java:103)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
at
org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:76)
at
org.jboss.forge.addon.ui.controller.CommandController_$$_javassist_56d4423c-4ab7-48ed-b8fa-9000898f9d2a.execute(CommandController_$$_javassist_56d4423c-4ab7-48ed-b8fa-9000898f9d2a.java)
at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:86)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
{noformat}
In the above case, the artifact is apparently present in M2 central and it's versions
should have been fetched, but this is not the case.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)