scijava / scijava-maven-plugin

A Maven plugin to manage development of SciJava-based software.
BSD 2-Clause "Simplified" License
3 stars 5 forks source link

EclipseHelperMojo doesn't load EclipseHelper when project linked #10

Open hinerm opened 9 years ago

hinerm commented 9 years ago

When building SCIFIO in Eclipse with project-linkage to SciJava-common, I get an exception with the message: Could not load EclipseHelper.

This comes from a failure to load the org.scijava.annotations.EclipseHelper.class in the EclipseHelperMojo when SJC is project-linked in Eclipse as a dependency of the project I was building.

I checked the built classpath and confirmed that it did point to a path on disk that would find the EclipseHelper class.

The temporary workaround is to close the SJC project in Eclipse.

Occurred on Windows 8.1, Eclipse 4.4.0 and scijava-maven-plugin 0.4.4.

stack trace

java.net.URLClassLoader$1.run(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
org.scijava.maven.plugin.EclipseHelperMojo.execute(EclipseHelperMojo.java:105)
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:328)
ctrueden commented 9 years ago

Thanks to 3f371b47b8d41995c7e6e698f2a082e08877c9ed, there is a friendly suggestion to close scijava-common in case it is an open project linkage. This is good enough for me—it helped me when I ran into the same situation. Technically, this is still an open issue, but I'm assigning to unscheduled milestone since I see no need to address it in the foreseeable future.

hinerm commented 9 years ago

:octopus: