Skip to content

Virtual Sensor RDF Schema Editor Develop

premjayaraman edited this page Oct 22, 2014 · 3 revisions

System requirements

All you need to build this project is Java 7.0 (Java SDK 1.7) or later and Maven 3.0 or later. The application this project produces is designed to be run on JBoss AS 7.1.

Download

To download RDF Sensor Schema Editor source code use your favorite git client and retrieve the code from one of the following URLs:

The Sensor Schema Editor is available under the openiot/modules/ui/ui.schemaeditor/ folder.

Deploy Project

Start the JBoss AS 7.1 with the Web Profile 1. Open a command line and navigate to the root of the JBoss server directory. 1. The following shows the command line to start the server with the web profile: * For Linux: JBOSS_HOME/bin/standalone.sh * For Windows: JBOSS_HOME\bin\standalone.bat

Build and Deploy the Schema Editor

NOTE: The following build command assumes you have configured your Maven user settings. If you have not, you must include Maven setting arguments on the command line. Update the POM file int he project directory to configure the JBOSS server.

Make sure you have started the JBoss Server as described above.

Open a command line and navigate to the root directory of the RDF Sensor Schema Editor Project.

Type this command to build and deploy the archive: mvn clean package jboss-as:deploy

This will deploy target/ui.schemaeditor.war to the running instance of the server.

Access the application

The application will be running at the following URL: http://localhost:8080/ui.schemaeditor

Undeploy the project

Make sure you have started the JBoss Server as described above.

Open a command line and navigate to the root directory of the RDF Sensor Schema Editor Project.

When you are finished testing, type this command to undeploy the archive: mvn jboss-as:undeploy

Run in Eclipse

Integrating and Starting JBoss server

You can start JBoss Application Server and deploy the RDF Sensor Schema Editor from Eclipse using JBoss tools. Detailed instructions on how to integrate and start JBoss AS from Eclipse with JBoss Tools are available here.

Integrating and deploying RDF Sensor Schema Editor

To integrate and deploy the RDF Sensor Schema Editor in Eclipse one should follow the steps below:

Import Existing maven project File>Import>Maven>Existing Maven Projects

Click the “Browse” button and navigate to the RDF Sensor Schema Editor source code directory that has been previously downloaded.

Choose the ui.schemaeditor and click the Finish button.

Right click on the ui.schemaeditor project and choose Run As>Maven Build…

Insert the following to:

  • Goals: clean package jboss-as:deploy
  • Click the Run button (the JBoss Server should be already running).

The project will automatically build itself, get deployed and run at the JBoss AS running instance. From now on this configuration should be available at the Eclipse Run Configurations under Maven Build.

To Undeploy the RDF Sensor Schema Editor from the running instance of the JBoss AS follow the steps below:

Right click on the “ui.schemaeditor” project and choose Run As>Maven Build…

Insert the following to:

  • Goals: jboss-as:undeploy
  • Click the Run button (the JBoss Server should be already running).

The project will automatically be undeployed from the JBoss AS running instance. From now on this configuration should be available at the Eclipse Run Configurations under Maven Build.

Clone this wiki locally