You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Maruf Aytekin <ma...@aspone.co.uk> on 2005/11/11 10:08:54 UTC

how to create a site in maven 2

Hello All,
I am pretty new to maven just trying it for my company. I hve a problem
with creating site. I know that it'd be something so simple. Apologies
for taking your time. My problem is following;

I first created a maven project amqxtras with the following command
C:\TestMaven> mvn archetype:create -DgroupId=com.idds.amqxtras
-DartifactId=amqxtras
This created a maven project under amqxtras directory.

When I ran the following to generate site documentation
C:\TestMaven>mvn archetype:create -DgroupId=com.idds.amqxtras
-DartifactId=amqxtras -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-site 

I got the following error that amqxtras already exist. What do I do
wrong?


---
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
-
---
[INFO] amqxtras already exists - please run from a clean directory
[INFO]
------------------------------------------------------------------------
-
---
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Total time: 1 second
[INFO] Finished at: Fri Nov 11 10:52:47 EET 2005
[INFO] Final Memory: 3M/7M
[INFO]
------------------------------------------------------------------------
-

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: how to create a site in maven 2

Posted by Brett Porter <br...@gmail.com>.
The second one is designed to run from within the original directory, I think.

On 11/11/05, Maruf Aytekin <ma...@aspone.co.uk> wrote:
> Hello All,
> I am pretty new to maven just trying it for my company. I hve a problem
> with creating site. I know that it'd be something so simple. Apologies
> for taking your time. My problem is following;
>
> I first created a maven project amqxtras with the following command
> C:\TestMaven> mvn archetype:create -DgroupId=com.idds.amqxtras
> -DartifactId=amqxtras
> This created a maven project under amqxtras directory.
>
> When I ran the following to generate site documentation
> C:\TestMaven>mvn archetype:create -DgroupId=com.idds.amqxtras
> -DartifactId=amqxtras -DarchetypeGroupId=org.apache.maven.archetypes
> -DarchetypeArtifactId=maven-archetype-site
>
> I got the following error that amqxtras already exist. What do I do
> wrong?
>
>
> ---
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] amqxtras already exists - please run from a clean directory
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri Nov 11 10:52:47 EET 2005
> [INFO] Final Memory: 3M/7M
> [INFO]
> ------------------------------------------------------------------------
> -
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: how to create a site in maven 2

Posted by Paul Spencer <pa...@mindspring.com>.
1) cd to the project directory.  It will contain the file pom.xml.

2) execute the following command to generate the site.
    mvn site

3) The site will be created in the target directory
     target/docs/index.html
Paul Spencer


Maruf Aytekin wrote:
> Hello All,
> I am pretty new to maven just trying it for my company. I hve a problem
> with creating site. I know that it'd be something so simple. Apologies
> for taking your time. My problem is following;
> 
> I first created a maven project amqxtras with the following command
> C:\TestMaven> mvn archetype:create -DgroupId=com.idds.amqxtras
> -DartifactId=amqxtras
> This created a maven project under amqxtras directory.
> 
> When I ran the following to generate site documentation
> C:\TestMaven>mvn archetype:create -DgroupId=com.idds.amqxtras
> -DartifactId=amqxtras -DarchetypeGroupId=org.apache.maven.archetypes
> -DarchetypeArtifactId=maven-archetype-site 
> 
> I got the following error that amqxtras already exist. What do I do
> wrong?
> 
> 
> ---
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] amqxtras already exists - please run from a clean directory
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri Nov 11 10:52:47 EET 2005
> [INFO] Final Memory: 3M/7M
> [INFO]
> ------------------------------------------------------------------------
> -
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: how to create a site in maven 2

Posted by David Sag <ds...@epo.org>.
On a related topic,

We plan on using Continuum to do our regular builds and as part of that I 
want it to generate the project site on each build.  Now, as far as I can 
see, none of the standard lifecycle phases include site generation.

How are other people generating their project sites using maven 2 and 
continuum?

Kind regards,
Dave Sag 




 

Paul Spencer <pa...@apache.org> wrote on 11-11-2005 10:22:12:

