<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>As with any Java app, a Jar's dependencies need to be on the classpath.&nbsp;Uploading a POJO model to Guvnor doesn't put it on the class path, so it needs to encapsulate all its dependencies.</div><div><br></div><div>I would&nbsp;recommend setting your build up so that it produces both POJO models (assuming you actually need both). It's really easy! At least this way, if your build compiles, then you know that the POJO Jars are valid.</div><div><br></div><div>Alternatives:</div><div><br></div><div>Extend the base model using declarative facts. I haven't played around with this, but I think it should work. Although it could get messy mixing up POJO and declarative facts in this manner.</div><div><br></div><div>Traits are intended for some of this kind of thing, although they're very recent. Davide blogged about them here:&nbsp;</div><div><a href="http://planet.jboss.org/post/new_feature_spotlight_traits_part_1">http://planet.jboss.org/post/new_feature_spotlight_traits_part_1</a></div><div><br></div><div>Put dependencies in your server lib directory, which would do the trick, but which IMO is a bloomin' awful idea. It's a maintenance PITA, as you need to restart the server every time you update the base model.</div><div><br></div><div>Steve</div><div><br></div><div><br></div><div><div>On 13 Sep 2012, at 17:20, dme1 &lt;<a href="mailto:mehtad@hotmail.com">mehtad@hotmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>I have created 2 projects in Eclipse - the first one is the Base Project<br>with the Model defined for this as BaseModel.jar. The send one is the<br>Extension Project which inherits the BaseModel and extends it, this Model is<br>called ExtendedModel.jar.<br><br>In Eclipse I can set the dependency on BaseModel in the Extended Project and<br>can write rules using the Base and Extended Models.<br><br>Now I create 2 &nbsp;packages in Guvnor one to represent the Base Project, the<br>second to represent the Extended Project. I upload the BaseModel to the<br>BaseProject and the associated technical rules and this all works well.<br><br>In the Extended Package I upload the "BaseModel.jar" successfully, however<br>when I try to upload the "ExtendedModel.jar" it gives me an Error. The only<br>way I can resolve my error is to update the ExtendedModel.jar to include all<br>classes from BaseModel.jar, so it seems like the Guvnor requires all<br>dependencies to be resolved within the Model jar and cannot reference other<br>Data Models within the same package.<br><br>Is there a way for Guvnor to lookup the other Models for dependencies and<br>resolve the dependencies? If not what is the recommended approach for<br>specifying dependent models in Guvnor?<br><br>Thanks,<br>dme<br><br><br><br>--<br>View this message in context: <a href="http://drools.46999.n3.nabble.com/Data-Model-Dependencies-in-Guvnor-tp4019750.html">http://drools.46999.n3.nabble.com/Data-Model-Dependencies-in-Guvnor-tp4019750.html</a><br>Sent from the Drools: User forum mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users<br></blockquote></div><br></body></html>