hi Chrostopher,
i launched the scripts, directories are created, but still nothing happen.
i'm reporting the stacktrace:
mvn -e site
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [site]
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-site-plugin' does not
exist or no valid version could be found
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
org.apache.maven.plugins:maven-site-plugin' does not exist or no valid
version could be found
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
DefaultLifecycleExecutor.java:1203)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
DefaultLifecycleExecutor.java:1436)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging
(DefaultLifecycleExecutor.java:975)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings
(DefaultLifecycleExecutor.java:941)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:450)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The plugin 'org.apache.maven.plugins:maven-site-plugin' does not exist or no
valid version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
(DefaultPluginVersionManager.java:225)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
(DefaultPluginVersionManager.java:87)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
DefaultPluginManager.java:177)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
DefaultLifecycleExecutor.java:1174)
... 18 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Jan 04 20:30:19 CET 2006
[INFO] Final Memory: 1M/2M
[INFO]
----------------------------------------------------------------------------
2006/1/4, Christopher Cobb <[EMAIL PROTECTED]>:
>
> 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 Iterate is Human, to Recurse, Divine
James O. Coplien, Bell Labs