Sunday, March 11, 2012

Maven - Build and dependency management tool

Running single unit test
Providing test settings

maven command with frequently used phases- mvn -U clean eclipse:eclipse install -DdownloadSources=true -DdownloadJavadocs=true -Dmaven.test.skip=true -Dwtpversion=2.0 dependency:copy-dependencies source:jar javadoc:jar

Maven project Structure -

Command to create maven project structure -
core java application - mvn archetype:generate -DgroupId={packaging.path} -DartifactId={project-id} -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Sample - mvn archetype:generate -DgroupId=XpathProject -DartifactId=XpathProject -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Other archetypes -

Maven life cycle -

Overriding a Project Object Model with profiles -

Maven Limitation -

Installing 3rd party jar in local repository -

Javaee maven dependency -

Controlling the dependencies from being passed to dependent projects

Looking at available jar and thier pom in maven repository

Installing jar to maven repository -

Making and using jar of code under test folder -

Other importent concenpts and usage

No comments:

Post a Comment