auf.kante
Gunnar macht sich selbststaendig und fliegt auf
die Schnauze
wird erfolgreich. Wer mag darf zuschauen.
Gunnar is starting his business. He will certainly
fail succeed. You may watch.
auf.kante
Website sections
Home
Maven
Last changed: 2005-09-23 [21:46]
Content:

Information on Maven, a java build tool
 
Back to Personal Wiki
Table of contents
Usage
Project definition
Running junit tests

Usage

usage: maven [options] [goal [goal2 [goal3] ...]]

Options:
 -D,--define arg         Define a system property
 -N,--non-recursive      Do not recurse into sub-projects
 -U,--update-snapshots   Update all snapshots regardless of repository policies
 -X,--debug              Produce execution debug output
 -e,--errors             Produce execution error messages
 -h,--help               Display help information
 -o,--offline            Work offline
 -r,--reactor            Execute goals for project found in the reactor
 -v,--version            Display version information

Project definition

A minimal project definition that only declares that junit is require to run the tests.

<model>
  <modelVersion>4.0.0</modelVersion>
  <groupId>de.pardus</groupId>
  <artifactId>geni</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>Maven Quick Start</name>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</model>

Running junit tests

m2 --offline test
Back to Personal Wiki
Creative Commons-Lizenzvertrag
The content of this site is licensed under a Creative Commons 2.5 License [attribution, share-alike]