Author: Craig Gallen, OpenNMS Copyright© OpenNMS, 2010

Slides:



Advertisements
Similar presentations
Introduction to Maven 2.0 An open source build tool for Enterprise Java projects Mahen Goonewardene.
Advertisements

Developing in CAS. Why? As distributed you edit CAS 3 with Eclipse and build with Maven 2 – Best Practice for Release Engineering – Difficult edit-debug.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Developing CAS in Eclipse
Get android development environment running. Install – Get and install JDK 5 or 6 (see link in the.
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
MC365 Ant. Today We Will Cover: Overview of Ant Installing Ant Using the Ant command line tool Various Ant commands available Using Ant in Eclipse.
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Coursework 2: getting started (4) – using PhoneGap to build mobile applications (optional) Chris Greenhalgh G54UBI /
INF 123: Software Architectures, Distributed Systems, and Interoperability Discussion Session Week 3 - Spring 2008 Instructor: Prof. Richard N. Taylor.
Eclipse Introduction Dwight Deugo Nesa Matic
Eclipse Introduction Dwight Deugo Nesa Matic
Views Dwight Deugo Nesa Matic
INF 123: Software Architectures, Distributed Systems, and Interoperability Discussion Session Week 1 - Spring 2008 Instructor: Prof. Richard N. Taylor.
Web Applications Basics. Introduction to Web Web features Clent/Server HTTP HyperText Markup Language URL addresses Web server - a computer program that.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
Standards for Technology in Automotive Retail STAR Workbench 1.0 Michelle Vidanes & Dave Carver STAR XML Data Architects, Certified Scrum Masters.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
Maven & Bamboo CONTINUOUS INTEGRATION. QA in a large organization In a large organization that manages over 100 applications and over 20 developers, implementing.
IPT2 user interface customization and locale translation Alan Yang, Kun Chi Lai, Jim Hsu Biodiversity Research Center, Academia Sinica.
Eclipse Overview Introduction to Web Programming Kirkwood Continuing Education Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
Sumedha Rubasinghe October,2009 Introduction to Programming Tools.
Duke University Program Design & Construction Course Application Development Tools Sherry Shavor
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Building the Portal. Choosing a Host Computer Select your host computer. o You will need a real IP address for some COG-based portlets o VPN also OK (?)
ATG Environment Setup In this session you will learn – Setting Up ATG environment – Creating new ATG application – Configuring Data Source – Configuring.
INFSOM-RI Juelich, 10 June 2008 ETICS - Maven From competition, to collaboration.
INF 123: Software Architectures, Distributed Systems, and Interoperability Discussion Session Week 1 - Spring 2008 Instructor: Prof. Richard N. Taylor.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Managed by UT-Battelle for the Department of Energy Kay Kasemir, Xihui Chen ORNL/SNS April Control System Studio Training - Development.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
© 2008 by Shawn Spiars; made available under the EPL v1.0 | March 17, 2008 Case Study – Phurnace Software and RCP Shawn Spiars Lead UI Developer Phurnace.
Dr. David Roldán Martínez Universidad Politécnica de Valencia, Spain & Nuno Fernandes Universidade Fernando Pessoa, Portugal Site Stats, the power of event.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
1 G52IWS: Example Web-services Chris Greenhalgh. 2 Contents Software requirements AXIS web service run-time components Getting started with Jetty & AXIS.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
NJIT 1 Apache Tomcat (Version 6.0) THETOPPERSWAY.COM.
® IBM Software Group © 2006 IBM Corporation Rational Asset Manager v7.2 Using Scripting Tutorial for using command line and scripting using Ant Tasks Carlos.
How to install JavaCV in Eclipse. Make sure to download and install all these before you proceed Eclipse for Java EE developers (current is Juno)
Settings MySQL Database and JDBC configuration Instructor: Sergey Goldman.
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
IBM Worklight environment setup 1. Eclipse IDE Multi-purpose integrated development environment (IDE) Open source Supported for Windows, Mac OS X, Linux.
Anjana & Shankar September,2010 Introduction to Programming Tools.
Slide 1. What's New in NetBeans IDE 7.1 Name Title.
Platform & Maven2 David Šimonek. Certified Engineer Course Agenda What is Maven? Why Maven? NB IDE & Maven NB Platform & Maven.
Labs: Create, deploy and test a simple web service
Tips for using Java with Internet Explorer
Maven 04 March
Development with Eclipse
Plan What is Maven ? Links : mvn command line tool
Overall Architecture and Component Model
Test Driven Development
CMPE 152: Compiler Design ANTLR 4 and C++
Instructor: Prasun Dewan (FB 150,
slides borrowed and adapted from Alex Mariakis and CSE 390a
Using JDeveloper.
ESIS Consulting LLC (C) ESIS Consulting LLC. All rights reserved
JENKINS TIPS Ideas for making your life with Jenkins easier
Cordova & Cordova Plugin Installation and Management
Java Code Review with CheckStyle
Presentation transcript:

Author: Craig Gallen, OpenNMS Copyright© OpenNMS, 2010 Getting Started with JOSIF Author: Craig Gallen, OpenNMS Copyright© OpenNMS, 2010

Timetable Copyright Hewlett-Packard 11-Nov-18

Agenda Overview of JOSIF build components download and Installation starting a project

Realistic Model Driven Engineering Interface model directly derived from the SID Model based interface generation Spec RI CTK Implementation Libraries Interface Operations added in Tigerstripe SID modelled in Rational RSM Interface Implementation Same framework for all interfaces Can be extended to new managed technologies (Modelling: 3G, Ethernet etc) Can be extended to different management technologies (WSDL, JAVA, etc) Can be offered to other standards organisations (ITU-T, 3GPP etc) Can be used internally by SP’s, SI’s, Equipment vendors OSS Interface Specification OSS OSS Interface API (Like OSS/J)

Generic Tigerstripe Build Process Project Website Maven 2 Public Repo Eclipse Tigerstripe Workspace TS Model Project TS Plugin Project Packaging Project jar pom.xml zip doc Generated website Transitory Dependency Jar in local .m2 repository Deployed Plugin Deployed Models Release Naming Release n.n SNAPSHOT – under development Release n.n Final Release Machine Readable Packaging Maven Repo; Pom + Jar or OSGi Bundle Mirrored repo Web site for XSD checking Human Readable packaging Project Web Site Automatically generated documentation Test results Jira – bug /feature tracking Automatic continuous build process Triggered by changes to subversion Checks out changes Uses Maven to build, est and deploy entire project as a SNAPSHOT Reports build failure to developer list Stereotypes Annotations

Interface Program (TIP) Project Organisation Project Infrastructure Technology Tigerstripe Maven build system Project Creator Site Subversion Maven Repository M2 Generated Documentation Wiki Bug Tracker Mail lists Interface Projects Model Specification Documentation RI CTK Implementation Library Project Infrastructure Platform Projects Framework Projects Interface Projects Framework Projects Tigerstripe DOC Generators Tigerstripe SOAP Generators TIP Common Model TIP Internal Model Test Models Platform Projects Java Implementation Generators Implementation Base Classes Technology Maven Spring EJB 3 – open EJB Junit JPA – Hibernate JAXB, JAX-WS - Apache CXF Future JPA2 - criteria OSGi dynamic module system for java SCA Service Component Architecture Project Namespaces org.tmforum.tip Namespace of TM Forum Standard Group name in maven repo of the standard artefacts from TM Forum Interface Program org.openoss.tip Namespace of this specific implementation (one of many) Group name in maven repo of Implementation artefacts

Infrastructure: Project Workspaces Flat maven structure means related projects can co-exist in same Tigerstripe Workspace but still pass dependencies using maven

Agenda Overview of JOSIF build components download and Installation starting a project

Java Download and Installation http://java.sun.com/javase/downloads/widget/jdk_javafx.jsp NOTE; use JDK 6 Update 20 NOT Update 21 or follow instructions at http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Oracle.2FSun_VM_1.6 .0_21_on_Windows Set (windows) class path to point to JDK right click on desktop Computer icon select properties select advanced system settings select environment variables Path C:\Program Files\PHP\;C:\Program Files\CollabNet Subversion;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\CyberLink\Power2Go\;C:\Program Files\Java\jdk1.6.0_18\bin;C:\Program Files\Apache_Software_Foundation\apache-maven-2.2.1\bin;C:\Program Files\Common Files\Teleca Shared:C:\Program Files\OpenOffice.org 2.0\program;C:\Program Files\CollabNet Subversion;C:\ant\apache-ant-1.7.1\bin;C:\Program Files\PuTTY\;C:\Program Files\Samsung\Samsung PC Studio 3\;C:\cygwin\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\ to test in command window try java –version javac -version

Eclipse Galileo Installation Note ensure to use Eclipse Galileo NOT Helios http://www.eclipse.org/downloads/packages/release/galileo/r Download Eclipse IDE for Java EE Developers (32 bit windows - eclipse-jee-galileo- win32.zip Unpack zip file to location near C:/ I use C:\eclipsets edit eclipse.ini file: --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 -startup plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -product org.eclipse.epp.package.jee.product --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform 256m -vmargs -XX:MaxPermSize=500m -Dfile.encoding=UTF-8 -Dosgi.requiredJavaVersion=1.5 -Xms500m -Xmx768m Start up eclipse – double click on eclipse.exe Eclipse will ask you to select a workspace- Use one Near to C:// I use C://ws-ts1

Other eclipse settings In window / preferences Java set java JRE to point to installed JDK Select search for JRE and look in C:\\program files\java XML set xml editor to 160 character width set xml editor to use spaces (2) instead of tabs Ant set ant editor to 160 character width set ant editor to use spaces (2) instead of tabs set ant editor to no folding

Eclipse Plugin Installation Tigerstripe site see http://www.eclipse.org/tigerstripe/downloads.php In eclipse select help>Install new software enter new update site Use Tigerstripe Interim download site http://download.eclipse.org/technology/tigerstripe/updates-3.5-interim/ Install Subversion client Subclipse - http://subclipse.tigris.org/update_1.6.x Optional May also install TestNG Buest - http://beust.com/eclipse AnyEdit - http://andrei.gmxhome.de/eclipse/ These are installed by dropping jar into C:\eclipsets\plugins http://velocitywebedit.sourceforge.net/ http://apteditor.sourceforge.net/

Maven Download and Installation http://maven.apache.org/ ( read install instructions) download apache-maven-2.2.1 install at C:\Program Files\Apache_Software_Foundation\apache-maven- 2.2.1 set environment variables set class path ( see example for java) set M2_HOME C:\Program Files\Apache_Software_Foundation\apache-maven-2.2.1 set MAVEN_OPTS -XX:MaxPermSize=256m -Xmx1024m Test in command window type mvn -version

Simple Maven Example simple example see http://maven.apache.org/guides/getting-started/index.html mvn archetype:generate choose simple example (15) change to directory of created project type mvn clean install Look in your home directory look for m2 repository C:\Users\cgallen\.m2\repository to see in eclipse – need to map into eclipse class path got to window>Preferences>Java>Build Path>Classpath variables add variable M2_REPO pointing at C:\Users\cgallen\.m2\repository import project into eclipse right click project explorer import> existing projects into workspace browse to project workspace and select generated projects To see whole project select customize view – unclick *.resources

Agenda Overview of JOSIF build components download and Installation starting a project

Using Project Creator if needed download latest project creator from create new workspace create M2_REPO class path variable download latest project creator from http://openoss.myzen.co.uk/TIP/m2repo- snapshots/org/openoss/tip/TIP_Project_Creator/ named something like; TIP_Project_Creator-0.3.0-20100513.142413-1-standard.jar run project creator place project creator in workspace and double click on jar or in command window java –jar TIP_Project_Creator- 0.3.0-20100513.142413-1-standard.jar Will create multiple related projects in workspace

Import new project into eclipse cd to <projectname>_BaseProject this is the main project which calls the build of all other projects type mvn clean install this should start the build – but the build may fail because no plugins or profile are installed Start Eclipse and import projects into workspace follow same steps as with simple maven project – note you may not be able to import all the projects if build does not complete Import plugins and tigerstripe profile These will be downloaded into <projectname>_Model/TigerstripeGenerators double click on tip_profile.wbp – load into tigestripe workspace Eclipse>tigerstripe>plugins – right click and import the plugins downloaded into TigerstripeGenerators exit eclipse and again type mvn clean install in <projectname>_BaseProject this should complete restart eclipse and import all the projects into the workspace

checking out existing project You need to have installed subclipse http://subclipse.tigris.org/ eclipse>window>open perspective>SVN repository exploring right click on SVN repositories pane add new repository location https://openoss.svn.sourceforge.net/svnroot/openoss navigate to the project and check out into workspace tip/interfaces/ServiceProblemManagement/trunk right click on all projects and check out into workspace set tigerstripe.properties file IN <projectname>_Model/ copy tigerstripe.properties-TEMPLATE to tigerstripe.properties change the paths in tigerstripe.properties to point to your tigerstripe installation and to your project worksapace Now follow same steps as when using project creator to build project and import into workspace after build set svn:ignore on target, .properties, *log*, .classpath if not already set for checked out project.

References JOSIF main page http://sourceforge.net/apps/mediawiki/ope noss/index.php?title=TIP_Main_Page JOSIF GuideBook http://sourceforge.net/apps/mediawiki/ope noss/index.php?title=Framework_Guidebook JOSIF Getting Started http://sourceforge.net/apps/mediawiki/ope noss/index.php?title=Getting_Started Copyright Hewlett-Packard 11-Nov-18