From 5b8a4b02cace7bfe9bd4da98ef509556b6137b0e Mon Sep 17 00:00:00 2001 From: Tuna Aksoy Date: Mon, 23 May 2016 12:03:00 +0100 Subject: [PATCH] RM-3426 (Number of artifacts for the RM Enterprise project - Update configuration) --- rm-automation/pom.xml | 126 +-- rm-community/rm-community-repo/pom.xml | 1232 ++++++++++++------------ 2 files changed, 648 insertions(+), 710 deletions(-) diff --git a/rm-automation/pom.xml b/rm-automation/pom.xml index 41c9d677c7..d6e74437ce 100644 --- a/rm-automation/pom.xml +++ b/rm-automation/pom.xml @@ -12,13 +12,11 @@ - 2.45.0 4.0.5.RELEASE 1.8 testng.xml true - @@ -28,15 +26,15 @@ build-helper-maven-plugin - add-test-source - - add-test-source - - - - src/unit-test/java - - + add-test-source + + add-test-source + + + + src/unit-test/java + + @@ -66,55 +64,43 @@ - - org.codehaus.mojo - license-maven-plugin - + license-maven-plugin + alfresco_enterprise file:${project.parent.basedir}/license ${project.parent.basedir}/license/description.ftl - - + - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - - org.codehaus.mojo - - - license-maven-plugin - - - [1.8,) - - - - update-file-header - - - - - - - - - - - - + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.codehaus.mojo + license-maven-plugin + [1.8,) + + update-file-header + + + + + + + + + + + @@ -243,24 +229,12 @@ - - org.alfresco - alfresco-rm-community-share - ${project.version} - amp - org.alfresco alfresco-rm-enterprise-share ${project.version} amp - - org.alfresco - alfresco-rm-community-repo - ${project.version} - amp - org.alfresco alfresco-rm-enterprise-repo @@ -279,18 +253,6 @@ alfresco-maven-plugin true - - install-community-repo-amp - - install - - process-test-resources - - true - ${project.build.directory}/amps/alfresco-rm-community-repo-${project.version}.amp - ${project.build.directory}/alf-installation/tomcat/webapps/alfresco.war - - install-enterprise-repo-amp @@ -303,18 +265,6 @@ ${project.build.directory}/alf-installation/tomcat/webapps/alfresco.war - - install-community-share-amp - - install - - process-test-resources - - true - ${project.build.directory}/amps/alfresco-rm-community-share-${project.version}.amp - ${project.build.directory}/alf-installation/tomcat/webapps/share.war - - install-enterprise-share-amp diff --git a/rm-community/rm-community-repo/pom.xml b/rm-community/rm-community-repo/pom.xml index bc53ec5714..422f22ca0b 100644 --- a/rm-community/rm-community-repo/pom.xml +++ b/rm-community/rm-community-repo/pom.xml @@ -1,622 +1,610 @@ - - - 4.0.0 - alfresco-rm-community-repo - Alfresco Records Management Community Repo - Alfresco Record Management Core Repository Extension - amp - - - org.alfresco - alfresco-rm-community - 2.4.1-SNAPSHOT - - - - ${basedir}/target/alf_test_data - org.hibernate.dialect.H2Dialect - alfresco - alfresco - alfresco - localhost - alfresco - 9.1-901.jdbc4 - 5.1.31 - alfresco-rm-community-repo - true - ${project.build.directory}/solr/home - - - - source/java - test/java - - - config - ${app.filtering.enabled} - - - - - unit-test/resources - - - test/resources - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - - add-source - - - - source/compatibility - - - - - add-test-source - - add-test-source - - - - unit-test/java - - - - - - - maven-antrun-plugin - - - prepare-package - - run - - - - - - - - - - - - - - org.codehaus.mojo - properties-maven-plugin - - - initialize - - read-project-properties - - - - ${basedir}/src/main/resources/local.properties - - true - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - **/AllUnitTestSuite.class - - - - - org.apache.maven.plugins - maven-failsafe-plugin - - - integration-tests - - integration-test - verify - - - ${skip.integrationtests} - - **/AllTestSuite.class - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack-alfresco - prepare-package - - unpack - - - ${app.amp.client.war.folder} - - - ${alfresco.groupId} - ${app.amp.client.war.artifactId} - war - ${alfresco.version} - - - - - - - - org.alfresco.maven.plugin - alfresco-maven-plugin - - - attach-rm-jar - - amp - - - true - true - - - - install-rm-amp - - install - - package - - true - ${project.build.directory}/${alfresco.rm.artifactId}-${alfresco.rm.version}.amp - - - - amps-to-war-overlay - package - - install - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - test-jar - - - - - - **/alfresco-global.properties - - - - - - - org.codehaus.mojo - license-maven-plugin - - alfresco_community - - source/java - unit-test/java - source/compatibility - config - test/java - test/resources - - - - - - - - - org.eclipse.m2e - lifecycle-mapping - - - - - - org.codehaus.mojo - properties-maven-plugin - [1.0-alpha-2,) - - read-project-properties - - - - - - - - - org.codehaus.mojo - - license-maven-plugin - - [1.8,) - - update-file-header - - - - - - - - - - - - - - - - - ${alfresco.groupId} - alfresco-remote-api - - - io.takari.junit - takari-cpsuite - 1.2.7 - test - - - junit - junit - test - - - org.springframework.extensions.surf - spring-webscripts - tests - test - - - org.mockito - mockito-all - test - - - org.springframework - spring-test - 2.5 - test - - - ${alfresco.groupId} - alfresco-repository - ${alfresco.version} - tests - test - - - ${alfresco.groupId} - alfresco-remote-api - ${alfresco.version} - tests - test - - - postgresql - postgresql - ${alfresco.postgres.version} - test - - - mysql - mysql-connector-java - test - - - ${alfresco.groupId} - alfresco-repository - ${alfresco.version} - h2scripts - - - * - * - - - test - - - - - - use-mysql - - ${my.db.name} - ${my.db.port} - org.hibernate.dialect.MySQLInnoDBDialect - - jdbc:mysql://${alfresco.db.host}:${alfresco.db.port}/${alfresco.db.name} - jdbc:mysql://${alfresco.db.host}:${alfresco.db.port}/${alfresco.db.name} - org.gjt.mm.mysql.Driver - - - - use-postgres - - ${my.db.name} - ${my.db.port} - org.hibernate.dialect.PostgreSQLDialect - - jdbc:postgresql:template1 - jdbc:postgresql:${alfresco.db.name} - org.postgresql.Driver - - - - start-repo - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack-alfresco - prepare-package - - unpack - - - ${app.amp.client.war.folder} - - - ${alfresco.groupId} - ${alfresco.repo.artifactId} - war - ${alfresco.version} - - - - - - unpack-alfresco-config - - unpack - - generate-resources - - ${alfresco.solr.home} - - - alfresco-solr4 - ${alfresco.groupId} - config - ${alfresco.version} - zip - - - - - - - - org.alfresco.maven.plugin - alfresco-maven-plugin - - - amps-to-war-overlay - package - - install - - - - - false - - - - org.codehaus.mojo - build-helper-maven-plugin - - - regex-property - generate-resources - - regex-property - - - solrHomePath - ${alfresco.solr.home} - \\ - \\\\ - false - - - - - - com.google.code.maven-replacer-plugin - replacer - - - setup-solr-config - generate-resources - - replace - - - - - false - - ${alfresco.solr.home}/context.xml - ${alfresco.solr.home}/archive-SpacesStore/conf/solrcore.properties - ${alfresco.solr.home}/workspace-SpacesStore/conf/solrcore.properties - ${app.amp.client.war.folder}/WEB-INF/web.xml - - - - @@ALFRESCO_SOLR4_DIR@@ - ${solrHomePath}/ - - - @@ALFRESCO_SOLR4_MODEL_DIR@@ - ${solrHomePath}/alfrescoModels/ - - - @@ALFRESCO_SOLR4_CONTENT_DIR@@ - ${solrHomePath}/data/content/ - - - @@ALFRESCO_SOLR4_DATA_DIR@@ - ${solrHomePath}/data/index/ - - - ]]> - - - - ]]> - ]]> - - - - - - org.apache.tomcat.maven - tomcat7-maven-plugin - - - run-embedded - - run - - integration-test - - false - true - true - - ${project.build.directory} - - false - ${project.basedir}/tomcat/context.xml - - - ${alfresco.groupId} - alfresco-solr4 - ${alfresco.version} - war - true - /solr4 - ${alfresco.solr.home}/context.xml - - - - - - - - postgresql - postgresql - ${alfresco.postgres.version} - - - mysql - mysql-connector-java - ${alfresco.mysql.version} - - - ${alfresco.groupId} - alfresco-repository - ${alfresco.version} - h2scripts - - - * - * - - - - - - - - - - - wipeDB - - - - org.codehaus.mojo - sql-maven-plugin - - true - ${alfresco.db.datasource.class} - ${alfresco.db.master.url} - ${alfresco.db.username} - ${alfresco.db.password} - - - - postgresql - postgresql - ${alfresco.postgres.version} - - - mysql - mysql-connector-java - ${alfresco.mysql.version} - - - - - wipe-database - process-test-resources - - execute - - - drop database if exists alfresco - - - - create-database - process-test-resources - - execute - - - create database alfresco - - - - - - - - - + + + 4.0.0 + alfresco-rm-community-repo + Alfresco Records Management Community Repo + Alfresco Record Management Community Repository Extension + amp + + + org.alfresco + alfresco-rm-community + 2.4.1-SNAPSHOT + + + + ${basedir}/target/alf_test_data + org.hibernate.dialect.H2Dialect + alfresco + alfresco + alfresco + localhost + alfresco + 9.1-901.jdbc4 + 5.1.31 + alfresco-rm-community-repo + true + ${project.build.directory}/solr/home + + + + source/java + test/java + + + config + ${app.filtering.enabled} + + + + + unit-test/resources + + + test/resources + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + add-source + + add-source + + + + source/compatibility + + + + + add-test-source + + add-test-source + + + + unit-test/java + + + + + + + maven-antrun-plugin + + + prepare-package + + run + + + + + + + + + + + + + + org.codehaus.mojo + properties-maven-plugin + + + initialize + + read-project-properties + + + + ${basedir}/src/main/resources/local.properties + + true + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + **/AllUnitTestSuite.class + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + integration-tests + + integration-test + verify + + + ${skip.integrationtests} + + **/AllTestSuite.class + + + ${project.build.directory}/${project.build.finalName}/config + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-alfresco + prepare-package + + unpack + + + ${app.amp.client.war.folder} + + + ${alfresco.groupId} + ${app.amp.client.war.artifactId} + war + ${alfresco.version} + + + + + + + + org.alfresco.maven.plugin + alfresco-maven-plugin + + + attach-rm-jar + + amp + + + true + true + true + + + + amps-to-war-overlay + package + + install + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + test-jar + + + + + + **/alfresco-global.properties + + + + + org.codehaus.mojo + license-maven-plugin + + alfresco_community + + source/java + unit-test/java + source/compatibility + config + test/java + test/resources + + + + + + + + org.eclipse.m2e + lifecycle-mapping + + + + + + org.codehaus.mojo + properties-maven-plugin + [1.0-alpha-2,) + + read-project-properties + + + + + + + + + org.codehaus.mojo + license-maven-plugin + [1.8,) + + update-file-header + + + + + + + + + + + + + + + + + ${alfresco.groupId} + alfresco-remote-api + + + io.takari.junit + takari-cpsuite + 1.2.7 + test + + + junit + junit + test + + + org.springframework.extensions.surf + spring-webscripts + tests + test + + + org.mockito + mockito-all + test + + + org.springframework + spring-test + 2.5 + test + + + ${alfresco.groupId} + alfresco-repository + ${alfresco.version} + tests + test + + + ${alfresco.groupId} + alfresco-remote-api + ${alfresco.version} + tests + test + + + postgresql + postgresql + ${alfresco.postgres.version} + test + + + mysql + mysql-connector-java + test + + + ${alfresco.groupId} + alfresco-repository + ${alfresco.version} + h2scripts + + + * + * + + + test + + + + + + use-mysql + + ${my.db.name} + ${my.db.port} + org.hibernate.dialect.MySQLInnoDBDialect + + jdbc:mysql://${alfresco.db.host}:${alfresco.db.port}/${alfresco.db.name} + jdbc:mysql://${alfresco.db.host}:${alfresco.db.port}/${alfresco.db.name} + org.gjt.mm.mysql.Driver + + + + use-postgres + + ${my.db.name} + ${my.db.port} + org.hibernate.dialect.PostgreSQLDialect + + jdbc:postgresql:template1 + jdbc:postgresql:${alfresco.db.name} + org.postgresql.Driver + + + + start-repo + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-alfresco + prepare-package + + unpack + + + ${app.amp.client.war.folder} + + + ${alfresco.groupId} + ${alfresco.repo.artifactId} + war + ${alfresco.version} + + + + + + unpack-alfresco-config + + unpack + + generate-resources + + ${alfresco.solr.home} + + + alfresco-solr4 + ${alfresco.groupId} + config + ${alfresco.version} + zip + + + + + + + + org.alfresco.maven.plugin + alfresco-maven-plugin + + + amps-to-war-overlay + package + + install + + + + + false + + + + org.codehaus.mojo + build-helper-maven-plugin + + + regex-property + generate-resources + + regex-property + + + solrHomePath + ${alfresco.solr.home} + \\ + \\\\ + false + + + + + + com.google.code.maven-replacer-plugin + replacer + + + setup-solr-config + generate-resources + + replace + + + + + false + + ${alfresco.solr.home}/context.xml + ${alfresco.solr.home}/archive-SpacesStore/conf/solrcore.properties + ${alfresco.solr.home}/workspace-SpacesStore/conf/solrcore.properties + ${app.amp.client.war.folder}/WEB-INF/web.xml + + + + @@ALFRESCO_SOLR4_DIR@@ + ${solrHomePath}/ + + + @@ALFRESCO_SOLR4_MODEL_DIR@@ + ${solrHomePath}/alfrescoModels/ + + + @@ALFRESCO_SOLR4_CONTENT_DIR@@ + ${solrHomePath}/data/content/ + + + @@ALFRESCO_SOLR4_DATA_DIR@@ + ${solrHomePath}/data/index/ + + + ]]> + + + + ]]> + ]]> + + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + + + run-embedded + + run + + integration-test + + false + true + true + + ${project.build.directory} + + false + ${project.basedir}/tomcat/context.xml + + + ${alfresco.groupId} + alfresco-solr4 + ${alfresco.version} + war + true + /solr4 + ${alfresco.solr.home}/context.xml + + + + + + + + postgresql + postgresql + ${alfresco.postgres.version} + + + mysql + mysql-connector-java + ${alfresco.mysql.version} + + + ${alfresco.groupId} + alfresco-repository + ${alfresco.version} + h2scripts + + + * + * + + + + + + + + + + + wipeDB + + + + org.codehaus.mojo + sql-maven-plugin + + true + ${alfresco.db.datasource.class} + ${alfresco.db.master.url} + ${alfresco.db.username} + ${alfresco.db.password} + + + + postgresql + postgresql + ${alfresco.postgres.version} + + + mysql + mysql-connector-java + ${alfresco.mysql.version} + + + + + wipe-database + process-test-resources + + execute + + + drop database if exists alfresco + + + + create-database + process-test-resources + + execute + + + create database alfresco + + + + + + + + + \ No newline at end of file