June 2005
Beginner
224 pages
5h 40m
English
If you are frequently running the weather:run goal
from the command line, you may want to specify a default goal for your
Maven project. By specifying a default goal, you can run maven from the command line without any
arguments, and Maven will execute the weather:run goal.
To set the default goal for a project, simply list the goal name
in the default attribute of the
project element:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:j="jelly:core" xmlns:ant="jelly:ant"
xmlns:maven="jelly:maven" default="weather:run">
// ...snip...
</project>When you execute Maven without specifying a goal, Maven will
execute the weather:run goal. That
was easy enough!
Read now
Unlock full access