Set up Maven plugins in Eclipse. Creating a new project

Similar documents
4. Check the site specified in previous step to work with, expand Maven osgi-bundles, and select slf4j.api,

Produced by. Agile Software Development. Eamonn de Leastar

Setting up a Maven Project

What is Maven? Apache Maven is a software project management and comprehension tool (build, test, packaging, reporting, site, deploy).

Apache Maven. Created by anova r&d bvba

Simplified Build Management with Maven

FROM NOTHING TO COMPLETE ENVIRONMENT WITH MAVEN, OOMPH & DOCKER. Max Bureck, 21. June 2017

Session 24. Spring Framework Introduction. Reading & Reference. dev.to/lechatthecat/how-to-use-spring-boot-java-web-framework-withintellij-idea-202p

Construction: version control and system building

EPL451: Data Mining on the Web Lab 6

Pour aller plus loin : Programmation outillée

Oracle Code Day Hands On Labs (HOL) (Install, Repository, Local Deploy, DevCS, OACCS)

Overall Design of SSS Software

Maven. INF5750/ Lecture 2 (Part II)

MANUAL DO ALUNO DE ENGENHARIA DE SOFTWARE

gradle : Building Android Apps Mobel Meetup

Topics covered. Introduction to Maven Maven for Dependency Management Maven Lifecycles and Plugins Hands on session. Maven 2

Sonatype CLM - IDE User Guide. Sonatype CLM - IDE User Guide

Spark Tutorial. General Instructions

Oracle Code Day Hands On Labs HOL

Content. Development Tools 2(57)

In this tutorial, we will understand how to use the OpenNLP library to build an efficient text processing service.

<properties> <jdk.version>1.8</jdk.version> <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties>

JUnit Programming Cookbook. JUnit Programming Cookbook

Package Management and Build Tools

Documentation for Import Station

MAVEN SUCKS NO(W) REALLY

Exercise for OAuth2 security. Andreas Falk

Appium mobile test automation

Apache Isis Maven plugin

Maven POM project modelversion groupid artifactid packaging version name

STQA Mini Project No. 1

Gant as Ant and Maven Replacement

MAVEN MOCK TEST MAVEN MOCK TEST I

ITEXT. [Document subtitle]

Spring Data JPA, QueryDSL 실습 JPAQueryFactory 이용

Smart Car Parking. Accelerator DDM & LWM2M Setup

Creating Custom Builder Components

Example ear-testing can be browsed at

JAVA V Tools in JDK Java, winter semester ,2017 1

Installing and Using Acrolinx for SonarQube

Red Hat Fuse 7.1 Deploying into Spring Boot

JPA Tools Guide (v5.0)

Giovanni Stilo, Ph.D. 140 Chars to Fly. Twitter API 1.1 and Twitter4J introduction

... Maven.... The Apache Maven Project

Create and Run Traditional Integration Tests

Checking Out and Building Felix with NetBeans

Red Hat Fuse 7.0 Deploying into Spring Boot

Apache Maven: Best Practices

maven Build System Making Projects Make Sense

Selenium Java Framework

Software Engineering 2 A practical course in software engineering. Ekkart Kindler

AUTOMATION TESTING FRAMEWORK FOR LUMINOUS LMS

Software Building (Sestavování aplikací)

JavaSE: First Simple Module Exercise

02/03/15. Compile, execute, debugging THE ECLIPSE PLATFORM. Blanks'distribu.on' Ques+ons'with'no'answer' 10" 9" 8" No."of"students"vs."no.

Xmlbeans-maven-plugin Xml Error Loading Schem

Unable To The Artifact From Any Repository Maven-clean-plugin

Application prerequisites

1. The Apache Derby database

HornetQ REST Interface 2.2.2

Spring 2.0 Kickstart. Thomas Risberg Matt Raible

juddi Developer Guide

Basic EJB Development Exercise

Migrating to Java 9 Modules. Paul Bakker

Software Engineering - Development Infrastructure 2. Kristjan Talvar Nortal

JDO Tools Guide (v5.1)

Red Hat Fuse 7.0 Deploying into Apache Karaf

DevOps and Maven. Eamonn de Leastar Dr. Siobhán Drohan Produced by:

Red Hat JBoss Fuse 6.0

This tutorial will take you through simple and practical approaches while learning JDBC framework provided by Spring.

HP Operations Orchestration

HP Operations Orchestration

Action Developers Guide

Apache Geronimo 2.1 Quick Reference

TOP REASONS WHY YOU SHOULD SWITCH TO MAVEN 3

Apache Maven MarsJUG. Arnaud Héritier exo platform Software Factory Manager

Continuous Integration INRIA

Chapter 1: First steps with JAX-WS Web Services

Hello Maven. TestNG, Eclipse, IntelliJ IDEA. Óbuda University, Java Enterprise Edition John von Neumann Faculty of Informatics Lab 2.

Implementing Real-Time Analysis with Hadoop in Azure HDInsight

Groovy. Extending Java with scripting capabilities. Last updated: 10 July 2017

The Maven 2 POM demystified

Red Hat JBoss Fuse 6.1

Red Hat JBoss Fuse 6.3

MAVEN MOCK TEST MAVEN MOCK TEST IV

POOSL IDE Installation Manual

Unit Testing. CS 240 Advanced Programming Concepts

Apache Maven. Péter Jeszenszky Faculty of Informatics, University of Debrecen Last modified: March 8, 2018

Jaxb2 Maven Plugin Could Not Process Schema

Class Dependency Analyzer CDA Developer Guide

Executable business processes in BPMN 2.0 IN ACTION. Tijs Rademakers. FOREWORDS BY Tom Baeyens. AND Joram Barrez SAMPLE CHAPTER MANNING

Sonatype CLM Enforcement Points - Nexus. Sonatype CLM Enforcement Points - Nexus

JAVA V Annotations Java, winter semester ,2016 1

Installing the Amzi Prolog Plugin

The Mobile IDE provides Eclipse-based Perspectives, a menu, the mobile source code wizard, the mobile website template wizard, and others.

How to implement an OSLC Provider with OSLC4J

This tutorial will take you through simple and practical approaches while learning AOP framework provided by Spring.

A Journey in So,ware Development An overview of methods and tools (part 2)

Beware: Testing RCP Applications in Tycho can cause Serious Harm to your Brain. OSGi p2

Transcription:

In this tutorial, we describe steps for setting up a Maven project that uses libsbolj in Eclipse. Another tutorial follows this one which explains how we use SBOL 2.0 to represent the function of a state-of-the-art design, namely a CRISPR-based repression module Kiani et al. [1] using the Java library. Set up Maven plugins in Eclipse In this section, we describe steps for installing Maven plugins in Eclipse. The Eclipse version used is Luna Service Release 2 (4.4.2). One thing to mention before we start the tutorial is users do need to take note while attempting this tutorial that if any plugins are already installed, then Eclipse won t allow re-installation of that plug-in and any relating steps described within the tutorial can be skipped. Here are the steps: 1. Versions of Eclipse later than Luna has Maven installed already, therefore users can skip steps to the install Maven plugin and continue to Creating a new project section. 2. In Eclipse, go to Help and select Install New Software, 3. Add a new software site: Name = slf4j, URL = http://www.fuin.org/p2-repository/, 4. Select this site to work with, expand Maven osgi-bundles, and select slf4j.api, 5. Click Next and follow the installation process, 6. Add a new software site: Name = Maven Plugins, URL = http://download.eclipse.org/technology/ m2e/releases, 7. Select this site to work with, expand Maven Integration for Eclipse, and select m2e - Maven Integration for Eclipse, and 8. Click Next and follow the installation process. Creating a new project After the Maven plugin is installed, we are now ready to create a new Maven project in Eclipse. The following text describe the necessary steps. In the package explorer window, right click and select New Other. 1

Under the Maven folder, choose Maven Project, and then follow the default options for the project setup. In the window for specifying archetype parameters, you may type your group ID and artifact ID. In this tutorial, 2

they are specified as shown below. Once the project setup is finished, you should be able to see two Java source folders, a JRE System Library and a Maven Dependencies library, and a pom.xml file. It is possible that the JRE System Library created by Maven is not compatible with the installed JREs. In the screenshot shown below, it is set to J2SE-1.5, but the Maven compiler is compatible with JavaSE-1.7 instead. To change it, right-click on JRE System Library, and select Build Path Configure Build Path. 3

In the popup properties window, select Edit under Libraries. We can now change the execution environment to JavaSE-1.7 as shown below. 4

This solution, however, is temporary. If we right-click on the crispr project and then select Maven Update Project, the JRE will reset itself back to J2SE-1.5. A permanent fix would be to manually add the plugin management information below to the pom.xml file. 5

1 <build> 2 <pluginmanagement> 3 <plugins> 4 <plugin> 5 <groupid>org.apache.maven.plugins</groupid> 6 <artifactid>maven-compiler-plugin</artifactid> 7 <version>3.1</version> 8 <configuration> 9 <source>1.7</source> 10 <target>1.7</target> 11 </configuration> 12 </plugin> 13 </plugins> 14 </pluginmanagement> 15 </build> The pom.xml should look like the one shown below after this modification. Remember to save the file and then do Maven Update Project. 1 <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschemainstance" 2 xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0. xsd"> 3 <modelversion>4.0.0</modelversion> 4 5 <groupid>mysbolexamples</groupid> 6 <artifactid>crispr</artifactid> 7 <version>0.0.1-snapshot</version> 8 <packaging>jar</packaging> 9 10 <name>crispr</name> 11 <url>http://maven.apache.org</url> 12 13 <properties> 14 <project.build.sourceencoding>utf-8</project.build.sourceencoding> 15 </properties> 16 17 <dependencies> 18 <dependency> 19 <groupid>junit</groupid> 20 <artifactid>junit</artifactid> 21 <version>3.8.1</version> 22 <scope>test</scope> 23 </dependency> 24 </dependencies> 25 26 <build> 27 <pluginmanagement> 28 <plugins> 29 <plugin> 30 <groupid>org.apache.maven.plugins</groupid> 31 <artifactid>maven-compiler-plugin</artifactid> 32 <version>3.1</version> 33 <configuration> 34 <source>1.7</source> 35 <target>1.7</target> 36 </configuration> 37 </plugin> 38 </plugins> 39 </pluginmanagement> 40 </build> 41 </project> 6

Adding libsbolj as dependency We are now ready to add libsbolj as a Maven dependency. This can be easily done by right-clicking on the crispr project and then select Maven Add Dependency. In the popup window shown below, fill in the information for the libsbolj library. The group ID is org.sbolstandard, and the artifact ID is libsbolj and the version is 2.1.0. After this dependency is added, Maven automatically brings in the libsbolj-2.1.0.jar and its dependencies from the Maven Central Repository, and places them under the Maven Dependencies directory. 7

References [1] S. Kiani, J. Beal, M. Ebrahimkhani, J. Huh, R. Hall, Z. Xie, Y. Li, and R. Weiss, Crispr transcriptional repression devices and layered circuits in mammalian cells, Nature Methods, vol. 11, no. 7, pp. 723 726, 2014. 8