TechnoBuzz

A Techno Blog, mainly about Java

Maven 2

Download

Getting started

M2_REPO variable: /usr/local/.m2/repository/"

Setup Plugin :

Set up a variable where your executable for maven is
– select Window > Preferences. Select the Run/Debug > String Substitution. Add a new variable
     maven_exec set to /usr/local/maven-2.0.4/bin/mvn
– create a new external tool : Run-> Extrenal Tools -> New
    Location: ${maven_exec}
    Working Directory: directory you are working out of
    Arguments (i.e package)

Eclipse Plugin

Book

Article

Blog

mvn -help

mvn eclipse:eclipse

mvn package

mvn -P dev clean install

<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">
   
    <modelVersion>4.0.0</modelVersion>
    <groupId>project.company.y.z</groupId>
    <artifactId>appName1</artifactId>
    <packaging>jar</packaging>
    <name>MyJar</name>
    <description>MyJar Description</description>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.8</version>
        </dependency>
    </dependencies> 
</project>

groupId - organization that created the project
artifactId - the unique basename for the artifact being generated for this project
packaging - package type used by this artifact
Advertisements

April 21, 2006 - Posted by | SW Tools

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: