You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Ted Husted <hu...@apache.org> on 2006/07/09 23:02:17 UTC

[maven] Adding Google Search

A while back, we had a discussion about adding a Google Site Search
feature to the website, since several other ASF projects are doing
this, such as Ant, BeeHive, and Cocoon, among others.

So, does anyone know how to add to a Maven 2 layout a custom form?

To get started, I tried following the hints given here:

How to Change the Site Template
* http://maven.apache.org/plugins/maven-site-plugin/howto.html

After finding the template in the bottom of a locked filing cabinet
stuck in a disused lavatory with a sign on the door saying 'Beware of
the Leopard.' (thanks Nabble!), I tried putting a copy in my
"/current/site" folder, next to the POM, added the suggested stanza.

  <reporting>
    <plugins>
      <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-site-plugin</artifactId>
       <configuration>
         <templateDirectory>${basedir}</templateDirectory>
         <template>site.vm</template>
       </configuration>
      </plugin>
    </plugins>
  </reporting>

It found my template, but the banner and sidebar weren't included
(?because the new stanza overrode the default report stanza?).

Is there a simpler way, or do we have to go whole-hog and setup a JAR
for a skin?

I added a Google site search form to the bottom of the welcome page,
as a concept test.

* http://struts.apache.org/

-Ted.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org