[JBoss JIRA] (FORGE-2042) Forge 'New Project' wizard - 'From Archetype' option broken
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2042?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-2042:
----------------------------------------
This happens because our org.jboss.forge.addon.maven.projects.archetype.ArchetypeHelper didn't evaluate the #if statements in the resulting pom.xml.
> Forge 'New Project' wizard - 'From Archetype' option broken
> -----------------------------------------------------------
>
> Key: FORGE-2042
> URL: https://issues.jboss.org/browse/FORGE-2042
> Project: Forge
> Issue Type: Bug
> Components: Build Tools - Maven
> Affects Versions: 2.10.1.Final
> Environment: OS X
> Reporter: George Gastaldi
> Fix For: 2.x Future
>
>
> Forge 2 New Project wizard fails for project type 'From Archetype'
> * Ctrl+4
> * New Project
> * Project name: blah
> * Project type: From Archetype
> * Archetype Group Id: org.jboss.aerogear.archetypes
> * Archetype Artifact Id: jboss-html5-mobile-archetype
> * Archetype Version: 7.1.3.Final
> * Archetype Repository: http://repo1.maven.org/maven2/
> or
> * Archetype Group Id: org.jboss.archetype.wfk
> * Archetype Artifact Id: jboss-html5-mobile-archetype
> * Archetype Version: 2.6.0.Final
> * Archetype Repository: http://repository.jboss.org/nexus/content/groups/public
> Wizard fails with message in Error Log:
> {noformat}
> org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.RuntimeException: org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG or END_TAG not TEXT (position: TEXT seen ... version of the JBoss EAP components we want to use -->\n <v... @50:11) )
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:209)
> at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:156)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4721)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper.onFinish(ForgeWizardHelper.java:56)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:115)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
> Caused by: java.lang.RuntimeException: org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG or END_TAG not TEXT (position: TEXT seen ... version of the JBoss EAP components we want to use -->\n <v... @50:11)
> at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.initialize(MavenModelResourceImpl.java:120)
> at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.getCurrentModel(MavenModelResourceImpl.java:96)
> at org.jboss.forge.addon.maven.projects.MavenFacetImpl.getModel(MavenFacetImpl.java:124)
> at sun.reflect.GeneratedMethodAccessor154.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.maven.projects.MavenFacetImpl_$$_javassist_55122075-0c11-493f-a1ca-83e805ea5320.getModel(MavenFacetImpl_$$_javassist_55122075-0c11-493f-a1ca-83e805ea5320.java)
> at org.jboss.forge.addon.maven.projects.facets.MavenMetadataFacet.getProjectName(MavenMetadataFacet.java:50)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.maven.projects.facets.MavenMetadataFacet_$$_javassist_2cf3fcd2-cfbc-4910-bfb8-de40dd12cabf.getProjectName(MavenMetadataFacet_$$_javassist_2cf3fcd2-cfbc-4910-bfb8-de40dd12cabf.java)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:123)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96)
> at org.jboss.forge.addon.facets.Facet_$$_javassist_718e47d0-0ab5-4306-98e5-0a8169186093.getProjectName(Facet_$$_javassist_718e47d0-0ab5-4306-98e5-0a8169186093.java)
> at org.jboss.tools.forge.ui.internal.ext.importer.ImportEclipseProjectListener.doImport(ImportEclipseProjectListener.java:48)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper.importNewProjects(ForgeWizardHelper.java:102)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper.access$0(ForgeWizardHelper.java:100)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper$1.run(ForgeWizardHelper.java:59)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3983)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:175)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:390)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1059)
> at org.jboss.tools.forge.ui.internal.ext.dialog.ForgeCommandDialog.run(ForgeCommandDialog.java:56)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard.performFinish(ForgeWizard.java:97)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard.performFinish(ForgeWizard.java:87)
> at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)
> at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
> at org.eclipse.jface.window.Window.open(Window.java:808)
> at org.jboss.tools.forge.ui.internal.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:205)
> at org.jboss.tools.forge.ui.internal.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:102)
> at org.jboss.tools.forge.ui.internal.ext.dialog.UICommandListDialog$1$1.handleElementSelected(UICommandListDialog.java:232)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.handleSelection(QuickAccessContents.java:322)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.access$0(QuickAccessContents.java:312)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents$6.mouseUp(QuickAccessContents.java:461)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG or END_TAG not TEXT (position: TEXT seen ... version of the JBoss EAP components we want to use -->\n <v... @50:11)
> at org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1121)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2178)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3807)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:557)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:571)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:600)
> at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.initialize(MavenModelResourceImpl.java:115)
> ... 90 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (FORGE-2042) Forge 'New Project' wizard - 'From Archetype' option broken
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2042?page=com.atlassian.jira.plugin... ]
George Gastaldi moved JBIDE-18433 to FORGE-2042:
------------------------------------------------
Project: Forge (was: Tools (JBoss Tools))
Key: FORGE-2042 (was: JBIDE-18433)
Affects Version/s: 2.10.1.Final
(was: 4.2.0.CR1)
Component/s: Build Tools - Maven
(was: forge)
> Forge 'New Project' wizard - 'From Archetype' option broken
> -----------------------------------------------------------
>
> Key: FORGE-2042
> URL: https://issues.jboss.org/browse/FORGE-2042
> Project: Forge
> Issue Type: Bug
> Components: Build Tools - Maven
> Affects Versions: 2.10.1.Final
> Environment: OS X
> Reporter: George Gastaldi
>
> Forge 2 New Project wizard fails for project type 'From Archetype'
> * Ctrl+4
> * New Project
> * Project name: blah
> * Project type: From Archetype
> * Archetype Group Id: org.jboss.aerogear.archetypes
> * Archetype Artifact Id: jboss-html5-mobile-archetype
> * Archetype Version: 7.1.3.Final
> * Archetype Repository: http://repo1.maven.org/maven2/
> or
> * Archetype Group Id: org.jboss.archetype.wfk
> * Archetype Artifact Id: jboss-html5-mobile-archetype
> * Archetype Version: 2.6.0.Final
> * Archetype Repository: http://repository.jboss.org/nexus/content/groups/public
> Wizard fails with message in Error Log:
> {noformat}
> org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.RuntimeException: org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG or END_TAG not TEXT (position: TEXT seen ... version of the JBoss EAP components we want to use -->\n <v... @50:11) )
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:209)
> at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:156)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4721)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper.onFinish(ForgeWizardHelper.java:56)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:115)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
> Caused by: java.lang.RuntimeException: org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG or END_TAG not TEXT (position: TEXT seen ... version of the JBoss EAP components we want to use -->\n <v... @50:11)
> at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.initialize(MavenModelResourceImpl.java:120)
> at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.getCurrentModel(MavenModelResourceImpl.java:96)
> at org.jboss.forge.addon.maven.projects.MavenFacetImpl.getModel(MavenFacetImpl.java:124)
> at sun.reflect.GeneratedMethodAccessor154.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.maven.projects.MavenFacetImpl_$$_javassist_55122075-0c11-493f-a1ca-83e805ea5320.getModel(MavenFacetImpl_$$_javassist_55122075-0c11-493f-a1ca-83e805ea5320.java)
> at org.jboss.forge.addon.maven.projects.facets.MavenMetadataFacet.getProjectName(MavenMetadataFacet.java:50)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.maven.projects.facets.MavenMetadataFacet_$$_javassist_2cf3fcd2-cfbc-4910-bfb8-de40dd12cabf.getProjectName(MavenMetadataFacet_$$_javassist_2cf3fcd2-cfbc-4910-bfb8-de40dd12cabf.java)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:123)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96)
> at org.jboss.forge.addon.facets.Facet_$$_javassist_718e47d0-0ab5-4306-98e5-0a8169186093.getProjectName(Facet_$$_javassist_718e47d0-0ab5-4306-98e5-0a8169186093.java)
> at org.jboss.tools.forge.ui.internal.ext.importer.ImportEclipseProjectListener.doImport(ImportEclipseProjectListener.java:48)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper.importNewProjects(ForgeWizardHelper.java:102)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper.access$0(ForgeWizardHelper.java:100)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper$1.run(ForgeWizardHelper.java:59)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3983)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:175)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:390)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1059)
> at org.jboss.tools.forge.ui.internal.ext.dialog.ForgeCommandDialog.run(ForgeCommandDialog.java:56)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard.performFinish(ForgeWizard.java:97)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard.performFinish(ForgeWizard.java:87)
> at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)
> at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
> at org.eclipse.jface.window.Window.open(Window.java:808)
> at org.jboss.tools.forge.ui.internal.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:205)
> at org.jboss.tools.forge.ui.internal.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:102)
> at org.jboss.tools.forge.ui.internal.ext.dialog.UICommandListDialog$1$1.handleElementSelected(UICommandListDialog.java:232)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.handleSelection(QuickAccessContents.java:322)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.access$0(QuickAccessContents.java:312)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents$6.mouseUp(QuickAccessContents.java:461)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG or END_TAG not TEXT (position: TEXT seen ... version of the JBoss EAP components we want to use -->\n <v... @50:11)
> at org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1121)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2178)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3807)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:557)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:571)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:600)
> at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.initialize(MavenModelResourceImpl.java:115)
> ... 90 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (FORGE-2042) Forge 'New Project' wizard - 'From Archetype' option broken
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2042?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2042:
-----------------------------------
Fix Version/s: 2.x Future
> Forge 'New Project' wizard - 'From Archetype' option broken
> -----------------------------------------------------------
>
> Key: FORGE-2042
> URL: https://issues.jboss.org/browse/FORGE-2042
> Project: Forge
> Issue Type: Bug
> Components: Build Tools - Maven
> Affects Versions: 2.10.1.Final
> Environment: OS X
> Reporter: George Gastaldi
> Fix For: 2.x Future
>
>
> Forge 2 New Project wizard fails for project type 'From Archetype'
> * Ctrl+4
> * New Project
> * Project name: blah
> * Project type: From Archetype
> * Archetype Group Id: org.jboss.aerogear.archetypes
> * Archetype Artifact Id: jboss-html5-mobile-archetype
> * Archetype Version: 7.1.3.Final
> * Archetype Repository: http://repo1.maven.org/maven2/
> or
> * Archetype Group Id: org.jboss.archetype.wfk
> * Archetype Artifact Id: jboss-html5-mobile-archetype
> * Archetype Version: 2.6.0.Final
> * Archetype Repository: http://repository.jboss.org/nexus/content/groups/public
> Wizard fails with message in Error Log:
> {noformat}
> org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.RuntimeException: org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG or END_TAG not TEXT (position: TEXT seen ... version of the JBoss EAP components we want to use -->\n <v... @50:11) )
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:209)
> at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:156)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4721)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper.onFinish(ForgeWizardHelper.java:56)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:115)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
> Caused by: java.lang.RuntimeException: org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG or END_TAG not TEXT (position: TEXT seen ... version of the JBoss EAP components we want to use -->\n <v... @50:11)
> at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.initialize(MavenModelResourceImpl.java:120)
> at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.getCurrentModel(MavenModelResourceImpl.java:96)
> at org.jboss.forge.addon.maven.projects.MavenFacetImpl.getModel(MavenFacetImpl.java:124)
> at sun.reflect.GeneratedMethodAccessor154.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.maven.projects.MavenFacetImpl_$$_javassist_55122075-0c11-493f-a1ca-83e805ea5320.getModel(MavenFacetImpl_$$_javassist_55122075-0c11-493f-a1ca-83e805ea5320.java)
> at org.jboss.forge.addon.maven.projects.facets.MavenMetadataFacet.getProjectName(MavenMetadataFacet.java:50)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.maven.projects.facets.MavenMetadataFacet_$$_javassist_2cf3fcd2-cfbc-4910-bfb8-de40dd12cabf.getProjectName(MavenMetadataFacet_$$_javassist_2cf3fcd2-cfbc-4910-bfb8-de40dd12cabf.java)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:123)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96)
> at org.jboss.forge.addon.facets.Facet_$$_javassist_718e47d0-0ab5-4306-98e5-0a8169186093.getProjectName(Facet_$$_javassist_718e47d0-0ab5-4306-98e5-0a8169186093.java)
> at org.jboss.tools.forge.ui.internal.ext.importer.ImportEclipseProjectListener.doImport(ImportEclipseProjectListener.java:48)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper.importNewProjects(ForgeWizardHelper.java:102)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper.access$0(ForgeWizardHelper.java:100)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizardHelper$1.run(ForgeWizardHelper.java:59)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3983)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:175)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:390)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1059)
> at org.jboss.tools.forge.ui.internal.ext.dialog.ForgeCommandDialog.run(ForgeCommandDialog.java:56)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard.performFinish(ForgeWizard.java:97)
> at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard.performFinish(ForgeWizard.java:87)
> at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)
> at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
> at org.eclipse.jface.window.Window.open(Window.java:808)
> at org.jboss.tools.forge.ui.internal.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:205)
> at org.jboss.tools.forge.ui.internal.ext.dialog.WizardDialogHelper.openWizard(WizardDialogHelper.java:102)
> at org.jboss.tools.forge.ui.internal.ext.dialog.UICommandListDialog$1$1.handleElementSelected(UICommandListDialog.java:232)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.handleSelection(QuickAccessContents.java:322)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents.access$0(QuickAccessContents.java:312)
> at org.jboss.tools.forge.ui.internal.ext.quickaccess.QuickAccessContents$6.mouseUp(QuickAccessContents.java:461)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG or END_TAG not TEXT (position: TEXT seen ... version of the JBoss EAP components we want to use -->\n <v... @50:11)
> at org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1121)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2178)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3807)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:557)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:571)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:600)
> at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.initialize(MavenModelResourceImpl.java:115)
> ... 90 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (FORGE-2039) @Inject Imported includes duplicate services
by Jess Sightler (JIRA)
[ https://issues.jboss.org/browse/FORGE-2039?page=com.atlassian.jira.plugin... ]
Jess Sightler edited comment on FORGE-2039 at 9/24/14 6:12 PM:
---------------------------------------------------------------
Without @Specializes, the Imported variable contains the following three entries:
Class name: org.duplicateservicetest.SampleServiceSubclass
Class name: org.duplicateservicetest.SampleServiceBase
Class name: org.duplicateservicetest.SampleServiceSubclass
With @Specializes in the subclass, it returns two entries:
Class name: org.duplicateservicetest.SampleServiceSubclass
Class name: org.duplicateservicetest.SampleServiceSubclass
Neither of these outcomes appears to be correct to me.
was (Author: jsightler):
Adding @Specializes does change things,
> @Inject Imported includes duplicate services
> --------------------------------------------
>
> Key: FORGE-2039
> URL: https://issues.jboss.org/browse/FORGE-2039
> Project: Forge
> Issue Type: Feature Request
> Reporter: Jess Sightler
> Attachments: duplicateservicetest.zip
>
>
> Interface: SampleInterface
> Implementations:
> SampleServiceBase
> SampleServiceSubclass (subclass of SampleServiceBase)
> @Inject
> private Imported<SampleInterface> interfaces;
> This injected list will contain two copies of SampleServiceSubclass.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (FORGE-2040) man page for project-new is not particularly helpful
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-2040?page=com.atlassian.jira.plugin... ]
Lincoln Baxter III closed FORGE-2040.
-------------------------------------
Fix Version/s: 2.10.2.Final
Resolution: Done
Done.
{code}
NAME
project-new -- Project/Generation
SYNOPSIS
project-new [-] [--buildSystem] ProjectProvider [--named] String [--type] ProjectType
DESCRIPTION
Create a new project (multi-step wizard - some options may not be auto-documented in this man page.)
--buildSystem
Build system - [ProjectProvider] (required) Valid choices: ["Maven" ]
--finalName
Final name - [String]
--named
Project name - [String] (required)
--overwrite
Overwrite existing project location - [Boolean] defaults to: [false]
--targetLocation
Project location - [DirectoryResource] defaults to: [/Users/lb3/Desktop]
--topLevelPackage
Top level package - [String] defaults to: [org.example]
--type
Project type - [ProjectType] (required) Valid choices: ["war" "jar" "parent" "addon" "ear"
"resource-jar" "from-archetype" "from-archetype-catalog" ]
--version
Version - [String] defaults to: [1.0.0-SNAPSHOT]
RESOURCES
forge: <http://forge.jboss.org/>
COPYING
Manual page project-new(1) line 1 (press h for help or q to quit)
{code}
> man page for project-new is not particularly helpful
> ----------------------------------------------------
>
> Key: FORGE-2040
> URL: https://issues.jboss.org/browse/FORGE-2040
> Project: Forge
> Issue Type: Feature Request
> Reporter: Jess Sightler
> Assignee: Lincoln Baxter III
> Fix For: 2.10.2.Final
>
>
> buildSystem is not documented
> type does not list available types
> None of them list a calling convention (-- is the standard in forge, I think, but that should appear on this page as well).
> Multiple options are described as "required' when they actually have default values that are not specified here.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months