This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241637 - Disable "Finish" button and provide and error if required additional properties are not specified for maven archetype
Summary: Disable "Finish" button and provide and error if required additional properti...
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-10 12:39 UTC by Denis Anisimov
Modified: 2016-07-07 08:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Anisimov 2014-02-10 12:39:29 UTC
Maven archetype could have additional properties which are required to generate a project.
If property has no default value then project generation fails.
If means that wizard UI should not allow to proceed if required property is not set and there is no default value.
It's hard to identify what is the reason of the maven generation fail after wizard is closed.
Comment 1 Denis Anisimov 2014-02-10 12:48:22 UTC
See also issue #241638.
Comment 2 Milos Kleint 2014-02-10 13:03:24 UTC
The maven output will describe the error in some way:

Property newProjectName is missing. Add -DnewProjectName=someValue
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 3.974s
Finished at: Mon Feb 10 13:57:33 CET 2014
Final Memory: 10M/156M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: Archetype org.appverse.web.framework.archetypes.gwt:appverse-web-archetypes-gwt:1.3-RELEASE is not configured
Property newProjectName is missing.
Comment 3 Denis Anisimov 2014-02-10 19:07:05 UTC
(In reply to Milos Kleint from comment #2)
> The maven output will describe the error in some way:
> 
> Property newProjectName is missing. Add -DnewProjectName=someValue
> ------------------------------------------------------------------------

Sure.
But for unexperienced user it doesn't help to identify the problem.
The final result : project is not created and it's not clear what is the cause of this fail: OK, something wrong (may be he will even notice the absence of property).
But there is no exact explanation how it could be fixed.
Those additional properties are not highlighted. It's not obvious that something has been missed in the wizard.
Comment 4 Martin Balin 2016-07-07 08:38:50 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss