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: | Error in files, while maven builds without problems | ||
---|---|---|---|
Product: | projects | Reporter: | cezariusz <cezariusz> |
Component: | Maven | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | monezz, pjiricka |
Priority: | P3 | ||
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Errors in the project
Simple project to reproduce the problem Netbeans is not picking up the generated schema classes Other project where it shows generated file Another sample project which works ok |
Description
cezariusz
2011-10-12 09:41:20 UTC
Created attachment 111922 [details]
Errors in the project
Created attachment 111943 [details]
Simple project to reproduce the problem
Reproducet with the latest build 201110110600. I've just checked, to be sure, the attached sample project builds without errors with both Maven 2.2.1 and 3.0.3 (both standalone and bundled). Created attachment 111949 [details]
Netbeans is not picking up the generated schema classes
Reproduced on:
Product Version: NetBeans IDE Dev (Build 201110100600)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02
System: Linux version 2.6.38-11-generic running on amd64; UTF-8; en_US (nb)
Netbeans does not seem to pickup the generated schema classes
Errors disappear when the jaxws-maven-plugin configuration is altered so the generated sources end up in the generated-sources folder under target (where they should go by default imo). <configuration> <sourceDestDir>${project.build.directory}/generated-sources/jaxws</sourceDestDir> ... </configuration> (In reply to comment #6) > Errors disappear when the jaxws-maven-plugin configuration is altered so the > generated sources end up in the generated-sources folder under target (where > they should go by default imo). Yes, that is the conventional place; it is sort of a bug in the plugin that it picks an inappropriate default. Feel free to file that upstream. *** This bug has been marked as a duplicate of bug 191864 *** Created attachment 111979 [details]
Other project where it shows generated file
Created attachment 111980 [details]
Another sample project which works ok
In that case please tell me, how is it possible, that in the attached project "cezargis-ws-buffer", also without sourceDestDir parameter, NetBeans doesn't report any errors and shows generated class (see the screenshot).
I've attached another sample project, very similar, also without sourceDestDir parameter, where NetBeans doesn't report any errors. Why it behaves differently in this case? In the ws-buffer project you are using the generated classes in the same package as they are generated. This way you don't need the import and Netbeans does not need to resolve the dependency and does not need to see the source files. *** This bug has been marked as a duplicate of bug 191864 *** |