dependency-management-pom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencyManagement> | |
<dependencies> | |
<!-- This will import the dependencyManagement for all artifacts in the selected Alfresco platform. | |
NOTE: You still need to define dependencies in your POM, but you can omit version as | |
it's enforced by this dependencyManagement. | |
NOTE: It defaults to the latest version this SDK pom has been tested with, | |
but alfresco version can/should be overridden in your project's pom | |
--> | |
<dependency> | |
<groupId>${alfresco.groupId}</groupId> | |
<artifactId>alfresco-platform-distribution</artifactId> | |
<version>${alfresco.platform.version}</version> | |
<type>pom</type> | |
<scope>import</scope> | |
</dependency> | |
<!-- Redefine the following Share dependencies as they have different version numbers than platform. | |
They are defined in alfresco-platform-distribution... --> | |
<dependency> | |
<groupId>${alfresco.groupId}</groupId> | |
<artifactId>share</artifactId> | |
<version>${alfresco.share.version}</version> | |
<type>war</type> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>${alfresco.groupId}</groupId> | |
<artifactId>share</artifactId> | |
<version>${alfresco.share.version}</version> | |
<classifier>classes</classifier> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>${alfresco.groupId}</groupId> | |
<artifactId>alfresco-web-framework-commons</artifactId> | |
<version>${alfresco.share.version}</version> | |
<classifier>classes</classifier> | |
<scope>provided</scope> | |
</dependency> | |
<!-- Redefine the following surf dependencies as they have no resolvable version in the | |
alfresco-platform-distribution artifact --> | |
<dependency> | |
<groupId>org.alfresco.surf</groupId> | |
<artifactId>spring-surf</artifactId> | |
<version>${alfresco.surf.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.alfresco.surf</groupId> | |
<artifactId>spring-surf-api</artifactId> | |
<version>${alfresco.surf.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment