Web App Module compilation

Building a web app (actually within a J2EE App)...

I have dependencies on 2 java modules.

In the Web Module settings, I have selected "jar module output and copy files to" and the path defaults to the obvious place, putting a jar based on the java modules name underneath the WEB-INF/lib. Looks good to me.

When I build, however, I see that it not only built the jar and put it under WEB-INF/lib, but it also copied all the classes under WEB-INF/classes.

Bug?

This is in 5.1.1.

Thanks,
ken

2 comments

Hello Ken,

I suppose it may be caused by one of the following reasons:
1) WEB-INF/classes is specified as the output path for your java module
2) source of these classes are placed under a source folder of your web module

Building a web app (actually within a J2EE App)...

I have dependencies on 2 java modules.

In the Web Module settings, I have selected "jar module output and
copy files to" and the path defaults to the obvious place, putting a
jar based on the java modules name underneath the WEB-INF/lib. Looks
good to me.

When I build, however, I see that it not only built the jar and put it
under WEB-INF/lib, but it also copied all the classes under
WEB-INF/classes.

Bug?

This is in 5.1.1.

Thanks,
ken

---
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Neither of those cases is true. Either would be a fairly unusual setup. As far as I know, the module setups in this project are as standard and clean as possible.

One question: If I set the dependent java module to export in another java module which is also a dependent module for the web module, could this cause this effect?

Also, please see post:
http://www.intellij.net/forums/thread.jspa?messageID=5093631&#5093631

Thanks,
ken

0

Please sign in to leave a comment.