Do you have at least one .java file to compile ? 

-----Original Message-----
From: Christopher Cobb [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 04, 2006 1:49 PM
To: 'Maven Users List'
Subject: RE: [m2] mvn site : not working?

I have a tiny script that does this:

    mkdir -p \
        src/site/ \
        src/site/apt/ \
        src/site/xdoc/ \
        src/site/fml/ \
        src/site/resources/css/ \
        src/site/resources/images/

Maybe you need these site directories in your source tree.


> -----Original Message-----
> From: Valerio Schiavoni [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 04, 2006 1:14 PM
> To: Maven Users List
> Subject: [m2] mvn site : not working?
> 
> 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


-----------------------------------------
Attention:
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity. The information
contained in this message and or attachments is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material.  If you received this in error, please
contact the sender and delete the material from any system and destroy
any copies.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to