Presentation is loading. Please wait.

Presentation is loading. Please wait.

MAVEN Abhishek Dey Das |Sudhanshu Iyer abhis.ws|siyer.info.

Similar presentations


Presentation on theme: "MAVEN Abhishek Dey Das |Sudhanshu Iyer abhis.ws|siyer.info."— Presentation transcript:

1 MAVEN Abhishek Dey Das |Sudhanshu Iyer abhis.ws|siyer.info

2 An example… The logger used in the Acme Project has been updated. The logger now supports severity levels. It is required that the programs you wrote use this updated dependency. How will you accommodate for this ? Try to think if your program had not one but 100 dependencies (such a scenario is very common)

3 pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 ws.abhis.utdwrkshp rudimentary-logger jar 4.0-SNAPSHOT rudimentary-logger http://abhis.ws:8080/nexus junit 3.8.1 test org.apache.maven.plugins maven-compiler-plugin 2.3.2 1.6

4 pom.xml abhisws-repository Abhisws Repository http://abhis.ws:8080/nexus/content/repositories/utd_workshop/

5 Setting up Eclipse with Maven & Creating a new project using Maven Modify settings.xml to use the workshop Maven repository settings.xml can be found at home/utd/.m2 Install the maven eclipse plugin Create a new project using: mvn archetype:generate -DgroupId={project-packaging} - DartifactId={project-name} -DarchetypeArtifactId=maven-archetype- quickstart -DinteractiveMode=false Import the project into eclipse Tell eclipse that it’s a maven project mvn eclipse:eclipse

6 Project 5 Use the updated logger in Acme Corp. Project The updated logger can be found at: http://abhis.ws:8080/nexus Use version 4.0-Snapshot

7 Helpful List of Commands mvn clean – Cleans the workspace mvn test – Runs JUnit Tests mvn compile – Complies the Project mvn compile-test – Runs tests and based on results complies the Project mvn deploy – Deploy artifacts to the maven repository

8 That’s it! Questions ? Thank You


Download ppt "MAVEN Abhishek Dey Das |Sudhanshu Iyer abhis.ws|siyer.info."

Similar presentations


Ads by Google