Maven

Now, the community can also approach to WADE using maven. We have set up a repository in which you can find the maven artifacts used for building WADE applications. We have also made available a WADE archetype, so the maven users can start a WADE project with the basic structure needed.
For further information, please refer to Maven for WADE Tutorial.

  • WADE Maven Repository

    <repository> 
        <id>tilab</id> 
        <url>http://jade.tilab.com/maven/</url> 
    </repository>

    WADE Dependency

    • It is used to develop WADE-based applications.
    <dependency>
        <groupId>com.tilab.wade</groupId>
        <artifactId>wade</artifactId>
        <version>3.5.0</version>
    </dependency

    WADE INTERFACE Dependency

    • The WADE-interface is an API that makes possible to interact with WADE platform.
    <dependency> 
        <groupId>com.tilab.wade</groupId> 
        <artifactId>wade-interface</artifactId> 
        <version>3.5.0</version>    
    </dependency>

    WADE HIBERNATE-PERSISTENCE Add-on Dependency

    <dependency> 
        <groupId>com.tilab.wade</groupId> 
        <artifactId>hibernate-persistence</artifactId> 
        <version>1.7.0</version>    
    </dependency>

    WADE MONGO-PERSISTENCE Add-on Dependency

    <dependency> 
        <groupId>com.tilab.wade</groupId> 
        <artifactId>mongo-persistence</artifactId> 
        <version>1.1.0</version>    
    </dependency>

    WADE Archetype

    mvn archetype:generate -DarchetypeGroupId=com.tilab.wade.archetypes -DarchetypeArtifactId=wade-archetype-basic -DarchetypeVersion=1.0 -DarchetypeCatalog=http://jade.tilab.com/maven/archetype/
    • The above command generates the WADE archetype in which you can start to develop your WADE-based application.
    • To run the application, you can use the {artifactId}.properties file that is generated after the compilation of your project under the target folder. You just have to place the mentioned file in the projects folder of your WADE platform installation and then run the startBootDaemon and thestartMain passing as an argument the name of the generated .propertiesfile or what is the same your artifact’s id.
    • In alternative, you can launch your WADE-based application using Eclipse as indicated in the next tutorial: Maven for WADE Tutorial.
    • If the package phase of the maven lifecycle is executed, The WADE archetype also offers the possibility of generating a .zip file under thetarget folder that can be used to run your WADE-based application through the installer of the WADE console.