Web app project/artifact deployment in pictures.

Hi all.
I had and still have dificulties with deployment idea 12.0.2 web project as WAR exploded articate.
Project has two module /common jar + web app module. Project is created by gradle 1.3 build script, exploded war artifact is created manually, but I can't get it properly working.
The same project build by gradle script work fine.

Here is my screens. Am I missing something?



Attachment(s):
ij_project_5.png
ij_project_4.png
ij_project_3.png
ij_project_2.png
ij_project_1.png
7 comments

Hi Yuriy,

'src/main/webapp' dir shouldn't be marked as a source dir. It should be configured at the web facet instead:
facet.png

Here is the artifact's configuration:
artifact.png

Denis

0

Hi Denis,
thank you for quick support answer.
Now I have much better result but it is still not quite good and have some mess inside deplyment folder.



Attachment(s):
ij_project_10.png
ij_project_9.png
0

Ok, I read again you suggestion and removed that.

'src/main/webapp' dir shouldn't be marked as a source dir.

That removes duplicated /WEB-INF/classes/WEB-INF... folder from deployment

but it still has folders with classes on top level:

\trunk\build\production\web-app\

com\

generated\

lang\

............

0

Try to not make but rebuild the project and artifacts (Main Menu | Build | Rebuild Project).

Attach a sample project here is that doesn't help.

Denis

0

It seems that the same directory (trunk\build\production\web-app) is used as an output directory for the both the module 'web-app' and the artifact 'web-app'. Try to specify different output directory for the module 'web-app'.

0

Try to not make but rebuild the project and artifacts (Main Menu | Build | Rebuild Project).

Sure, I did that way.

It seems that the same directory (trunk\build\production\web-app) is used as an output directory for the both the module 'web-app' and the artifact 'web-app'. Try to specify different output directory for the module 'web-app'.

Nikolay, you are completely right.
I had 'web-app' module compile output path the same as for 'web-app' artifact.
After changing output for 'web-app' module to (trunk\build\production\web-app-module) now it works as expected, 'web-app' artifact folder contains completely correct content.

Thanks you guys.
Problem is SOLVED.
0

Please sign in to leave a comment.