> 1) cd to the project directory.  It will contain the file pom.xml.
> 
> 2) execute the following command to generate the site.
>     mvn site
> 
> 3) The site will be created in the target directory
>      target/docs/index.html
> Paul Spencer
> 
> 
> Maruf Aytekin wrote:
> > Hello All,
> > I am pretty new to maven just trying it for my company. I hve a 
problem
> > with creating site. I know that it'd be something so simple. Apologies
> > for taking your time. My problem is following;
> > 
> > I first created a maven project amqxtras with the following command
> > C:\TestMaven> mvn archetype:create -DgroupId=com.idds.amqxtras
> > -DartifactId=amqxtras
> > This created a maven project under amqxtras directory.
> > 
> > When I ran the following to generate site documentation
> > C:\TestMaven>mvn archetype:create -DgroupId=com.idds.amqxtras
> > -DartifactId=amqxtras -DarchetypeGroupId=org.apache.maven.archetypes
> > -DarchetypeArtifactId=maven-archetype-site 
> > 
> > I got the following error that amqxtras already exist. What do I do
> > wrong?
> > 
> > 
> > ---
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
------------------------------------------------------------------------
> > -
> > ---
> > [INFO] amqxtras already exists - please run from a clean directory
> > [INFO]
> > 
------------------------------------------------------------------------
> > -
> > ---
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > 
------------------------------------------------------------------------
> > -
> > ---
> > [INFO] Total time: 1 second
> > [INFO] Finished at: Fri Nov 11 10:52:47 EET 2005
> > [INFO] Final Memory: 3M/7M
> > [INFO]
> > 
------------------------------------------------------------------------
> > -
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

Re: how to create a site in maven 2

Posted by Paul Spencer <pa...@apache.org>.
1) cd to the project directory.  It will contain the file pom.xml.

2) execute the following command to generate the site.
    mvn site

3) The site will be created in the target directory
     target/docs/index.html
Paul Spencer


Maruf Aytekin wrote:
> Hello All,
> I am pretty new to maven just trying it for my company. I hve a problem
> with creating site. I know that it'd be something so simple. Apologies
> for taking your time. My problem is following;
> 
> I first created a maven project amqxtras with the following command
> C:\TestMaven> mvn archetype:create -DgroupId=com.idds.amqxtras
> -DartifactId=amqxtras
> This created a maven project under amqxtras directory.
> 
> When I ran the following to generate site documentation
> C:\TestMaven>mvn archetype:create -DgroupId=com.idds.amqxtras
> -DartifactId=amqxtras -DarchetypeGroupId=org.apache.maven.archetypes
> -DarchetypeArtifactId=maven-archetype-site 
> 
> I got the following error that amqxtras already exist. What do I do
> wrong?
> 
> 
> ---
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] amqxtras already exists - please run from a clean directory
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> -
> ---
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri Nov 11 10:52:47 EET 2005
> [INFO] Final Memory: 3M/7M
> [INFO]
> ------------------------------------------------------------------------
> -
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: how to create a site in maven 2

Posted by Stephen Cowx <sc...@explosion-it.net>.
Hi

run C:\TestMaven\amqxtras>mvn site

from the c:\TestMaven\amqxtras directory

the  "archetype:create" goal and its arguments just create the basic project structure.

the "site" goal creates the website

good luck





Maruf Aytekin wrote:

>Hello All,
>I am pretty new to maven just trying it for my company. I hve a problem
>with creating site. I know that it'd be something so simple. Apologies
>for taking your time. My problem is following;
>
>I first created a maven project amqxtras with the following command
>C:\TestMaven> mvn archetype:create -DgroupId=com.idds.amqxtras
>-DartifactId=amqxtras
>This created a maven project under amqxtras directory.
>
>When I ran the following to generate site documentation
>C:\TestMaven>mvn archetype:create -DgroupId=com.idds.amqxtras
>-DartifactId=amqxtras -DarchetypeGroupId=org.apache.maven.archetypes
>-DarchetypeArtifactId=maven-archetype-site 
>
>I got the following error that amqxtras already exist. What do I do
>wrong?
>
>
>---
>[ERROR] BUILD ERROR
>[INFO]
>------------------------------------------------------------------------
>-
>---
>[INFO] amqxtras already exists - please run from a clean directory
>[INFO]
>------------------------------------------------------------------------
>-
>---
>[INFO] For more information, run Maven with the -e switch
>[INFO]
>------------------------------------------------------------------------
>-
>---
>[INFO] Total time: 1 second
>[INFO] Finished at: Fri Nov 11 10:52:47 EET 2005
>[INFO] Final Memory: 3M/7M
>[INFO]
>------------------------------------------------------------------------
>-
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org