PageRenderTime 27ms CodeModel.GetById 21ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/scalate-website/src/documentation/war-overlay.page

http://github.com/scalate/scalate
Visualforce Page | 38 lines | 29 code | 9 blank | 0 comment | 0 complexity | 7a941f0370c7918a870a95774e52662c MD5 | raw file
 1---
 2title: WAR Overlay
 3in_menu: false
 4sort_info: 2
 5--- name:overview
 6# WAR Overlay
 7
 8Adding Scalate console to your web application
 9
10--- name:content pipeline:jade
11
12.left
13  :markdown
14    # Overview
15    
16.right
17  :markdown
18    
19    The Scalate War Overlay is a [feature](http://maven.apache.org/plugins/maven-war-plugin/overlays.html) of the [maven war plugin](http://maven.apache.org/plugins/maven-war-plugin/) which allows you to depend on a WAR in your maven dependencies.
20
21    The war plugin then copies all the contents of the war overlay into your web application. This saves you copy and pasting various shared resources and templates across web applications.
22
23    For example to use the Scalate WAR overlay in any maven web application just add this section to your pom.xml
24
25    {pygmentize:: xml}
26    <dependencies>
27      ...
28      <dependency>
29        <groupId>org.fusesource.scalate</groupId>
30        <artifactId>scalate-war_${scala_compat_tag}</artifactId>
31        <version>${project_version}</version>
32        <type>war</type>
33      </dependency>
34      ...
35    </dependencies>
36    {pygmentize}
37
38    Note that if you are already using one of the [scalate archetypes](getting-started.html) you don't have to worry about this; your archetype is already setup correctly for you.