Artifact's setup cleared after external build

Hi,

I have a 'Directory content' added to 'my-webapp:war exploded' artifcat under WEB-INF/classes. Each time I run maven build from console the 'Directory content' is being lost. Is it bug or feature?

Best regards, Eugene.

7 comments
Comment actions Permalink

Hello Yevgen,

If you build from from Maven using command line - it is not affecting IDE configuration files. Could be that this folder is being deleted by Maven?

If issue remains please clarify what is exactly lost? Is it directory content which is lost or artifact configuration? Do you have WEB facet configured? Please provide screenshots of you artifact configuration.

0
Comment actions Permalink

Sorry, what folder? The maven delets its targets only, I hope. And it's the artifact configuration which is lost, not the content. The screenshots attached.

Not sure about Web Facet, probably it's configured as all web stuff is being recoginzed, correctly highlighted etc.



Attachment(s):
Screenshot from 2014-03-31 14:29:01.png
Screenshot from 2014-03-31 14:27:23.png
0
Comment actions Permalink

Where the local folder is located in the project? Is the content/folder itself modified during maven build? Also what IDEA version do you use?

0
Comment actions Permalink

it's in a sibling module and it's not modified during build. The IDEA is IU 135.480.

0
Comment actions Permalink

Can not reproduce this. So the folder is the root of the other module in project? Is it also a Maven module? Can you please also attach idea.log files https://intellij-support.jetbrains.com/entries/23352446 after reproducing the issue.

0
Comment actions Permalink

ok, can't reproduce it anymore. Magic :)

Best regards, Eugene.

0
Comment actions Permalink

It's back again. Now, the added directory is present in the artifact configuration but resources are not foudn... can't reproduce it on smaller project. The log doesn't contain anything suspisouce, except this:


2014-04-16 12:26:15,849 [7216807]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 6074 ms
2014-04-16 12:26:16,238 [7217196]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/customSpringBeans.xml file is null
2014-04-16 12:26:17,323 [7218281]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.ProgressManagerImpl$1@27564695; elapsed time was 372ms
2014-04-16 12:26:19,692 [7220650]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/ant.xml file is null
2014-04-16 12:26:34,699 [7235657]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 11 ms
2014-04-16 12:26:34,699 [7235657]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
2014-04-16 12:26:34,699 [7235657]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms


not sure if it's related thoug.

Best regards, Eugene.
0

Please sign in to leave a comment.