Bidirectional dependency between common and core subprojects

Description

After generating a J2EE app, core depends on common (see core/pom.xml). This is OK.

But: The interfaces for services are generated into common. I use domain objects as parameters to service methods (e.g. MyService.createUser(User)) so that now the interface MyService contains a reference to the class User which is in core. The Java compiler complains that it cannot translate the interface: "cannot resolve symbol: User" because there is no dependency from common to core in common/pom.xml.

I fix this by a change to my andromda.xml:

<property name="service-interfaces">${core.generated.dir}</property>

instead of

<property name="service-interfaces">${common.generated.dir}</property>

But I don't know whether this is what the author of andromdapp intended!

Environment

Tested with 3.2-RC1-SNAPSHOT

Assignee

Former user

Reporter

Matthias Bohlen

Labels

None

Affects versions

Priority

Major
Configure