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 215046

Summary: incorrect formatting for maven project
Product: projects Reporter: medeag
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: RESOLVED WONTFIX    
Severity: normal CC: jlahoda
Priority: P4    
Version: 7.1.2   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description medeag 2012-07-01 16:12:40 UTC
Product Version: NetBeans IDE 7.1.2 (Build 201204101705)
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-415
System: Mac OS X version 10.7.4 running on x86_64; MacRoman; ka_GE (nb)

tried to create new maven java application;
the generated App.java doesn't use  the default ide formatting, no author field in comments and looks like:


/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
    }
}

Also should not it give  the opportunity to user to choose class name in wizard?
Comment 1 Jan Lahoda 2012-07-09 21:36:00 UTC
I guess this is more related to Maven than to the editor. Files created through DataObject.createFromTemplate are passed through the appropriate formatter, AFAIK, but when a file is created by other means, it is the responsibility of the code that creates it to pass it through the formatter (see editor.indent), IMO.

Thanks.
Comment 2 Milos Kleint 2012-07-10 05:57:41 UTC
we use maven archetypes to create new projects. Some have privileged position and their own wizard entry but most are just entries in the list in the Project from Archetype wizard.

related to issue 208462, however neither solves what to do with the rest of the archetypes.
Comment 3 Martin Balin 2016-07-07 08:38:13 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