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 203585 - Error in files, while maven builds without problems
Summary: Error in files, while maven builds without problems
Status: RESOLVED DUPLICATE of bug 191864
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 09:41 UTC by cezariusz
Modified: 2011-10-29 01:36 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Errors in the project (140.98 KB, image/png)
2011-10-12 09:42 UTC, cezariusz
Details
Simple project to reproduce the problem (47.68 KB, application/x-zip-compressed)
2011-10-12 14:45 UTC, cezariusz
Details
Netbeans is not picking up the generated schema classes (255.60 KB, image/png)
2011-10-12 19:08 UTC, monezz
Details
Other project where it shows generated file (124.60 KB, image/png)
2011-10-13 08:41 UTC, cezariusz
Details
Another sample project which works ok (68.61 KB, application/x-zip-compressed)
2011-10-13 08:54 UTC, cezariusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2011-10-12 09:41:20 UTC
[ BUILD # : 201109260601 ]
[ JDK VERSION : 1.6.24 ]

I have maven project with deep hierarchy. When I do "Clean and build", it
builds without errors (see the output), but in NB there are a lot of errors
that it cannot find classes, which come from dependencies.
Comment 1 cezariusz 2011-10-12 09:42:03 UTC
Created attachment 111922 [details]
Errors in the project
Comment 2 cezariusz 2011-10-12 14:45:40 UTC
Created attachment 111943 [details]
Simple project to reproduce the problem
Comment 3 cezariusz 2011-10-12 14:47:53 UTC
Reproducet with the latest build 201110110600.
Comment 4 cezariusz 2011-10-12 16:16:12 UTC
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).
Comment 5 monezz 2011-10-12 19:08:40 UTC
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
Comment 6 monezz 2011-10-12 19:40:39 UTC
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>
Comment 7 Jesse Glick 2011-10-12 22:47:11 UTC
(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 ***
Comment 8 cezariusz 2011-10-13 08:41:11 UTC
Created attachment 111979 [details]
Other project where it shows generated file
Comment 9 cezariusz 2011-10-13 08:54:55 UTC
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).
Comment 10 cezariusz 2011-10-13 08:57:00 UTC
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?
Comment 11 monezz 2011-10-13 09:11:47 UTC
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.
Comment 12 Jesse Glick 2011-10-29 01:36:06 UTC

*** This bug has been marked as a duplicate of bug 191864 ***