We are currently working on the forum. For the short-term, all forum content will be in read-only format. We apologize for the interruption and look forward to collaborating with you shortly. All the best in your research!

Maven configuration

Hi all,
I downloaded the latest source code available and now I’m trying to make some customization to the code.

I understood that in the web target (web/target/OpenClinica-web-SNAPSHOT/WEB-INF/classes) there is the file datainfo.properties that contains the database configuration.

Right now I change it manually and OC works correctly; but what is the file to configure that file directly from maven?

I would like run an installation using mvn modifying automatically the database configuration.

Thank you in advance.
Best regards

Dr. Ennio Masi
Project Manager

Descrizione: Descrizione: cid:[email protected]

Hippocrates Sintech Srl - Via XX Settembre 30/4 - 16121 Genova
www.hippocrates-sintech.it
Tel. +39 010 5454880
This email and any attachments are confidential, legally privileged and protected by copyright. If you are not the intended recipient dissemination or copying of this email is prohibited.
If you have received this in error, please notify the sender by replying by email and then delete the email completely from your system.
This email and any attachments have been scanned for viruses, but it is the responsibility of the recipient to conduct their own security measures and no responsibility is accepted by Hippocrates Sintech for loss or damage arising from the receipt or use of this email.
No responsibility is accepted by Hippocrates Sintech for personal email, or email unconnected with the firm's or clients' business.

Comments

  • drodriguesdrodrigues Posts: 18
    Hi Dr. Ennio,
    From which code branch have you got the source you refer to? If you have the latest 3.1-SNAPSHOT [1] code, you can customize your datainfo.properties values using build profiles [2].
    Kindly,
    Douglas
    [1] - https://dev.openclinica.com/hg/openclinica/community/OpenClinica-3.1-SNAPSHOT/summary
    [2] - https://wiki.openclinica.com/doku.php?id=developerwiki:buildingfromsource
    On 17-Sep-12 9:42 AM, Ennio Masi - Hippocrates Sintech S.r.l. wrote:
    > Hi all,
    >
    > I downloaded the latest source code available and now I’m trying to make
    > some customization to the code.
    >
    > I understood that in the web target
    > (*web/target/OpenClinica-web-SNAPSHOT/WEB-INF/classes*) there is the
    > file *datainfo.properties* that contains the database configuration.
    >
    > Right now I change it manually and OC works correctly; but what is the
    > file to configure that file directly from maven?
    >
    > I would like run an installation using *mvn* modifying automatically the
    > database configuration.
    >
    > Thank you in advance.
    >
    > Best regards
    >
    > Dr. Ennio Masi
    >
    > Project Manager
    >
    > Descrizione: Descrizione: cid:[email protected]
    >
    > Hippocrates Sintech Srl - Via XX Settembre 30/4 - 16121 Genova
    >
    > www.hippocrates-sintech.it
    >
    > Tel. +39 010 5454880
    >
    >
    > This email and any attachments are confidential, legally privileged and
    > protected by copyright. If you are not the intended recipient
    > dissemination or copying of this email is prohibited.
    > If you have received this in error, please notify the sender by replying
    > by email and then delete the email completely from your system.
    > This email and any attachments have been scanned for viruses, but it is
    > the responsibility of the recipient to conduct their own security
    > measures and no responsibility is accepted by Hippocrates Sintech for
    > loss or damage arising from the receipt or use of this email.
    > No responsibility is accepted by Hippocrates Sintech for personal email,
    > or email unconnected with the firm's or clients' business.
    >
    >
    >
    >
This discussion has been closed.