On Tue, 2006-09-19 at 13:48 +0200, Justin Deoliveira wrote:
> So yes, the way mvn eclipse works is this. Consider two project
> dependencies, say main depends on api. If I run mvn eclipse from
> gt/module, then both modules are in the "reactor" ( set of projects to
> be built by mvn eclipse ). When processing main maven is smart enough to
> realize that api is a dependency on main, but also in the reactor, so
> when setting up the classpath for main, it adds api as a project
> dependency, and not as a jar dependency.
> 
> On the other hand, if I run the task from the main module, api is not in
> the reactor so maven will just add the dependency as a jar in the
> classpath of main.
> 
> Does that make sense? If not let me know.

So if I want to work on trunk/gt/demo/introduction and nothing else, it
is better to run mvn eclipse:eclipse in demo/introduction since then I
don't have to have the other geotools projects imported and open, is
that correct? That seems to be what I have stumbled into.




> 
> Thanks again for your great work doing all the qa. I committed a new
> version of demo and a test case DemoTest. Demo now uses the catalog to
> load up data. Take a look at it, it is still incomplete and a work in
> progress, I will wait for some feedback from you before proceeding.

Demo is tripping up here on line 220 of Demo.java. I'm guessing it
doesn't actually get the service correctly:


Exception in thread "AWT-EventQueue-0"
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:546)
        at java.util.ArrayList.get(ArrayList.java:321)
        at
org.geotools.demo.introduction.Demo.loadShapefileFeatureSource(Demo.java:220)
        at
org.geotools.demo.introduction.DemoApp.createFeatureSourceFromShapefile(DemoApp.java:518)
        at org.geotools.demo.introduction.DemoApp
$2.actionPerformed(DemoApp.java:358)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
        at javax.swing.AbstractButton
$Handler.actionPerformed(AbstractButton.java:2169)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
        at java.awt.Component.processMouseEvent(Component.java:5488)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1774)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


--adrian


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to