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>

-- 
View this message in context: 
http://www.nabble.com/Not-finding-main%28...%29-through-workspace-resolution-tp19103273p19103273.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email


Reply via email to