Tomcat build is copying entire class hierarchy

Despite the fact I have my Tomcat deployment Artifact defined to include only 3 of my 12 IDEA Modules, for some reason during a build/debug process IDEA is copying what appears to be my entire class hierarchy into the deployment dir (including files that are outside the 3 modules in the Artifact).  There are no Module dependencies that would cause the extra files to be copied, either.

Is this a known bug in IDEA 10.5?  Do other people see this happening?

4 comments

FYI, doing Invalidate Caches seems to have fixed the problem...

0

I take that back, Invalidating Caches did not fix the problem.  But installing the Artifact to JBoss does work correctly.  It's just the Tomcat deploy that copies the additional unnecessary files.

0

Here is some more insight.  Look at what my build-dir artifacts folder looks like.  It looks like the install keeps recursing one level deeper every build.  Notice the directory structure keeps repeating itself until it finally results in the source code root:


mymachine% pwd
/Users/eherman/Developer/Source/Clients/TC/git/myapp/build/classes/artifacts/Vaadin_war_exploded/WEB-INF/classes/artifacts/Vaadin_war_exploded/WEB-INF/classes/artifacts/Vaadin_war_exploded/WEB-INF/classes/artifacts/Vaadin_war_exploded/WEB-INF/classes/artifacts/Vaadin_war_exploded/WEB-INF/classes/artifacts/Vaadin_war_exploded/WEB-INF/classes/artifacts/Vaadin_war_exploded/WEB-INF/classes/artifacts/Vaadin_war_exploded/WEB-INF/classes/artifacts/Vaadin_war_exploded/WEB-INF/classes/com

0

As a follow-up, while I still don't understand why the recursion is happening whenever I do another deploy (as shown in the pwd above), I did resolve this problem by fixing a bad reference in the Web Artifact settings in IDEA.  I wish the error messages were more verbose, so I could have found the solution with less effort.

0

Please sign in to leave a comment.