hello,
i followed the tutorial to start with maven2, and everything goes fine.
so, i'm using the archetype pom.xml, nothing special.
i mean this one:

<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>it.chitechnologies.jeffrey</groupId>
    <artifactId>jeffrey</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>Maven Quick Start Archetype</name>
    <url>http://maven.apache.org</url>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>

then, when If i try issue the command:

mvn site

as the tutorial suggest to create a web site for the project, i get:
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO]    task-segment: [site]
[INFO]
----------------------------------------------------------------------------
[ERROR] project-execute :
it.chitechnologies.jeffrey:jeffrey:jar:1.0-SNAPSHOT (  task-segment: [site]
)
Diagnosis: Invalid task 'site': you must specify a valid lifecycle phase, or
a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
FATAL ERROR: Error executing Maven for a project

what am I doing wrong ?

thanks,
valerio

--
To Iterate is Human, to Recurse, Divine
James O. Coplien, Bell Labs

Reply via email to