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 - incorrect formatting for maven project
Summary: incorrect formatting for maven project
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.1.2
Hardware: Macintosh (x86) Mac OS X
: P4 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-01 16:12 UTC by medeag
Modified: 2016-07-07 08:38 UTC (History)
1 user (show)

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 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