简体   繁体   中英

Google Eclipse plugin warnings about test dependencies

I created a new Web App project in Eclipse (via the Google plugin) and began adding JARs to the war/WEB-INF/lib folder. However, there are several test-only dependencies ( junit , mockito , arquillian , hamcrest , etc.) that I do not want to pacakge in the product WAR. So instead, I just created a lib/test directory under my project root, added the test JARs there, and then added them to the project buildpath.

When I do this, I get the following Eclipse Warning (in this example, for mockito ):

The following classpath entry '/home/myuser/workbench/eclipse/workspace/myapp/lib/test/mockito-1.9.5.jar' will not be available on the server's classpath.

If I put these JARs inside war/WEB-INF/lib , they go away; but I don't want them in there. Is there a way to tell the Google Eclipse plugin to ignore these dependencies because they are test dependencies? Otherwise, how do GWT developers normally quiet these warnings? Thanks in advance!

右键单击警告,快速修复,“不要警告我...”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM