Created attachment 146345 [details]
I'm managing a multi-company / multi environment project using maven profiles with a specific maven-war-plugin configuration.
This is done by declaring two entries in the plugin's webresouces section :
- One containing company specific configuration (location is defined using profile-declared variables)
- The standard one under src/main/webapp containing common files
This configuration seems to be managed correctly by netbeans which shows in the project structure the various WebInf directories, except that one entry is always duplicated (see screenshots).
Worse, when switching profiles, the display is completely messed up.
Below an extract of my pom.xml file :
Created attachment 146346 [details]
Screenshot after switching a profile.
From times to times, the directory icon for the empty node is replaced by a file icon.
Thanks, I will take a look at it.
I have similar problem.
When I have additional webResources defined, the default src/main/webapp not visible.
<!-- custom files by defined profile variable -->
The default src/main/webapp should be visible always, if not excluded with an exact directive.
Created attachment 147709 [details]
default src/main/webapp not visible
Thanks you both guys for reporting the problem. I'm able to reproduce the problem using your pom snippets. I'm going to fix it ASAP
Fixed by change-set: web-main #a8db2e08622e
Can you guys please test the result in a few days when a new daily build containing the changes will be available? Thanks in advance!
Integrated into 'main-silver', will be available in build *201407100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Martin Janicek <email@example.com>
Log: #243313 - Custom Maven War WebResources / Project structure pane bug
Sorry, but 201407100001 on http://bits.netbeans.org/dev/nightly/ gives 404, and 201407090001 is the latest.
I have no direct control over the web pages . Could you please wait and when you will be able to get nightly build from date 10.7 or newer than try it out?
tested with 2014-07-21_00-01-50 and works great!
Awesome, thanks for given me a message!