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.
Summary: | All templates with #key annotation attributes must use @Messages to build in Maven | ||
---|---|---|---|
Product: | apisupport | Reporter: | rptmaestro <rptmaestro> |
Component: | Templates | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jtulach |
Priority: | P3 | ||
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 181355 |
Description
rptmaestro
2011-10-17 05:56:41 UTC
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 |