External JARs not deployed within exploded artifact
We have following structure of our project (simplified):
- webclient
- dto
- dal
...
All modules are Maven projects. If we check "Project Structure", we can see in WEB-INF -> lib relations to dto, dal etc. and of course, also to other external dependencies (e.g. Spring libs etc.). Once we deploy webclient to TomEE server as exploded artifact, the output directory in file system contains JARs of dto, dal etc., but the external JARs are missing. I can't find any reasons of that. Build seems to be correct, deployment of webclient to TomEE contains the step "Build exploded artifact"... Does anybody have some idea or experience what can be reason of that?
Note: I've tried to be build the project via pure Maven - the output was correct, WAR file contains also external JARs - so Maven configuration of the project seems to be correct.
Please sign in to leave a comment.
Check the artifact configuration, make sure it includes all the required jars: https://www.jetbrains.com/help/idea/artifacts.html.
Thank you for your feedback. I've checked that and everything seems to be OK - external JARs are there (see WEB-INF/lib on the screenshot) but they are not copied to the output directory of exploded app. Please, would you have another idea?
We'll need a sample to reproduce, you can file a bug at https://youtrack.jetbrains.com/issues/IDEA and attach it there.
We've tried to prepare a sample - but it seems that the issue occurs only on some laptops (actually, we currently observe that on 2 PCs with Win10). The same application is deployed correctly on other laptops. We have tried to check various logs of IntelliJ IDEA - but there is nothing interesting. Would you have idea what we could test somehow (permissions, system paths...)?
Try starting with all the defaults, delete IntelliJ IDEA folders (https://intellij-support.jetbrains.com/hc/articles/206544519). Update to the latest version from http://www.jetbrains.com/idea/download/index.html.
Serge, thank you for your feedback. I tried to follow your advice and it worked - unfortunately only a while. After one hour of work, "something" happened and the trouble was back. I tried to
1. uninstall IntelliJ and install it back - no success.
2. uninstall IntelliJ and delete caches and local history (I left settings and installed plugins untouched) - no success.
3. uninstall IntelliJ and delete settings and installed plugins (I left caches and local history untouched) - no success.
4. uninstall IntellilJ and delete caches, local history, settings and installed plugins - success.
As I don't really know what the "something" was, I will try to be more careful what I do in the next days and I will add new info once I have some.
We've found what the "something" was - we simply started Maven goal "compile" on one of our project by selecting "Configuration" and clicking on "Run". The process finished properly but the deploy stopped working after that :-(
It's not clear why it happens, so a reproducible test case would be appreciated.
Same problem here. On a Windows desktop, external JARs are missing with EAP. On a Linux desktop, exactly the same project works,
Did try to export settings from Linux to Windows. That did not result in a working project either.
Cleared IDEA directory and local Maven repository. But that did not help too
Not sure how we could provide a test case because same project works on other hosts.
I would only point to bug report here where next team has the same issue (at least it seems to be so): https://youtrack.jetbrains.com/issue/IDEA-173062
As S.F. wrote (in fact, me as well few rows above), there is almost no chance to prepare test case. Any idea what we could send you to help in identification of this issue would be appreciated.
If a "bisect" would need a manageable number of builds of test, I would help to test them
Same Issue,
Project always used to work, A delete of all intelliJ stuffs only works for a very short time frame then reverts back the bad behaviour
No external libs, Only project artifacts.
Dev team is down and out.
Pretty much can't create a test case (as mentioned by everyone else), maybe to reproduce you would only have to open an ear maven project and keep it open for about an hour for it to bomb out.
IntelliJ IDEA 2018.1.1 (Ultimate Edition)
Build #IU-181.4445.20, built on April 2, 2018
Licensed to Marc Magon
Subscription is active until April 30, 2018
JRE: 1.8.0_152-release-1136-b27 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Make sure you didn't select to store the project files externally, it may cause issues in the current version: https://youtrack.jetbrains.com/issue/IDEA-189112.