Hi there,
This is quite a recurring issue, and you actually haven't done anything wrong!
:)
In fact, [b]it is a known bug of Maven 2[/b], that it isn't able to resolve
transitive "import" dependencies correctly.
We have yet to find the good spot to document it properly, but in the meantime,
you need to add two import dependencies to magnolia main and UI projects ABOVE
the dependency to the bundle-parent.
This is the resulting [i]dependencyManagement[/i] section you should have:
[code] <dependencyManagement>
<dependencies>
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-project</artifactId>
<version>${magnoliaVersion}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>info.magnolia.ui</groupId>
<artifactId>magnolia-ui-project</artifactId>
<version>${magnoliaVersion}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Importing dependencyManagement of CE bundle. This means you don't
have to specify versions of modules you depend on (unless you want a different
version than that of the bundle).
Alternatively, use
info.magnolia.eebundle:magnolia-enterprise-bundle-parent -->
<dependency>
<groupId>info.magnolia.bundle</groupId>
<artifactId>magnolia-bundle-parent</artifactId>
<version>${magnoliaVersion}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- TEST -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>[/code]
Hope this helps,
Mika
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=21b34963-9395-425d-ab11-88278d37748e
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------