{"action":"created","issue":{"url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/394","repository_url":"https://api.github.com/repos/Alfresco/alfresco-sdk","labels_url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/394/labels{/name}","comments_url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/394/comments","events_url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/394/events","html_url":"https://github.com/Alfresco/alfresco-sdk/issues/394","id":173067333,"number":394,"title":"Enable enterprise mode for repository amp project (Alfresco SDK 3 beta 1)","user":{"login":"jgoldhammer","id":3872101,"avatar_url":"https://avatars.githubusercontent.com/u/3872101?v=3","gravatar_id":"","url":"https://api.github.com/users/jgoldhammer","html_url":"https://github.com/jgoldhammer","followers_url":"https://api.github.com/users/jgoldhammer/followers","following_url":"https://api.github.com/users/jgoldhammer/following{/other_user}","gists_url":"https://api.github.com/users/jgoldhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoldhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoldhammer/subscriptions","organizations_url":"https://api.github.com/users/jgoldhammer/orgs","repos_url":"https://api.github.com/users/jgoldhammer/repos","events_url":"https://api.github.com/users/jgoldhammer/events{/privacy}","received_events_url":"https://api.github.com/users/jgoldhammer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"gravitonian","id":2564552,"avatar_url":"https://avatars.githubusercontent.com/u/2564552?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitonian","html_url":"https://github.com/gravitonian","followers_url":"https://api.github.com/users/gravitonian/followers","following_url":"https://api.github.com/users/gravitonian/following{/other_user}","gists_url":"https://api.github.com/users/gravitonian/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitonian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitonian/subscriptions","organizations_url":"https://api.github.com/users/gravitonian/orgs","repos_url":"https://api.github.com/users/gravitonian/repos","events_url":"https://api.github.com/users/gravitonian/events{/privacy}","received_events_url":"https://api.github.com/users/gravitonian/received_events","type":"User","site_admin":false},"assignees":[{"login":"gravitonian","id":2564552,"avatar_url":"https://avatars.githubusercontent.com/u/2564552?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitonian","html_url":"https://github.com/gravitonian","followers_url":"https://api.github.com/users/gravitonian/followers","following_url":"https://api.github.com/users/gravitonian/following{/other_user}","gists_url":"https://api.github.com/users/gravitonian/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitonian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitonian/subscriptions","organizations_url":"https://api.github.com/users/gravitonian/orgs","repos_url":"https://api.github.com/users/gravitonian/repos","events_url":"https://api.github.com/users/gravitonian/events{/privacy}","received_events_url":"https://api.github.com/users/gravitonian/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Alfresco/alfresco-sdk/milestones/11","html_url":"https://github.com/Alfresco/alfresco-sdk/milestones/3.0.0","labels_url":"https://api.github.com/repos/Alfresco/alfresco-sdk/milestones/11/labels","id":1310697,"number":11,"title":"3.0.0","description":null,"creator":{"login":"mindthegab","id":961272,"avatar_url":"https://avatars.githubusercontent.com/u/961272?v=3","gravatar_id":"","url":"https://api.github.com/users/mindthegab","html_url":"https://github.com/mindthegab","followers_url":"https://api.github.com/users/mindthegab/followers","following_url":"https://api.github.com/users/mindthegab/following{/other_user}","gists_url":"https://api.github.com/users/mindthegab/gists{/gist_id}","starred_url":"https://api.github.com/users/mindthegab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindthegab/subscriptions","organizations_url":"https://api.github.com/users/mindthegab/orgs","repos_url":"https://api.github.com/users/mindthegab/repos","events_url":"https://api.github.com/users/mindthegab/events{/privacy}","received_events_url":"https://api.github.com/users/mindthegab/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":6,"state":"open","created_at":"2015-09-17T15:09:41Z","updated_at":"2016-09-08T14:11:08Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2016-08-24T21:54:34Z","updated_at":"2016-09-09T10:04:35Z","closed_at":null,"body":"Following pom (modified with the help of your [guide](https://docs.google.com/document/d/1p5QR1Q8pVvMT9fh_aID5nraD5NP6ZrU1ztcgE_zHR-4/pub#h.g8ulc75vtjb7))\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n         xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd\">\r\n    <modelVersion>4.0.0</modelVersion>\r\n    <groupId>de.jgoldhammer</groupId>\r\n    <artifactId>alfrescosdk3-repo</artifactId>\r\n    <version>1.0-SNAPSHOT</version>\r\n    <name>alfrescosdk3-repo Platform Jar Module - SDK 3</name>\r\n    <description>Platform JAR Module (to be included in the alfresco.war) - SDK 3</description>\r\n    <packaging>jar</packaging>\r\n\r\n    <properties>\r\n        <alfresco.sdk.version>3.0.0-beta-1</alfresco.sdk.version>\r\n\r\n        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r\n\r\n        <!-- Alfresco Data directory, which will contain:\r\n                Content Store (i.e. the files we upload)\r\n                Database (i.e. the metadata for the uploaded files)\r\n                Search index (i.e. the indexed content and metadata)\r\n             Configured in alfresco-global.properties with the 'dir.root' property.\r\n                -->\r\n        <alfresco.data.location>${session.executionRootDirectory}/alf_data_dev</alfresco.data.location>\r\n\r\n        <!-- Duplicated with alfresco.solrHome in the plugin, we need them out here to do filtering -->\r\n        <solr.home>${alfresco.data.location}/solr</solr.home>\r\n        <solr.model.dir>${solr.home}/alfrescoModels</solr.model.dir>\r\n        <solr.content.dir>${solr.home}/index</solr.content.dir>\r\n\r\n        <!-- Properties used in dependency declarations, you don't need to change these -->\r\n        <alfresco.groupId>org.alfresco</alfresco.groupId>\r\n\r\n        <!-- Alfresco Platform webapp version, this is the original Alfresco webapp that will be\r\n            customized and then deployed and run by the tomcat maven plugin when\r\n            executing for example $ mvn clean install alfresco:run -->\r\n        <alfresco.platform.version>5.1.1</alfresco.platform.version>\r\n        <!-- Alfresco Share version, so we can bring in correct alfresco-share-services artifact -->\r\n        <alfresco.share.version>5.1.1</alfresco.share.version>\r\n\t<alfresco.surf.version>6.3</alfresco.surf.version>\r\n\t<alfresco.platform.war.artifactId>alfresco-enterprise</alfresco.platform.war.artifactId>\r\n\r\n        <!-- Alfresco Repo Database configuration.\r\n           By default it uses a flat file H2 database to be able to run embedded.\r\n           The H2 database implementation is brought in via the tomcat7-maven-plugin as a dependency.\r\n           The data files for the H2 database will be created in a relative path, such as alf_data_dev/h2_data/alf_dev,\r\n           see alfresco.db.url below.\r\n           For more information about the db parameters see:http://www.h2database.com/html/features.html\r\n        -->\r\n        <alfresco.db.name>alf_dev</alfresco.db.name>\r\n        <alfresco.db.username>alfresco</alfresco.db.username>\r\n        <alfresco.db.password>alfresco</alfresco.db.password>\r\n        <alfresco.db.params>AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0\r\n        </alfresco.db.params>\r\n        <alfresco.db.url>jdbc:h2:${alfresco.data.location}/h2_data/${alfresco.db.name};${alfresco.db.params}\r\n        </alfresco.db.url>\r\n        <alfresco.db.datasource.class>org.h2.jdbcx.JdbcDataSource</alfresco.db.datasource.class>\r\n\r\n        <!-- JRebel Hot reloading of classpath stuff and web resource stuff -->\r\n        <jrebel.version>1.1.6</jrebel.version>\r\n\r\n        <!-- Environment to use, Alfresco Maven Plugin will copy alfresco-global.properties from this directory -->\r\n        <env>local</env>\r\n    </properties>\r\n\r\n    <!-- This will import the dependencyManagement for all artifacts in the selected Alfresco platform.\r\n            NOTE: You still need to define dependencies in your POM,\r\n            but you can omit version as it's enforced by this dependencyManagement.\r\n            NOTE: It defaults to the latest version this SDK pom has been tested with,\r\n            but alfresco version can/should be overridden in your project's pom\r\n    -->\r\n    <dependencyManagement>\r\n        <dependencies>\r\n            <dependency>\r\n                <groupId>${alfresco.groupId}</groupId>\r\n                <artifactId>alfresco-platform-distribution</artifactId>\r\n                <version>${alfresco.platform.version}</version>\r\n                <type>pom</type>\r\n                <scope>import</scope>\r\n            </dependency>\r\n        </dependencies>\r\n    </dependencyManagement>\r\n\r\n    <dependencies>\r\n        <!-- The main Alfresco Repo dependency for compiling Java code in src/main/java -->\r\n        <dependency>\r\n            <groupId>${alfresco.groupId}</groupId>\r\n            <artifactId>alfresco-repository</artifactId>\r\n        </dependency>\r\n\t<dependency>\r\n\t\t<groupId>com.softwareloop</groupId>\r\n\t\t<artifactId>uploader-plus-repo</artifactId>\r\n\t\t<version>1.2</version>\r\n\t\t<type>amp</type>\r\n\t</dependency>\r\n    </dependencies>\r\n\r\n    <build>\r\n        <plugins>\r\n            <!--\r\n                The Alfresco Maven Plugin contains all the logic to run the extension\r\n                in an embedded Tomcat with the H2 database.\r\n                -->\r\n            <plugin>\r\n                <groupId>org.alfresco.maven.plugin</groupId>\r\n                <artifactId>alfresco-maven-plugin</artifactId>\r\n                <version>${alfresco.sdk.version}</version>\r\n                <configuration>\r\n                    <!-- Default is to run with a Community edition, change to 'enterprise' if using Enterprise edition -->\r\n                    <alfrescoEdition>enterprise</alfrescoEdition>\r\n\r\n                    <!-- We need the flat file H2 database to run the Repo -->\r\n                    <enableH2>true</enableH2>\r\n                    <!-- This is a platform extension JAR, so we need the platform webapp (alfresco.war) -->\r\n                    <enablePlatform>true</enablePlatform>\r\n                    <!-- Enable Solr so we can use search, our Repo extension probably need search -->\r\n                    <enableSolr>true</enableSolr>\r\n                    <!-- We don't need the share.war if we don't have any UI extensions -->\r\n                    <enableShare>false</enableShare>\r\n\r\n                    <!--\r\n                       JARs and AMPs that should be overlayed/applied to the Platform/Repository WAR\r\n                       (i.e. alfresco.war)\r\n                       No need to include our self...\r\n                       -->\r\n                    <platformModules>\r\n                        <!-- This AMP is needed if we are going to access the platform webapp from a Share webapp -->\r\n                        <moduleDependency>\r\n                            <groupId>${alfresco.groupId}</groupId>\r\n                            <artifactId>alfresco-share-services</artifactId>\r\n                            <version>${alfresco.share.version}</version>\r\n                            <type>amp</type>\r\n                        </moduleDependency>\r\n\r\n\t\t\t<moduleDependency>\r\n    \t\t\t\t<groupId>de.fmaul</groupId>\r\n    \t\t\t\t<artifactId>javascript-console-repo</artifactId>\r\n    \t\t\t\t<version>0.6</version>\r\n    \t\t\t\t<type>amp</type>\r\n\t\t\t</moduleDependency>\r\n\r\n\t\t\t<moduleDependency>\r\n\t\t\t\t<groupId>com.softwareloop</groupId>\r\n\t\t\t\t<artifactId>uploader-plus-repo</artifactId>\r\n\t\t\t\t<version>1.2</version>\r\n\t\t\t\t<type>amp</type>\r\n\t\t\t</moduleDependency>\r\n                    </platformModules>\r\n                </configuration>\r\n            </plugin>\r\n\r\n            <!-- Build an AMP if 3rd party libs are needed by the extension -->\r\n            <plugin>\r\n                <artifactId>maven-assembly-plugin</artifactId>\r\n                <version>2.6</version>\r\n                <executions>\r\n                    <execution>\r\n                        <id>build-amp-file</id>\r\n                        <phase>package</phase>\r\n                        <goals>\r\n                            <goal>single</goal>\r\n                        </goals>\r\n                        <configuration>\r\n                            <appendAssemblyId>false</appendAssemblyId>\r\n                            <descriptor>src/main/assembly/amp.xml</descriptor>\r\n                        </configuration>\r\n                    </execution>\r\n                </executions>\r\n                <dependencies>\r\n                    <dependency>\r\n                        <groupId>org.alfresco.maven.plugin</groupId>\r\n                        <artifactId>alfresco-maven-plugin</artifactId>\r\n                        <version>${alfresco.sdk.version}</version>\r\n                    </dependency>\r\n                </dependencies>\r\n            </plugin>\r\n\r\n            <!-- Hot reloading with JRebel -->\r\n            <plugin>\r\n                <groupId>org.zeroturnaround</groupId>\r\n                <artifactId>jrebel-maven-plugin</artifactId>\r\n                <version>${jrebel.version}</version>\r\n                <executions>\r\n                    <execution>\r\n                        <id>generate-rebel-xml</id>\r\n                        <phase>process-resources</phase>\r\n                        <goals>\r\n                            <goal>generate</goal>\r\n                        </goals>\r\n                    </execution>\r\n                </executions>\r\n                <configuration>\r\n                    <!--\r\n                      addResourcesDirToRebelXml - default is false\r\n                      Required if the resource directories are to be added to rebel.xml\r\n                    -->\r\n                    <addResourcesDirToRebelXml>true</addResourcesDirToRebelXml>\r\n\r\n                    <!-- Always generate the rebel.xml file no matter what timestamps -->\r\n                    <alwaysGenerate>true</alwaysGenerate>\r\n                </configuration>\r\n            </plugin>\r\n        </plugins>\r\n\r\n        <resources>\r\n            <!-- Filter the resource files in this project and do property substitutions -->\r\n            <resource>\r\n                <directory>src/main/resources</directory>\r\n                <filtering>true</filtering>\r\n            </resource>\r\n        </resources>\r\n        <testResources>\r\n            <!-- Filter the test resource files in this project and do property substitutions -->\r\n            <testResource>\r\n                <directory>src/test/resources</directory>\r\n                <filtering>true</filtering>\r\n            </testResource>\r\n        </testResources>\r\n    </build>\r\n\r\n    <!--\r\n        Alfresco Maven Repositories\r\n        -->\r\n    <repositories>\r\n        <repository>\r\n            <id>alfresco-public</id>\r\n            <url>https://artifacts.alfresco.com/nexus/content/groups/public</url>\r\n        </repository>\r\n        <repository>\r\n            <id>alfresco-public-snapshots</id>\r\n            <url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>\r\n            <snapshots>\r\n                <enabled>true</enabled>\r\n                <updatePolicy>daily</updatePolicy>\r\n            </snapshots>\r\n        </repository>\r\n    </repositories>\r\n    <pluginRepositories>\r\n        <pluginRepository>\r\n            <id>alfresco-plugin-public</id>\r\n            <url>https://artifacts.alfresco.com/nexus/content/groups/public</url>\r\n        </pluginRepository>\r\n        <pluginRepository>\r\n            <id>alfresco-plugin-public-snapshots</id>\r\n            <url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>\r\n            <snapshots>\r\n                <enabled>true</enabled>\r\n                <updatePolicy>daily</updatePolicy>\r\n            </snapshots>\r\n        </pluginRepository>\r\n    </pluginRepositories>\r\n\r\n</project>\r\n\r\n```\r\n\r\n\r\nbrings up following error:\r\n\r\n```\r\n/run.sh\r\n[INFO] Scanning for projects...\r\nDownloading: https://oss.sonatype.org/content/repositories/orgalfresco-1037/org/alfresco/alfresco-platform-distribution/5.1.1/alfresco-platform-distribution-5.1.1.pom\r\nDownloading: https://repo1.maven.org/maven2/org/alfresco/alfresco-platform-distribution/5.1.1/alfresco-platform-distribution-5.1.1.pom\r\nDownloading: https://artifacts.alfresco.com/nexus/content/groups/public/org/alfresco/alfresco-platform-distribution/5.1.1/alfresco-platform-distribution-5.1.1.pom\r\nDownloading: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots/org/alfresco/alfresco-platform-distribution/5.1.1/alfresco-platform-distribution-5.1.1.pom\r\n[ERROR] [ERROR] Some problems were encountered while processing the POMs:\r\n[ERROR] Non-resolvable import POM: Could not find artifact org.alfresco:alfresco-platform-distribution:pom:5.1.1 in alfresco-sdk-staging (https://oss.sonatype.org/content/repositories/orgalfresco-1037/) @ line 73, column 25\r\n[ERROR] 'dependencies.dependency.version' for org.alfresco:alfresco-repository:jar is missing. @ line 85, column 21\r\n @\r\n[ERROR] The build could not read 1 project -> [Help 1]\r\n[ERROR]\r\n[ERROR]   The project de.jgoldhammer:alfrescosdk3-repo:1.0-SNAPSHOT (/Users/jgoldhammer/development/sources/alfrescosdk3-repo/pom.xml) has 2 errors\r\n[ERROR]     Non-resolvable import POM: Could not find artifact org.alfresco:alfresco-platform-distribution:pom:5.1.1 in alfresco-sdk-staging (https://oss.sonatype.org/content/repositories/orgalfresco-1037/) @ line 73, column 25 -> [Help 2]\r\n[ERROR]     'dependencies.dependency.version' for org.alfresco:alfresco-repository:jar is missing. @ line 85, column 21\r\n[ERROR]\r\n[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.\r\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\r\n[ERROR]\r\n[ERROR] For more information about the errors and possible solutions, please read the following articles:\r\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException\r\n[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException\r\n```\r\n\r\nWhat I am doing wrong here?"},"comment":{"url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/comments/245873088","html_url":"https://github.com/Alfresco/alfresco-sdk/issues/394#issuecomment-245873088","issue_url":"https://api.github.com/repos/Alfresco/alfresco-sdk/issues/394","id":245873088,"user":{"login":"ohej","id":251646,"avatar_url":"https://avatars.githubusercontent.com/u/251646?v=3","gravatar_id":"","url":"https://api.github.com/users/ohej","html_url":"https://github.com/ohej","followers_url":"https://api.github.com/users/ohej/followers","following_url":"https://api.github.com/users/ohej/following{/other_user}","gists_url":"https://api.github.com/users/ohej/gists{/gist_id}","starred_url":"https://api.github.com/users/ohej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohej/subscriptions","organizations_url":"https://api.github.com/users/ohej/orgs","repos_url":"https://api.github.com/users/ohej/repos","events_url":"https://api.github.com/users/ohej/events{/privacy}","received_events_url":"https://api.github.com/users/ohej/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T10:04:35Z","updated_at":"2016-09-09T10:04:35Z","body":"For the sake of reproducibility and stable builds I would recommend you add them to your pom. This way you only have to provide credentials in your `settings.xml`.\r\n\r\nPreviously the `enterprise` profile would add in the repository, but since we don't have the parent pom the profile doesn't exist. \r\n\r\nWe will investigate if this can be added by the Alfresco Maven Plugin, but as I mentioned above, it might be possible."}}
{"actor":{"display_login":"ohej"}}