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: | Since NB 8.0 Our Maven project no longer display Webapp directory | ||
---|---|---|---|
Product: | javaee | Reporter: | plevy <plevy> |
Component: | Maven | Assignee: | Martin Janicek <mjanicek> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | isa78, phejl, plevy |
Priority: | P3 | ||
Version: | 8.0.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
View of project using NB7.4 and NB 8.0
Screenshot with nb-configuration.xml Screenshot |
Description
plevy
2014-04-14 08:25:39 UTC
a sample configuration of the maven-war-plugin or a sample project would help. Created attachment 146736 [details]
View of project using NB7.4 and NB 8.0
here an example of our pom.xml file http://dev.lutece.paris.fr/svn/lutece/portal/trunk/plugins/cms/plugin-document/pom.xml The same project opened in NB7.4 and NB8.0 doesn't show the same folders. In NB8.0 The folder Webapp is missing. Best regards and thanks for your help. Pierre Hi, could you please share your pom configuration of maven-war-plugin ? That's actually the important part that might help us to figure out what is wrong. Thanks Here is the configuration of the maven-war-plugin : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.0</version> <configuration> <warSourceDirectory>webapp</warSourceDirectory> </configuration> </plugin> Regards Hi, It would be great to have a workaround or a fix quite soon. It's not so confortable to access our webapp files throuth the Files tab. If you need some more information, please let me know. Thanks for your help. Best regards. Pierre Sorry for late response, I tried your code snipper and I'm able to reproduce your issue. Will take a look at it. I was digging around and actually it does look to me that this behavior is correct. Assuming you have your webapp directory under the src/main, you should rather use src/main/webapp in your configuration or ideally with respect to maven-war-plugin documentation [1], you could remove the whole warSourceDirectory configuration line as the default location is exactly {projectDir}/src/main/webapp. Even maven is not able to process using your configuration because it can't access web root. I don't have your project, so might be missing something, but it seems to be correct behavior. [1] https://maven.apache.org/plugins/maven-war-plugin/war-mojo.html Closing as INVALID for now, please reopen the issue if my evaluation is wrong and you still be in troubles. Thanks! Dear Martin, This problem is still unsolved for us. You can checkout one of our project such as lutece core : https://github.com/lutece-platform/lutece-core We have upgraded now all our maven plugins notably maven-war-plugin and the problem is still here. Thanks for your help. Best regards Pierre The problem is the custom packaging. You can give the IDE hint via nb-configuration.xml in project root. For example: <?xml version="1.0" encoding="UTF-8"?> <project-shared-configuration> <properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1"> <netbeans.hint.packaging>war</netbeans.hint.packaging> </properties> </project-shared-configuration> This seems to be related - issue #233476. Created attachment 152981 [details]
Screenshot with nb-configuration.xml
Thanks for your answer.
I've added a nb-configuration.xml file in the root directory of the projet.
A new folder "Remote Files" appeared with some jquery files that are not our.
We'd like to have a Folder "Webapp" that shows the content of {projectDir}/webapp
Thanks for your help.
Best regards
Pierre.
Do you have Java EE activated? You should see the webapp folder. The Remote Files is a new feature afaik unrelated to what we are trying to solve here. (In reply to plevy from comment #13) > Created attachment 152981 [details] > Screenshot with nb-configuration.xml > > Thanks for your answer. > > I've added a nb-configuration.xml file in the root directory of the projet. > A new folder "Remote Files" appeared with some jquery files that are not our. > > We'd like to have a Folder "Webapp" that shows the content of > {projectDir}/webapp > > Thanks for your help. > > Best regards > > Pierre. Created attachment 153015 [details]
Screenshot
Thanks Petr.
I don't know why it didn't work after the first IDE reboot, but now I have the blue webapp icon and the webapp directories in the Projects tab. (see the last screenshot).
If there is a way to have for all project instead of putting the nb-configuration.xml file for each, it would be welcomed.
Thanks again for your help.
Best regards.
Pierre
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |