Community
Participate
Working Groups
It is possible that a pom file can declare dependencies on artefacts that are not jar files. For example, with the Javascript extension I've written, I declare js dependencies with a type of js e.g.: <dependency> <groupId>com.jquery</groupId> <artifactId>jquery</artifactId> <version>1.7b2</version> <type>js</type> </dependency> m2e configures a project's Properties/Java Build Path/Maven Dependencies and declares the js files in that dependency list. I consequently observe the following line in my Problems tab: Archive for required library: '/Users/huntc/.m2/repository/com/jquery/jquery/1.7b2/jquery-1.7b2.js' in project 'JS RIA Flight Subscribers' cannot be read or is not a valid ZIP file JS RIA Flight Subscribers Build path Build Path Problem My recommendation is to avoid adding non ZIP type resources to the build path rather than indicate that they are an error (and no, it shouldn't be a warning either). Thanks.
m2e uses org.apache.maven.artifact.handler.ArtifactHandler.isAddedToClasspath to determine if the dependency should be added to classpath or not. Check if ArtifactHandler corresponding to type=js has isAddedToClasspath=false.
Moved to https://github.com/eclipse-m2e/m2e-core/issues/