What folder Main is located at?
Errors like this usually resolved by running "Maven / Update project configuration". In some cases you also need to recreate your launch configurations after that. You can find the actual classpath used to launch your class in Debug view. See http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-HowtoretrieveanactualcommandlineusedtostartJVMandMaven

 regards,
 Eugene


sverhagen wrote:
I googled for this to no avail. I'd appreciate your help.

We have the following projects:
- "pkg-stationentry", dependency on "stationentry", I've posted a snippet of
its POM below
- "stationentry", has a Main.java with a main(...) method

I want to be able to run the main through "pkg-stationentry". I right-click
on the "pkg-stationentry" project in Eclipse, choose "Run As" "Java
Application". Now:
- With workspace resolution enabled: it does not find main
- With workspace resolution disabled: it does find and run main

Is this a bug or is this behaviour intended? It's for sure not how I desire
it to be, but perhaps there's a good explanation.



    <artifactId>pkg-stationentry</artifactId>
    <version>0.0.5-RC4</version>
    <packaging>pom</packaging>

    <dependencies>
        <dependency>
            <groupId>...</groupId>
            <artifactId>stationentry</artifactId>
            <version>0.0.7-SNAPSHOT</version>
        </dependency>
    </dependencies>



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to