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.
Using Dev build from 201110140600 Steps to reproduce: 1.) Create a NetBeans Module *Maven* project 2.) Use the "File Type..." wizard to create a new file type. 3.) Build the project. On my example project, I get the compilation error: org/netbeans/modules/xquery/mavenproject1/MyFormatDataObject.java:[38,41] error: Cannot find resource org/netbeans/modules/xquery/mavenproject1/Bundle.properties The file does, however, exist under src/main/resources. However, if I copy the file to the same package under src/main/java, the project will then build without the error.
Reproducible using RELEASE71-BETA. ${name}VisualElement compiles since it using @Messages, but ${name}DataObject for whatever reason is not, and MultiViewProcessor is not finding src/main/resources/**/Bundle.properties. If both use @Messages, it is OK; and if neither use @Messages, it is OK; but compilation breaks in LayerBuilder.validateResource if just one class in the package uses @Messages but the other does not. The reason is that due to a bug in javac the Maven compiler plugin does not pass src/main/resources in -sourcepath, but expects to find the bundle key in target/classes. That apparently does not work if some of the bundle is generated by @Messages.
core-main #21b8e09e0312
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/21b8e09e0312 User: Jesse Glick <jglick@netbeans.org> Log: #203794: Can't find resource bundle for new file type nb module maven project
Need to use @Messages for all templates using annotations, or mixture will not build under Maven. Currently some templates use @Messages for anno attrs like displayName but others do not.
core-main #10c9015ab9ec
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/10c9015ab9ec User: Jesse Glick <jglick@netbeans.org> Log: #203794: All templates with #key annotation attributes must use @Messages to build in Maven