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 211718 - Maven web project broken when URLDisplayer registred in MockServices
Summary: Maven web project broken when URLDisplayer registred in MockServices
Status: VERIFIED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: Martin Janicek
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2012-04-25 14:20 UTC by Jiri Skrivanek
Modified: 2012-05-02 09:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot from tests. (172.05 KB, image/png)
2012-04-25 14:20 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-04-25 14:20:08 UTC
Created attachment 118751 [details]
Screen shot from tests.

Maven web project is somehow screwed up when custom URLDisplayer is registered in tests. Concretely when this is called

       MockServices.setServices(TestURLDisplayer.class);

in this class

web.kit\test\qa-functional\src\org\netbeans\test\web\WebProjectValidation.java

the Source Packages node disappears, Run category in project properties shows nothing and when you run project it changes icon (see screen shot) and war is not deployed. To reproduce:

ant -f web.kit -Dtest.includes=org/netbeans/test/web/MavenWebProjectValidation.java -Dtest.type=qa-functional test-single -Dtest-qa-functional-sys-prop.glassfish.home=/tmp/glassfish
Comment 1 Jiri Skrivanek 2012-05-02 09:29:03 UTC
Works for me in NetBeans IDE Dev (Build 20120502-2d7d60ce379d).