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

4 pom.xml abhisws-repository Abhisws Repository

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: 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