Giter Club home page Giter Club logo

unified-push-quickstarts's Introduction

Build Status

unified-push-quickstarts

Unified Push Quickstart Examples

  • server
    • contacts-mobile-picketlink-secured
    • contacts-mobile-proxy
  • client
    • android
    • cordova
    • ios
    • contacts-mobile-webapp
Project Info
License: Apache License, Version 2.0
Build: Maven
Documentation: http://www.jboss.org/unifiedpush/
Issue tracker: https://issues.jboss.org/browse/MP

Configure Maven

Configure Maven to Build and Deploy the Quickstarts

The quickstarts use artifacts located in the JBoss GA and Early Access repositories. You must configure Maven to use these repositories before you build and deploy the quickstarts.

Note: These instructions assume you are working with a released version of the quickstarts. If you are working with the quickstarts located in the GitHub master branch, follow the instructions located in the Contributing Guide.

  1. Clone the repository git clone [email protected]:aerogear/aerogear-push-quickstarts.git

  2. cd aerogear-push-quickstarts

  3. Run

mvn clean install

Maven Profiles

Profiles are used by Maven to customize the build environment. The pom.xml in the root of the quickstart directory defines the following profiles:

  • The default profile defines the list of modules or quickstarts that require nothing but JBoss Enterprise Application Platform.
  • The android profile lists Android quickstarts.
  • The non-maven profile lists quickstarts that do not require Maven, for example, quickstarts that use other Frameworks or technologies.
  • The functional-tests profile lists quickstarts that provide functional tests.

Use JBoss Developer Studio or Eclipse to Run the Quickstarts

You can also deploy the quickstarts from Eclipse using JBoss tools. For more information on how to set up Maven and the JBoss tools, see the JBoss Enterprise Application Platform Documentation or Get Started with JBoss Developer Studio.

Run the Arquillian Tests


Some of the quickstarts provide Arquillian tests. By default, these tests are configured to be skipped, as Arquillian tests an application on a real server, not just in a mocked environment.

You can either start the server yourself or let Arquillian manage its lifecycle during the testing. The individual quickstart README should tell you what to expect in the console output and the server log when you run the test. Note you would need to build quickstarts first before you can run functional-tests profile and even if you enable this profile, you still need to select container runtime via arq-jbossas-remote or arq-jbossas-managed profile.

  1. Test the quickstart on a remote server

    • Arquillian's remote container adapter expects a JBoss EAP server instance to be already started prior to the test execution. You must Start the JBoss EAP server as described in the quickstart README file.

    • If you need to run the tests on a JBoss EAP server running on a machine other than localhost, you can configure this, along with other options, in the src/test/resources/arquillian.xml file using the following properties:

        <container qualifier="jboss" default="true">
            <configuration>
                <property name="managementAddress">myhost.example.com</property>
                <property name="managementPort">9999</property>
                <property name="username">customAdminUser</property>
                <property name="password">myPassword</property>
            </configuration>
        </container>
      
    • Run the test goal with the following profile activated:

        mvn clean test -Parq-jbossas-remote
      
  2. Test the quickstart on a managed server

    Arquillian's managed container adapter requires that your server is not running as it will start the container for you. However, you must first let it know where to find the JBoss EAP directory. The simplest way to do this is to set the JBOSS_HOME environment variable to the full path to your JBoss EAP directory. Alternatively, you can set the path in the jbossHome property in the Arquillian configuration file.

    • Open the src/test/resources/arquillian.xml file located in the quickstart directory.

    • Find the configuration for the JBoss container. It should look like this:

        <!-- Example configuration for a managed/remote JBoss EAP instance -->
        <container qualifier="jboss" default="true">
            <!-- If you want to use the JBOSS_HOME environment variable, just delete the jbossHome property -->
            <!--<configuration> -->
            <!--<property name="jbossHome">/path/to/jboss/as</property> -->
            <!--</configuration> -->
        </container>
      
    • Uncomment the configuration element, find the jbossHome property and replace the "/path/to/jboss/as" value with the actual path to your JBoss EAP server.

    • Run the test goal with the following profile activated:

        mvn clean test -Parq-jbossas-managed
      

Documentation

For more details about the current release, please consult our documentation.

Development

If you would like to help develop AeroGear you can join our developer's mailing list, join #aerogear on Freenode, or shout at us on Twitter @aerogears.

Also takes some time and skim the contributor guide

Found a bug?

If you found a bug please create a ticket for us on Jira with some steps to reproduce it.

unified-push-quickstarts's People

Contributors

edewit avatar danielpassos avatar cvasilak avatar danbev avatar matzew avatar vibe13 avatar sebastienblanc avatar lholmquist avatar kpiwko avatar joshuawilson avatar corinnekrych avatar pedroigor avatar secondsun avatar qmx avatar gorkem avatar tadeaskriz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.