Maven web project problem - Library is missing from artifact
Hi all,
My girlfriend works in web development, at their company they have a fairly large web-app structured as a multi-pom maven project (don't ask, it's awful). Whenever IntelliJ refreshes the modules, she gets a bunch of messages in Project Structure saying "Library xxx is missing from the artifact". Normally she gets a couple and it doesn't seem to affect anything, but recently something has changed and she's getting thousands of them and it now prevents her from starting her project up. Is there any easy way to fix this?
She's on 11.0.2, IU-111.27 on OSX Snow Leopard.
Thanks in advance for any help - this is driving us nuts.
Colin
Please sign in to leave a comment.
Hello,
when the project is imported from Maven IDEA should add all required libraries to artifacts. Is it possible to get pom.xml files from her project to
reproduce the problem?
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Nikolay,
I filed http://youtrack.jetbrains.com/issue/IDEA-85001
Cheers,
Colin
Hi Nikolay,
I'm sorry to badger you, but did you manage to see anything with this? She's having to use Eclipse to work and is hating it... even a workaround would be great.
Cheers,
Colin
Hello,
I've fixed the problem in IDEA 12 branch and we will try to backport it to IDEA 11.1.2.
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Perfect, thanks! Is there any workaround we can use in the meantime? Is it something specific about the poms that provokes it?
Actually there were several problems. One of them was caused by archive/manifest/addClasspath option in maven-war-plugin which is incorrectly treated
by IDEA. If you don't need to include libraries to class-path attributes of manifest files (it seems useless in your project because WAR files aren't
packed in EAR) you can remove this option. After that IDEA will add libraries to /WEB-INF/lib directory in artifacts configurations. However other
problems won't be fixed by that.
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Ok, we'll try that and see if it's workable until we get the full fix. I'll monitor the 11.1 EAPs looking for it.
Thanks for the great support!