Topic: Steps to build Ametys from Git Repository

Hi,

I downloaded all the code from the master GIT repository, but when I try to build the Runtime, it fails with dependency on the common/tools which is not there.

Are there any documents available to do the compile and build of the ametys from the source code provided in the GIT repository or is that a Work in progress and we need to use the SVN memthodology only for the version 4.0.x also

Re: Steps to build Ametys from Git Repository

Hi,

before I enter into long explanations, I will first ask you : why do you want to rebuild Ametys on your own?

Ametys is different (better smile) thanother products: you never have to change it in order to add your own features... all is based on plugins and extensions. Thanks to this, upgrading from a version to another version is quite simple.

So, about 99.9% of people who ask how to build Ametys, does not need it smile
The staying 0.1% want to do it for the "sport"...

Raphael Franchet
Expert Ametys

Re: Steps to build Ametys from Git Repository

HI raphael,

thanks for the candid answer. i wanted to build it for understanding the build methodology/process. otherwise, you are right that the core functionality is very much extendable using the plugins. at the same time, if I want to build my own plugin and want to make it as a JAR file, is there a build file and steps available?

Re: Steps to build Ametys from Git Repository

Raphael Franchet
Expert Ametys

Re: Steps to build Ametys from Git Repository

thanks Raphael. will try out the same and get back in case of issues

Re: Steps to build Ametys from Git Repository

Re: Steps to build Ametys from Git Repository

hi raphael,

the issue was with the ametys certificate not available in the JDK. i used a keytool to import the ametys SSL certificate and now the build is running properly.

Re: Steps to build Ametys from Git Repository

The download was successful and then i proceeded to do the build of the kernel/01_Runtime. it failed with the ojdbc7 driver download. none of the dependency path URLs that the build process tries to locate the JAR file contains the JAR file.

I have downloaded the file and placed it manually in the ivyrep directory to make this build successful. will document the steps in the next post

Re: Steps to build Ametys from Git Repository

Re: Steps to build Ametys from Git Repository

Indeed, the ojdbc cannot be exposed due to its licence.
There are many way for you to fix this, but the simpliest is to remove the dependency and to do not try to execute the Oracle tests.

No there is no task to build all modules in a row.
Here is a script I have to build the kernel modules in a row

File to put at the root of the "01 - Runtime" :

<project name="All" default="all" xmlns:ametys="antlib:org.ametys.tools"
                                                     xmlns:clover="antlib:com.atlassian.clover"
                                                     xmlns:ivy="antlib:org.apache.ivy.ant">

    <basename property="branch" file="${basedir}"/>

    <target name="all">
        <ant dir="."/>
        <ant dir="../../02_JCR/${branch}"/>
        <ant dir="../../03_Repository/${branch}"/>
        <ant dir="../../04_Workflow/${branch}"/>
        <ant dir="../../05_Explorer/${branch}"/>
        <ant dir="../../07_CMS/${branch}"/>
        <ant dir="../../08_Web/${branch}"/>
    </target>

</project>
Raphael Franchet
Expert Ametys

Re: Steps to build Ametys from Git Repository

Re: Steps to build Ametys from Git Repository

Raphael Franchet
Expert Ametys

Re: Steps to build Ametys from Git Repository

Hi raphael,

But I did not select any safe mode. so how the application automatically went into safe mode? or when the first time the application is going to be initialized, will it always go into safe mode?

Re: Steps to build Ametys from Git Repository

Indeed, when configuration is not set, application is in safe mode

Raphael Franchet
Expert Ametys

Re: Steps to build Ametys from Git Repository

Hi Raphael,

I was able to successfully build the master branch and the zip file containing the solr,cms & site folders have been created. I moved the cms and the site folders to a tomcat's webapps folder and also started solr using the command from the solr folder.

I was able to login to cms/_admin and create sites, but when I try to index the site, i get an error,


(AmetysRuntimeScheduler_Worker-3;/cms/_admin/plugins/admin/config/set) Unable to rebuild live workspace
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr: Unsupported operation: createConfigset

Iam not able to find a solution for this. is this a valid error?