Enable usage of scope:import with our webapps
---------------------------------------------
Key: MAGNOLIA-3545
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3545
Project: Magnolia
Issue Type: Improvement
Components: build
Reporter: Grégory Joseph
Assignee: Ondřej Chytil
Fix For: 4.4.3
To facilitate project builds, our webapps ({{magnolia-empty-webapp}},
{{magnolia-bundled-webapp}}, {{magnolia-enterprise-webapp}}) should have their
dependencies (Magnolia jars) in a {{dependencyManagement}} section. Instead of
"just" depending on the {{magnolia-empty-webapp}}'s pom, they should do so with
the {{import}} scope.
As a consequence, a webapp project would be able to do the following:
{code}
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-bundled-webapp</artifactId>
<version>4.3.8</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-module-dms</artifactId>
</dependency>
{code}
This essentially "injects" the {{dependencyManagement}} section of
{{magnolia-bundled-webapp:4.3.8}} into the current project, so the project can
now depend on {{magnolia-module-dms}} (for example) *without specifying its
version*. This frees project developer from having to dig out exactly which
version of each and every module they need was bundled with the Magnolia bundle
they want to use. (which is a pita) And of course, they can still specify a
specific version it they need to.
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------