-
Notifications
You must be signed in to change notification settings - Fork 107
Software Configuration
Once the prerequisite software have been installed, it's time to deploy the application itself. This part is explained in this page.
You can either build the EAR from source or you can download it from DocDokuPLM website and jump to the configuration part.
To build the DocDokuPLM software you will need a specific build automation tool called MAVEN. Don't forget to set the MAVEN_HOME environment variable.
- An enterprise application archive (ear) named "eplmp-server-ear.ear" will be generated.
- EPLMP must be built before docdokuplm. There is a one-way dependency between docdokuplm and EPLMP: docdokuplm needs some compiled files archives (.jar) from EPLMP to compile.
First, execute these commands lines in a shell in order to build EPLMP:
git clone https://github.com/polarsys/eplmp.git
cd eplmp
git checkout remotes/origin/develop
mvn install
cd ..
Then, you can proceed and build docdokuplm using the following command lines:
git clone https://github.com/docdoku/docdoku-plm
cd docdoku-plm
git checkout remotes/origin/dev
mvn install
cd ../eplmp/eplmp-server/eplmp-server-ear/target/
Now check in directory eplmp/eplmp-server/eplmp-server-ear/target if eplmp-server-ear.ear file is present.
First if you don't have payara server, download it from the following URL (fish.payara.distributions:payara:4.1.2.181). Unzip it and create a domain as describe here.
To deploy the modified eplmp-server-ear.ear, we have to start the payara server and log into the admin console (http://localhost:4848/). Then click on "Applications> Enterprise Applications> Deploy", browse your local drive to select the "eplmp-server-ear.ear" file and upload it to the server. By default, the port is 8080, but you can change it from there: Configurations > server-config > Network Config > Network Listeners > http-listener-1
{payara install dir}/bin/asadmin stop-domain {domainName};// If not already stopped
cp {ear dir}/eplmp-server-ear.ear {payara install dir}/glassfish/domains/{domainName}/autodeploy/;
{payara install dir}/bin/asadmin set server.http-service.http-listener.http-listener-1.port={port};
{payara install dir}/bin/asadmin start-domain {domainName};
You can deploy some plugins. A plugin is an ear file. Copy the ear file corresponding to the plug-in to the autodeploy folder ({payara install dir}/glassfish/domains/<domain_name>/autodeploy), or use asadmin command.
Plugins available:
- docdoku-plm/converter-all/converter-all-ear/target/converter-all-ear-2.5.X.ear
- docdoku-plm/converter-dae/converter-dae-ear/target/converter-dae-ear-2.5.X.ear
- docdoku-plm/converter-ifc/converter-ifc-ear/target/converter-ifc-ear-2.5.X.ear
- docdoku-plm/converter-obj/converter-obj-ear/target/converter-obj-ear-2.5.X.ear
- docdoku-plm/converter-step/converter-step-ear/target/converter-step-ear-2.5.X.ear
- docdoku-plm/importer-attributes/importer-attributes-ear/target/importer-attributes-ear-2.5.X.ear