Missing dependencies for loose application
Answered
Hello,
i am trying to start a web application as a loose application on a websphere liberty with intellij idea 2018.2.
The build xml-file, which includes all paths to the needed jar-File, is missing some archive-files and i cannot start our application.
The last intellij version where this problem doesnt occur is 2017.2.7.
Has somebody an idea what could be so problem and how i can solve it?
I can provide more informations if you need them.
Thanks!
Please sign in to leave a comment.
Do you get any errors? Could be related: https://youtrack.jetbrains.com/issue/IDEA-196570. Please try this patch: https://youtrack.jetbrains.com/issue/IDEA-196570#focus=streamItem-27-3020838-0-0.
i already patched my idea. without the patch the idea could not generate the xml-file for the deployment.
And with the patched version a xml-file is generated but not a complete one.
i only get errors because the jars are missing.
Please provide more info. Which jars are missing? What errors and when do you get? Can you attach that xml file?
bad xml (with 2018.2)
good xml with 2017.2
i.e. <file sourceOnDisk="Q:\maven-repository\javassist\javassist\3.11.0.GA\javassist-3.11.0.GA.jar" targetInArchive="/WEB-INF/lib/javassist-3.11.0.GA.jar" /> is missing
this jar is declared in the pom-file of the sbt-persist project not in the parent pom
We can not reproduce the problem.
Tried with
ch-multi-springsample from maven book (https://github.com/sonatype/maven-example-en/blob/master/chapter-multimodule-web-spring.asciidoc), where the web module depends onsimple-persistmodule from the same parent.I can see that in both 2018.2 and 2018.3, whenever I add any new dependency to
simple-persistpom.xml and reimport, the new jar is included into the loose app xml after the next deploy to WLP (note that loose app xml is regenerated in Before Run action at the deploy time not at the build time).(Actually, the original code downloaded from http://books.sonatype.com/mvnex-book/mvnex-examples.zip does not have dependency to hsqldb in the
simple-persistmodule, so deploying to LIberty fails for me until I manually add the hsql dependency intosimple-persistmodule, that is, a a transitive dependency for web-module).If sharing of your exact project is not an option, could you please reproduce the same problem with the sample project above.