| Summary: | Archetype properties are not set in the Maven Module wizard | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Fred Bricon <fbricon> | ||||
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | igor, matthew | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
On a semi-related note, the finish button is enabled too early in the Maven Module page, so the aforementioned error occurs too when clicking on Finish, right after selecting the archetype, even when applying the fix from my last comment. It should be disabled on the archetype selection page, similarly to the Maven Project Wizard. I'll post a patch if I can get a proper fix. Created attachment 195418 [details]
Patch to add archetype properties in the Module Wizard
Please review / apply the fix.
+1 I reviewed the patch and don't see a problem with it. I was also able to confirm the behaviour before & after applying the patch. Applied the patch. Thank you. |
If you try to create a maven module from an archetype requiring properties, these properties are not displayed in the Archetype Parameters page, resulting in a crash when finish the module creation. Steps to reproduce : - create a pom project - on the pom project, create a new maven module - in the wizard, set the name of the module, click next - choose the org.jboss.weld.archetypes:jboss-javaee6-webapp click next - There should be a "name" parameter available from the archetype, with the value "Java EE 6 webapp project". Instead no parameters are displayed - after setting groupid/version/package, click next -> a popup window displays an error message "Unable to create project from archetype [org.jboss.weld.archetypes:jboss-javaee6-webapp:1.0.1.Beta2], an underlying popup gives more details on the error : "Unable to create project from archetype [org.jboss.weld.archetypes:jboss-javaee6-webapp:1.0.1.Beta2] Archetype org.jboss.weld.archetypes:jboss-javaee6-webapp:1.0.1.Beta2 is not configured Property name is missing." Turns out the following code, present in MavenProjectWizard, is missing in MavenModuleWizard.createPageControls(Composite pageContainer) : {code} archetypePage.addArchetypeSelectionListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent selectionchangedevent) { parametersPage.setArchetype(archetypePage.getArchetype()); getContainer().updateButtons(); } }); {code}