Sunday, March 11, 2012

Maven - Build and dependency management tool

Running single unit testhttp://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html
Providing test settingshttp://maven.apache.org/maven-1.x/plugins/test/properties.html

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 -
http://www.javaworld.com/javaworld/jw-12-2005/jw-1205-maven.html
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

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 - http://maven.apache.org/guides/introduction/introduction-to-archetypes.html
http://maven.apache.org/guides/introduction/introduction-to-archetypes.html

Maven life cycle - http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

Overriding a Project Object Model with profiles - http://www.sonatype.com/books/mvnref-book/reference/profiles-sect-maven-profiles.html

Maven Limitation - http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

Installing 3rd party jar in local repository - http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

Javaee maven dependency - http://www.mkyong.com/maven/how-to-download-j2ee-api-javaee-jar-from-maven/

Controlling the dependencies from being passed to dependent projects
http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

Looking at available jar and thier pom in maven repository
http://search.maven.org/

Installing jar to maven repository -http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

Making and using jar of code under test folder - http://maven.apache.org/guides/mini/guide-attached-tests.html

Other importent concenpts and usage

1 comment:

  1. Mr Benjamin went above and beyond their requirements to assist me with my loan which I used to expand my pharmacy business,They were friendly, professional, and absolute gems to work with.I will recommend  anyone looking for loan to contact. 247officedept@gmail.com.WhatsApp ... + 19893943740.








    ReplyDelete