diff --git a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/README.md b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/README.md index 9a83e9e2..3894c8ab 100644 --- a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/README.md +++ b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/README.md @@ -20,9 +20,6 @@ All the services of the project are now run as docker containers. The run script * `tail`. Tail the logs of all the containers. * `reload_share`. Build the Share module, recreate the Share docker image and restart the Share container. * `reload_acs`. Build the ACS module, recreate the ACS docker image and restart the ACS container. - * `build_test`. Build the whole project, recreate the Share docker image, start the dockerised environment, execute the integration tests from the - `integration-tests` module and stop the environment. - * `test`. Execute the integration tests (the environment must be already started). # Few things to notice diff --git a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml index 7b30e586..22a18f30 100644 --- a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml @@ -92,6 +92,41 @@ + + + @@ -160,6 +195,25 @@ + + copy-share-extension + package + + copy-resources + + + ${project.build.directory}/extensions + + + target + + ${build.finalName}.jar + + false + + + + @@ -218,75 +272,22 @@ maven-dependency-plugin 3.1.1 - + - copy-share-extension - pre-integration-test - - copy - - - - - ${groupId} - ${artifactId} - ${project.version} - false - ${project.build.directory}/extensions - - - - - - - copy-third-party-dependencies - pre-integration-test + collect-extensions + package copy-dependencies ${project.build.directory}/extensions runtime + - - - org.zeroturnaround diff --git a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.bat b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.bat index daa63269..aba062fb 100644 --- a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.bat +++ b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.bat @@ -47,20 +47,7 @@ IF %1==reload_share ( CALL :tail GOTO END ) -IF %1==build_test ( - CALL :down - CALL :build - CALL :start - CALL :test - CALL :tail_all - CALL :down - GOTO END -) -IF %1==test ( - CALL :test - GOTO END -) -echo "Usage: %0 {build_start|start|stop|purge|tail|reload_share|build_test|test}" +echo "Usage: %0 {build_start|start|stop|purge|tail|reload_share}" :END EXIT /B %ERRORLEVEL% @@ -79,12 +66,12 @@ EXIT /B 0 ) EXIT /B 0 :build - call %MVN_EXEC% clean install -DskipTests + call %MVN_EXEC% clean package EXIT /B 0 :build_share docker-compose -f "%COMPOSE_FILE_PATH%" kill ${rootArtifactId}-share docker-compose -f "%COMPOSE_FILE_PATH%" rm -f ${rootArtifactId}-share - call %MVN_EXEC% clean install -DskipTests + call %MVN_EXEC% clean package EXIT /B 0 :tail docker-compose -f "%COMPOSE_FILE_PATH%" logs -f @@ -92,9 +79,6 @@ EXIT /B 0 :tail_all docker-compose -f "%COMPOSE_FILE_PATH%" logs --tail="all" EXIT /B 0 -:test - call %MVN_EXEC% verify -EXIT /B 0 :purge docker volume rm -f ${rootArtifactId}-acs-volume docker volume rm -f ${rootArtifactId}-db-volume diff --git a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.sh b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.sh index df1607ba..4e2add75 100755 --- a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.sh +++ b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.sh @@ -33,13 +33,13 @@ purge() { } build() { - ${symbol_dollar}MVN_EXEC clean install -DskipTests=true + ${symbol_dollar}MVN_EXEC clean package } build_share() { docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH kill ${rootArtifactId}-share yes | docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH rm -f ${rootArtifactId}-share - ${symbol_dollar}MVN_EXEC clean install -DskipTests=true + ${symbol_dollar}MVN_EXEC clean package } tail() { @@ -50,10 +50,6 @@ tail_all() { docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH logs --tail="all" } -test() { - ${symbol_dollar}MVN_EXEC verify -} - case "${symbol_dollar}1" in build_start) down @@ -80,17 +76,6 @@ case "${symbol_dollar}1" in start_share tail ;; - build_test) - down - build - start - test - tail_all - down - ;; - test) - test - ;; *) - echo "Usage: ${symbol_dollar}0 {build_start|start|stop|purge|tail|reload_share|build_test|test}" + echo "Usage: ${symbol_dollar}0 {build_start|start|stop|purge|tail|reload_share}" esac \ No newline at end of file