How to deploy generated maven site to Tomcat server?

View: New views
5 Messages — Rating Filter:   Alert me  

How to deploy generated maven site to Tomcat server?

by Sench :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How can I configure the settings.xml to deploy maven project generated site to Tomcat Server?
And what I must write in my project's pom.xml?

Thanks,
Arsen

Re: How to deploy generated maven site to Tomcat server?

by Jochen Wiedmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, May 12, 2008 at 3:09 PM, Sench <sench4@...> wrote:
>
>  How can I configure the settings.xml to deploy maven project generated site
>  to Tomcat Server?
>  And what I must write in my project's pom.xml?

I am simply configuring the project as packaging "war". The only
configuration option that I have is "webappDirectory": Otherwise, the
location of the generated webapp directory would depend on the version
number and change over time.

In Tomcat, I have a file conf/Catalina/localhost/webappname.xml, which
looks roughly like this:

    <Context path="/webappname" reloadable="true" docBase="<webappdirectory>"/>

This advices Tomcat to serve a context /webappname from the webapp
directory below target.


Jochen


--
Look, that's why there's rules, understand? So that you think before
you break 'em.

 -- (Terry Pratchett, Thief of Time)

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


Re: How to deploy generated maven site to Tomcat server?

by Sench :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your reply Jochen,

>I am simply configuring the project as packaging "war". The only
>configuration option that I have is "webappDirectory": Otherwise, the
>location of the generated webapp directory would depend on the version
>number and change over time.

>In Tomcat, I have a file conf/Catalina/localhost/webappname.xml, which
>looks roughly like this:

>    <Context path="/webappname" reloadable="true" docBase="<webappdirectory>"/>

>This advices Tomcat to serve a context /webappname from the webapp
>directory below target.

I'm not about to create project's war and deploy it to tomcat server :)

I simply mean to execute maven site plugin and after creating project's site deploy it to running tomcat server.

thanks,
Arsen

Re: How to deploy generated maven site to Tomcat server?

by Jochen Wiedmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, May 15, 2008 at 1:03 PM, Sench <sench4@...> wrote:

> I'm not about to create project's war and deploy it to tomcat server :)
>
> I simply mean to execute maven site plugin and after creating project's site
> deploy it to running tomcat server.

Sorry for the misunderstandment.

I have a special profile "release", in which the following snippet is
activated. It adds the site to a "docs" folder of the web application.
The snippet isn't activated by default, because generating the site is
slow.

Jochen


          <plugin>
            <artifactId>maven-site-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>site</goal>
                </goals>
                <phase>test</phase>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <configuration>
              <webResources>
                <resource>
                  <directory>${project.build.directory}/site</directory>
                  <targetPath>docs</targetPath>
                </resource>
              </webResources>
            </configuration>
          </plugin>



--
Look, that's why there's rules, understand? So that you think before
you break 'em.

 -- (Terry Pratchett, Thief of Time)

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


Re: How to deploy generated maven site to Tomcat server?

by Sench :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks for your reply
>I have a special profile "release", in which the following snippet is
>activated. It adds the site to a "docs" folder of the web application.
>The snippet isn't activated by default, because generating the site is
>slow.

But what if I haven't web application. I only have a simple project from which I want to generate
his web site(not in test phase but only executing site:site and it creates my projects web site success) and deploy it to tomcat( We haven't SCP protocol enabled server yet. )

Can we enable scp protocol for tomcat? OR
Is there any plugin to make generated site as war and deploy it to tomcat?
Thanks,
Arsen