Skip to content

Commit

Permalink
Update share pom to work around SDK issue, modify the readme to expla…
Browse files Browse the repository at this point in the history
…in how to build the share AMP to work around the SDK issue, bump version to 0.0.3 without SNAPSHOT.
  • Loading branch information
jpotts committed Jun 23, 2016
1 parent fd35f68 commit 4dd1686
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Installation
------------
There are two AMPs associated with this add-on. One is a "repo tier" AMP and the other is a "Share tier" AMP.

For each of the two projects, use `mvn install` to create the AMP. By default the POM is set to depend on the latest Alfresco Community Edition using the default specified by the SDK. This has not been tested with Alfresco Enterprise Edition.
For each of the two projects, use `mvn install` to create the AMP. When running with 5.1.f, you must specify `` when running maven commands for the Share tier AMP.

### Install the AMPs

Expand All @@ -29,11 +29,11 @@ Once the AMPs are deployed, start up Alfresco.

### Deploy the Module in Share

After starting Alfresco with the AMPs deployed, you'll need to go to the [Share Module Deployment Console](http://localhost:8080/share/service/modules/deploy) to deploy the module. After you hit "Apply Changes", log out, then log back in. If you don't already have a group created with your username in it, the "Create Site" links should be gone, even if you are an administrator.
After starting Alfresco with the AMPs deployed, the Share module should be deployed for you automatically. If you can still see "Create Sites" you may need to deploy the module manually. To do so, go to the [Share Module Deployment Console](http://localhost:8080/share/service/modules/deploy) to deploy the module. After you hit "Apply Changes", log out, then log back in. If you don't already have a group created with your username in it, the "Create Site" links should be gone, even if you are an administrator.

### Create and Populate the Group

Now go create a new group with an ID of "GROUP_SITE_CREATORS". You can add individuals and groups to this group. For example, at the very least you will probably want to add ALFRESCO_ADMINISTRATORS to this group.
The SITE_CREATORS group will be created for you automatically. If, for some reason, it does not get created, create a new group with an ID of "GROUP_SITE_CREATORS". You can add individuals and groups to this group. For example, at the very least you will probably want to add ALFRESCO_ADMINISTRATORS to this group.

Using a Different Group Name
------------------------
Expand Down
8 changes: 4 additions & 4 deletions share-site-creators-repo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.ecmarchitect</groupId>
<artifactId>share-site-creators-repo</artifactId>
<version>0.0.2-SNAPSHOT</version>
<version>0.0.3</version>
<name>share-site-creators-repo AMP project</name>
<packaging>amp</packaging>
<description>Changes the permissions so that only members of a specific group can create sites.</description>
Expand All @@ -27,9 +27,9 @@
-->
<!-- <alfresco.groupId>org.alfresco</alfresco.groupId> -->
<!-- Defines the Alfresco version to work against.
Community versions are typically identified by major.minor.character (4.2.a) while Enterprise versions are identified by major.minor.digit (4.2.0)
<alfresco.version>5.0.d</alfresco.version>
<alfresco.data.location>alf_data_dev</alfresco.data.location> -->
Community versions are typically identified by major.minor.character (4.2.a) while Enterprise versions are identified by major.minor.digit (4.2.0) -->
<alfresco.version>5.1.f</alfresco.version>
<!--<alfresco.data.location>/absolute/path/to/alf_data_dev</alfresco.data.location>-->
<!-- This controls which properties will be picked in src/test/properties for embedded run -->
<env>local</env>
<!-- Defines the target WAR artifactId to run this amp, only used with the -Pamp-to-war profile
Expand Down
11 changes: 6 additions & 5 deletions share-site-creators-share/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.ecmarchitect</groupId>
<artifactId>share-site-creators-share</artifactId>
<version>0.0.2-SNAPSHOT</version>
<version>0.0.3</version>
<name>share-site-creators-share AMP project</name>
<packaging>amp</packaging>
<description>Hides all &quot;create site&quot; links from all users except those belonging to a specific group.</description>
Expand Down Expand Up @@ -34,7 +34,7 @@
Community versions are typically identified by major.minor.character (4.2.a),
while Enterprise versions are identified by major.minor.digit (4.2.0)
-->
<!--<alfresco.version>5.0.d</alfresco.version>-->
<alfresco.version>5.1.f</alfresco.version>

<!-- Defines the log level used in log4j.properties -->
<app.log.root.level>WARN</app.log.root.level>
Expand Down Expand Up @@ -68,9 +68,10 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.extensions.surf</groupId>
<artifactId>spring-surf-api</artifactId>
<scope>provided</scope>
<groupId>org.alfresco.surf</groupId>
<artifactId>spring-surf-api</artifactId>
<version>${dependency.surf.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down

0 comments on commit 4dd1686

Please sign in to comment.