Prerequisites

Joget Workflow (A running copy is required as it contains 3rd party JAR files not in the Maven central repository)

Java Development Kit (JDK) 6

MySQL 5 (Oracle)

Apache Maven 2.2.1

Subversion Client

Install Prerequisites

Install Joget Workflow and ensure that it can run

Install JDK 6

Install MySQL 5 (Oracle)

Get and install Apache Maven 2.2.1 from http://maven.apache.org/

Get and install Subversion Client from http://www.open.collab.net/downloads/subversion/

Install 3rd party libraries

Unzip the attached joget-maven-setup.zip into the Joget Workflow installation directory. This zip should contain 2 files: setup-maven.xml and shark-maven-2.0.1.pom.

In the Joget Workflow installation directory, execute the setup-maven.xml file using Ant to add the required 3rd party libraries into your local Maven repository apache-ant-1.7.1/bin/ant -f setup-maven.xml

Note: If you do above on windows platform, please modify mvn to mvn.bat in the setup-maven.xml before execute "apache-ant-1.7.1/bin/ant -f setup-maven.xml"

  1. Get the source code

         svn co http://svn.github.com/jogetworkflow/jogetworkflow.git

    2.   Modify the Datasource

        navigate  to you user home ex: C:\Users\myuser\wflow

        modify datasource.properties setting correctly.

    3.  Add jnlp-servlet-5.0.jar to you maven repository

       The directory of maven repository is  c:\users\myuser\.m2

        This jar should be put at com/sun/java/jnlp/jnlp-servlet/5.0

        NOTE: The jar file can be located at <JoGet Installation Direction>/apache-tomcat-6.0.18/webapps/jwdesigner/WEB-INF/lib/jnlp-servlet-5.0.jar

        NOTE: Assume the JoGet installation directory is c:\Joget-v3-Beta2\, then run the following command on Windows:

mvn install:install-file -Dfile=c:\Joget-v3-Beta2\apache-tomcat-6.0.18\webapps\jwdesigner\WEB-INF\lib\jnlp-servlet-5.0.jar -DgroupId=com.sun.java.jnlp -DartifactId=jnlp-servlet -Dversion=5.0 -Dpackaging=jar -DgeneratePom=true

    4.  Modify pom.xml before compiling plugins

             add follow content to pom.xml

        <dependency>

            <groupId>javax.servlet</groupId>

            <artifactId>servlet-api</artifactId>

            <version>2.3</version>

            <scope>test</scope>

        </dependency>

             jogetworkflow.git\wflow-plugins\wflow-plugin-referenceId\pom.xml

             jogetworkflow.git\wflow-plugins\wflow-plugin-report\pom.xml

             jogetworkflow.git\wflow-plugins\wflow-plugin-userNotification\pom.xm

 5.  build app and plugins           

      cd wflow-app

      mvn install

      cd wflow-plugins

      mvn install

  • No labels

8 Comments

  1. Hi all,

    I have some trouble compiling joget source code...

    I'm trying to log against an external database and it looks like I would need to implement a Directory manager to do so.

    I tried to, following the http://dev.joget.org/community/display/KB/Building+from+Source tuto but I can't manage to make it work...

    I have a working version of joget workflow, JDK6, mySQL5 and I installed maven and the svn client (which I'm not sure it is a client, I couldn't find where to execute the svn checkout command).

    By the way, I unziped the attached joget-maven-setup.zip on my joget installation directory and try to deploy it with the ant command but I get a few warnings and errors...

    Here is part of the error log I get :

    C:\Joget-v2>apache-ant-1.7.1\bin\ant -f setup-maven.xml
    Buildfile: setup-maven.xml

    setup-maven:
         [exec] [INFO] Scanning for projects...
         [exec] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/
    maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
         [exec]
         [exec] [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.
    plugins:maven-clean-plugin:2.4.1: Plugin org.apache.maven.plugins:maven-clean-pl
    ugin:2.4.1 or one of its dependencies could not be resolved: Failed to read arti
    fact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1Downloa
    ding: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugi
    n/2.3.1/maven-install-plugin-2.3.1.pom
         [exec]
         [exec] [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.
    plugins:maven-install-plugin:2.3.1: Plugin org.apache.maven.plugins:maven-instal
    l-plugin:2.3.1 or one of its dependencies could not be resolved: Failed to read
    artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.3.1D
    ownloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy\-
    plugin/2.5/maven-deploy-plugin-2.5.pom
         [exec]
         [exec] [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.
    plugins:maven-deploy-plugin:2.5: Plugin org.apache.maven.plugins:maven-deploy-pl
    ugin:2.5 or one of its dependencies could not be resolved: Failed to read artifa
    ct descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:2.5Downloadin
    g: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.0.
    1/maven-site-plugin-2.0.1.pom

    what is this warning I get ? (has anyone ever got it ?)

    I'm not shure I understood the installation process... What is the normal way to implement custom plugins in joget ?

    Thanks,

    Antoine

    PS : I'm a bit lost in here, I've been trying a few different tutos on ways to log against an extern table without success... (any help would be more than welcome :) )

    1. get the same error as you do. Wondering what's your finding on this?

      1. Hey Chong,

        What version of Maven are you running on?

        1. i am using Maven 3.0.4

          1. Hi Chong,

            Please try again using Apache Maven 2.2.1. It should work.

            Good luck!

            1. It's work now. Thank you very much. :>

  2. When executing:

    mvn install

    I get the following in my cmd window:

    Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.

    Any help?

    1. Hey Ahmed,

      Be sure that you are pointing to the folder "wflow-app" first before running the command. Hope this helps.

      And just in case that if you are asking this question in respect of the version 3, then you need to post in the Discussion Forums.