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.
Created attachment 146345 [details] Screenshot-A Hello, 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 : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.4</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> <containerConfigXML>src/main/config/${env.company}/${env.name}/webapp/context.xml</containerConfigXML> <webResources> <resource> <directory>src/main/config/${env.company}/${env.name}/webapp/WEB-INF</directory> <filtering>true</filtering> <targetPath>WEB-INF</targetPath> </resource> <resource> <directory>src/main/webapp/WEB-INF</directory> <filtering>true</filtering> <targetPath>WEB-INF</targetPath> <includes> <include>**/*.jsp</include> </includes> </resource> </webResources> </configuration> </plugin>
Created attachment 146346 [details] Screenshot-B 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.
Hello! I have similar problem. When I have additional webResources defined, the default src/main/webapp not visible. pom.xml snippet: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.4</version> <configuration> <webResources> <resource> <!-- custom files by defined profile variable --> <directory>src/main/resources/${myProfile}/webapp</directory> </resource> </webResources> </configuration> </plugin> </plugins> </build> The default src/main/webapp should be visible always, if not excluded with an exact directive. Thanx
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) Changeset: http://hg.netbeans.org/main-silver/rev/a8db2e08622e User: Martin Janicek <mjanicek@netbeans.org> 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 [1]. Could you please wait and when you will be able to get nightly build from date 10.7 or newer than try it out? [1] http://bits.netbeans.org/dev/nightly/
tested with 2014-07-21_00-01-50 and works great! Thanx!
Awesome, thanks for given me a message!