Created
July 9, 2020 07:07
-
-
Save adrianlzt/a76f33442c875bfc9017956f3c24e799 to your computer and use it in GitHub Desktop.
CMDB not-complete build instructions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download code from sourceforge (.tar.gz) | |
Deps needed: | |
https://bitbucket.org/tecnoteca/cmdbuild-dependencies/downloads/ | |
Uncompress and install: | |
bash install-artifacts.sh | |
Copy those deps to our m2 local cache: | |
rsync -a . $HOME/.m2/repository/ | |
Compile shark-ws-plain and copy to the dir where cmdb looks for it: | |
cd $HOME/.m2/repository/net/sourceforge/sharkwf/shark-ws-plain | |
mvn package | |
cp target/shark-ws-plain-4.4-1.war 4.4-1/shark-ws-plain-4.4-1.war | |
cp $HOME/Documentos/cmdbuild/cmdbuild-3.2.1/shark/extensions/target/cmdbuild-shark-extensions-3.2-DEV-SNAPSHOT.jar $HOME/.m2/repository/org/cmdbuild/cmdbuild-shark-extensions/3.2-DEV-SNAPSHOT/cmdbuild-shark-extensions-3.2-DEV-SNAPSHOT.jar | |
mkdir -p $HOME/.m2/repository/org/cmdbuild/cmdbuild-utils-lang/3.2-DEV-SNAPSHOT/ | |
cp ../cmdbuild-3.2.1/utils/lang/target/cmdbuild-utils-lang-3.2-DEV-SNAPSHOT.jar $HOME/.m2/repository/org/cmdbuild/cmdbuild-utils-lang/3.2-DEV-SNAPSHOT/cmdbuild-utils-lang-3.2-DEV-SNAPSHOT.jar | |
mkdir -p $HOME/.m2/repository/org/cmdbuild/cmdbuild-utils-io/3.2-DEV-SNAPSHOT/ $HOME/.m2/repository/org/cmdbuild/cmdbuild-client-rest/3.2-DEV-SNAPSHOT/ $HOME/.m2/repository/org/cmdbuild/cmdbuild-utils-postgres/3.2-DEV-SNAPSHOT $HOME/.m2/repository/org/cmdbuild/cmdbuild-core-configdefs/3.2-DEV-SNAPSHOT | |
cp utils/io/target/cmdbuild-utils-io-3.2-DEV-SNAPSHOT.jar $HOME/.m2/repository/org/cmdbuild/cmdbuild-utils-io/3.2-DEV-SNAPSHOT/; cp client/rest/target/cmdbuild-client-rest-3.2-DEV-SNAPSHOT.jar $HOME/.m2/repository/org/cmdbuild/cmdbuild-client-rest/3.2-DEV-SNAPSHOT/; cp utils/postgres/target/cmdbuild-utils-postgres-3.2-DEV-SNAPSHOT.jar $HOME/.m2/repository/org/cmdbuild/cmdbuild-utils-postgres/3.2-DEV-SNAPSHOT; cp core/configdefs/target/cmdbuild-core-configdefs-3.2-DEV-SNAPSHOT.jar $HOME/.m2/repository/org/cmdbuild/cmdbuild-core-configdefs/3.2-DEV-SNAPSHOT/ | |
vi pom.xml | |
remove utils/bugreportcollector and utils/alfresco-migrator | |
install "sencha-cmd" (we need the "sencha" binary) | |
http://cdn.sencha.com/cmd/6.2.2/no-jre/SenchaCmd-6.2.2-linux-amd64.sh.zip | |
Put sencha in the PATH | |
export PATH=$HOME/Documentos/Sencha/Cmd/6.2.2.36/:$PATH | |
mvn clean install | |
cmdbuild-test-core fail: | |
Tests in error: | |
GeoAttributeIT.createDeleteGeoAttribute@org.cmdbuild.test.core.getEmptyDb » Runtime | |
GeoAttributeIT.createGeoAttribute@org.cmdbuild.test.core.getEmptyDb » Runtime ... | |
GeoStyleRulesIT.testGeoStyleRules@org.cmdbuild.test.core.getEmptyDb » Runtime ... | |
GeoStyleRulesIT.testGeoStyleRulesParamsCreateUpdate@org.cmdbuild.test.core.getEmptyDb » Runtime | |
GeoStyleRulesIT.testGeoStyleRulesWithFunction@org.cmdbuild.test.core.getEmptyDb » Runtime | |
GisValueIT.testGisValueWithNavTree:86->createGeoAttribute:165 » UncategorizedSQL | |
Ingore and skip the rest of tests: | |
mvn install -rf :cmdbuild-main | |
To build just one module: | |
mvn package -pl :cmdbuild-services-rest-v3 | |
To add that module, uncompress the oficial .war, add our module and regenerate .war file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool, thanks!