/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
- ---
- title: WAR Overlay
- in_menu: false
- sort_info: 2
- --- name:overview
- # WAR Overlay
- Adding Scalate console to your web application
- --- name:content pipeline:jade
- .left
- :markdown
- # Overview
-
- .right
- :markdown
-
- 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.
- 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.
- For example to use the Scalate WAR overlay in any maven web application just add this section to your pom.xml
- {pygmentize:: xml}
- <dependencies>
- ...
- <dependency>
- <groupId>org.fusesource.scalate</groupId>
- <artifactId>scalate-war_${scala_compat_tag}</artifactId>
- <version>${project_version}</version>
- <type>war</type>
- </dependency>
- ...
- </dependencies>
- {pygmentize}
- 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.