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 243807 - Since NB 8.0 Our Maven project no longer display Webapp directory
Summary: Since NB 8.0 Our Maven project no longer display Webapp directory
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal with 3 votes (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-14 08:25 UTC by plevy
Modified: 2016-07-07 08:53 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
View of project using NB7.4 and NB 8.0 (16.30 KB, image/png)
2014-04-14 12:26 UTC, plevy
Details
Screenshot with nb-configuration.xml (10.36 KB, image/png)
2015-04-01 15:55 UTC, plevy
Details
Screenshot (31.95 KB, image/png)
2015-04-03 10:51 UTC, plevy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description plevy 2014-04-14 08:25:39 UTC

    
Comment 1 Milos Kleint 2014-04-14 08:36:07 UTC
a sample configuration of the maven-war-plugin or a sample project would help.
Comment 2 plevy 2014-04-14 12:26:09 UTC
Created attachment 146736 [details]
View of project using NB7.4 and NB 8.0
Comment 3 plevy 2014-04-14 12:29:16 UTC
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
Comment 4 Martin Janicek 2014-04-14 15:12:46 UTC
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
Comment 5 plevy 2014-04-14 19:19:43 UTC
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
Comment 6 plevy 2014-04-27 13:35:02 UTC
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
Comment 7 Martin Janicek 2014-05-02 09:35:50 UTC
Sorry for late response, I tried your code snipper and I'm able to reproduce your issue. Will take a look at it.
Comment 8 Martin Janicek 2014-05-02 09:52:52 UTC
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
Comment 9 Martin Janicek 2014-05-02 09:53:41 UTC
Closing as INVALID for now, please reopen the issue if my evaluation is wrong and you still be in troubles. Thanks!
Comment 10 plevy 2015-03-04 11:15:27 UTC
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
Comment 11 Petr Hejl 2015-04-01 13:17:02 UTC
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>
Comment 12 Petr Hejl 2015-04-01 13:22:22 UTC
This seems to be related - issue #233476.
Comment 13 plevy 2015-04-01 15:55:13 UTC
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.
Comment 14 Petr Hejl 2015-04-02 08:23:16 UTC
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.
Comment 15 plevy 2015-04-03 10:51:23 UTC
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
Comment 16 Martin Balin 2016-07-07 08:53:29 UTC
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