Skip to content
This repository was archived by the owner on Aug 13, 2020. It is now read-only.

Commit 29e8b18

Browse files
committed
Revert "Revert "Add local dependency install script and documentation""
This reverts commit 8684d74.
1 parent 500de12 commit 29e8b18

File tree

2 files changed

+120
-0
lines changed

2 files changed

+120
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,31 @@ A Java framework to support applications utilising CQRS and Event Sourcing archi
1818
* messaging-jms - Communication with JMS queues/topics
1919
* metrics - Support for health checks in application components
2020
* persistence - Support for persistence layer, such as deltaspike.
21+
22+
## How to build and deploy locally without access to build repository
23+
24+
#### Project dependencies
25+
Clone the following CJSCommonPlatform projects into the same directory level:
26+
* [maven-super-pom](https://github.com/CJSCommonPlatform/maven-super-pom)
27+
* [maven-parent-pom](https://github.com/CJSCommonPlatform/maven-parent-pom)
28+
* [maven-common-bom](https://github.com/CJSCommonPlatform/maven-common-bom)
29+
* [maven-common](https://github.com/CJSCommonPlatform/maven-common)
30+
* [raml-maven](https://github.com/CJSCommonPlatform/raml-maven)
31+
* [embedded-artemis](https://github.com/CJSCommonPlatform/embedded-artemis)
32+
* [maven-framework-parent-pom](https://github.com/CJSCommonPlatform/maven-framework-parent-pom)
33+
* [test-utils](https://github.com/CJSCommonPlatform/test-utils)
34+
* [utilities](https://github.com/CJSCommonPlatform/utilities)
35+
* [file-service](https://github.com/CJSCommonPlatform/file-service)
36+
* [json-schema](https://github.com/CJSCommonPlatform/json-schema)
37+
* [wildfly-maven-plugin](https://github.com/CJSCommonPlatform/wildfly-maven-plugin)
38+
* [microservice_framework](https://github.com/CJSCommonPlatform/microservice_framework)
39+
40+
#### Run dependency installation script
41+
Run the install-dependencies.sh script from the microservice_framework directory. This will checkout
42+
and install the required versions of each project.
43+
44+
`./install-dependencies.sh`
45+
46+
#### Finally build and verify the Microservice Framework.
47+
48+
`mvn clean verify`

install-dependencies.sh

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
#!/usr/bin/env bash
2+
3+
# Script to checkout and install locally all Microservice Framework dependencies
4+
5+
#Build versions
6+
# maven-super-pom
7+
maven_super_pom_versions=("release-1.0.0")
8+
9+
# maven-parent-pom
10+
maven_parent_pom_versions=("release-1.1.0" "release-1.2.0" "release-1.4.0" "release-1.4.1")
11+
12+
# maven-common-bom
13+
maven_parent_bom_versions=("release-1.9.0" "release-1.13.0" "release-1.15.0")
14+
15+
# maven-common
16+
maven_common_versions=("release-1.6.4" "release-1.6.10" "release-1.6.11")
17+
18+
# raml-maven
19+
raml_maven_versions=("release-1.5.0")
20+
21+
# embedded-artemis
22+
embedded_artemis_versions=("release-1.0.0")
23+
24+
# maven-framework-parent-pom
25+
maven_framework_parent_pom_versions=("release-1.2.0" "release-1.3.0")
26+
27+
# test-utils
28+
test_utils_versions=("release-1.2.0")
29+
30+
# utilities
31+
utilities_versions=("release-1.6.0")
32+
33+
# file-service
34+
file_service_versions=("release-1.8.0")
35+
36+
# json-schema
37+
json_schema_versions=("release-1.4.1.MoJ.Fork")
38+
39+
# wildfly-maven-plugin
40+
wildfly_maven_plugin_versions=("master")
41+
42+
# Checkout and install given version
43+
function installVersion {
44+
git checkout ${1}
45+
mvn clean install
46+
}
47+
48+
# Checkout and install array of versions
49+
function installVersions {
50+
versions=("$@")
51+
for version in ${versions[@]}; do
52+
installVersion ${version}
53+
done
54+
}
55+
56+
cd ../maven-super-pom
57+
installVersions ${maven_super_pom_versions[@]}
58+
59+
cd ../maven-parent-pom
60+
installVersions ${maven_parent_pom_versions[@]}
61+
62+
cd ../maven-common-bom
63+
installVersions ${maven_parent_bom_versions[@]}
64+
65+
cd ../maven-common
66+
installVersions ${maven_common_versions[@]}
67+
68+
cd ../raml-maven
69+
installVersions ${raml_maven_versions[@]}
70+
71+
cd ../embedded-artemis
72+
installVersions ${embedded_artemis_versions[@]}
73+
74+
cd ../maven-framework-parent-pom
75+
installVersions ${maven_framework_parent_pom_versions[@]}
76+
77+
cd ../test-utils
78+
installVersions ${test_utils_versions[@]}
79+
80+
cd ../utilities
81+
installVersions ${utilities_versions[@]}
82+
83+
cd ../file-service
84+
installVersions ${file_service_versions[@]}
85+
86+
cd ../json-schema
87+
installVersions ${json_schema_versions[@]}
88+
89+
cd ../wildfly-maven-plugin
90+
installVersions ${wildfly_maven_plugin_versions[@]}
91+
92+
cd ../microservice_framework

0 commit comments

Comments
 (0)