Project sources
Community
Sources are available under the LGPL license on GitHub at https://github.com/becpg/becpg-community
Check out the code using git:
$ git clone https://github.com/becpg/becpg-community.git
Example using git to make a patch:
(make changes)
$ git commit
$ git format-patch -1 # export the most recent commit
Build project
Use Apache Maven version 3 or later to build the project. Maven is available at https://maven.apache.org/, or you can use the Maven wrapper inside the becpg-community project.
You also need Docker: https://www.docker.com/
First, download and install the becpg-report and becpg-report-client JARs:
$> wget https://sourceforge.net/projects/becpg-community/files/becpg-report_3_2_a/becpg-report-3.2.0-community.zip/download -O becpg-report-3.2.0-community.zip
$> unzip becpg-report-3.2.0-community.zip
$> cd becpg-report-3.2.0/
$> mvn install:install-file -Dfile=./becpg-report-3.2.0-client.jar -DgroupId=fr.becpg -DartifactId=becpg-report -Dversion=3.2.0 -Dpackaging=jar -Dclassifier=client
$> docker-compose build
Then use run.sh to start Docker with becpg-community. You can also generate the Alfresco AMPs using:
$> cd becpg-communnity
$>./mvnw clean package -DskipTests=true -P full
The project AMPs are in the target directories.
Start beCPG report
First, download becpg-report:
$>unzip becpg-report-3.2.0-community.zip
$>cd becpg-report-3.2.0/
Start it using Docker:
$>docker-compose build
$>docker-compose up
Start it using the script:
$>./start.sh
Start beCPG in Docker
Install the requirements:
$> cp docker-compose.override.yml.sample docker-compose.override.yml
$> ./run.sh install
Run beCPG in Docker:
$> ./run.sh build_start
See also the Alfresco Maven SDK 4.0 documentation for more details.
Run Tests
To run all integration tests:
$> ./run.sh test
To run a specific test:
$> ./mvnw test -Dtest=MyTest.java -DfailIfNoTests=false
Integration tests require the beCPG server to be started first (./run.sh build_start).
Download a prebuilt version
You can download beCPG community on SourceForge or you can build it from sources.
Each module has a community release provided as a Zip archive.
Prerequisites:
- The Alfresco Community version: http://www.alfresco.com/products/community/download
- Or the Alfresco One version: http://www.alfresco.com/products/enterprise/trial
Manually deploy the AMPs
The projects must be built, and Alfresco must be set up and running. Once built, the files are in the target directories.
Install becpg-designer
Install the core AMPs:
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-core/target/becpg-core-$BECPG_VERSION.amp $SERVER/webapps/alfresco.war -force
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-designer/becpg-designer-core/target/becpg-designer-core-$BECPG_VERSION.amp $SERVER/webapps/alfresco.war -force
Install the Share AMPs:
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-share/target/becpg-share-$BECPG_VERSION.amp $SERVER/webapps/share.war -force
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-designer/becpg-designer-share/target/becpg-designer-share-$BECPG_VERSION.amp $SERVER/webapps/share.war -force
Install becpg-project
Install the core AMPs:
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-core/target/becpg-core-$BECPG_VERSION.amp $SERVER/webapps/alfresco.war -force
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-project/becpg-project-core/target/becpg-project-core-$BECPG_VERSION.amp $SERVER/webapps/alfresco.war -force
Install the Share AMPs:
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-share/target/becpg-share-$BECPG_VERSION.amp $SERVER/webapps/share.war -force
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-project/becpg-project-share/target/becpg-project-share-$BECPG_VERSION.amp $SERVER/webapps/share.war -force
Install becpg-plm
Install the core AMPs:
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-core/target/becpg-core-$BECPG_VERSION.amp $SERVER/webapps/alfresco.war -force
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-designer/becpg-designer-core/target/becpg-designer-core-$BECPG_VERSION.amp $SERVER/webapps/alfresco.war -force
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-project/becpg-project-core/target/becpg-project-core-$BECPG_VERSION.amp $SERVER/webapps/alfresco.war -force
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-plm/becpg-plm-core/target/becpg-plm-core-$BECPG_VERSION.amp $SERVER/webapps/alfresco.war -force
Install the Share AMPs:
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-share/target/becpg-share-$BECPG_VERSION.amp $SERVER/webapps/share.war -force
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-designer/becpg-designer-share/target/becpg-designer-share-$BECPG_VERSION.amp $SERVER/webapps/share.war -force
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-project/becpg-project-share/target/becpg-project-share-$BECPG_VERSION.amp $SERVER/webapps/share.war -force
$>java -jar $ALF/bin/alfresco-mmt.jar install ./becpg-plm/becpg-plm-share/target/becpg-plm-share-$BECPG_VERSION.amp $SERVER/webapps/share.war -force
Translate projects
Create an account on https://translate.zanata.org/zanata/project/view/becpg and submit your translations.
Enterprise
Enterprise sources are not publicly available. Please contact us.