PageRenderTime 27ms CodeModel.GetById 13ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/pom.xml

http://github.com/scalate/scalate
XML | 951 lines | 743 code | 83 blank | 125 comment | 0 complexity | e0552a7853fee809484312ad7becf707 MD5 | raw file
  1<?xml version="1.0" encoding="UTF-8"?>
  2<!--
  3
  4    Copyright (C) 2009-2011 the original author or authors.
  5    See the notice.md file distributed with this work for additional
  6    information regarding copyright ownership.
  7
  8    Licensed under the Apache License, Version 2.0 (the "License");
  9    you may not use this file except in compliance with the License.
 10    You may obtain a copy of the License at
 11
 12        http://www.apache.org/licenses/LICENSE-2.0
 13
 14    Unless required by applicable law or agreed to in writing, software
 15    distributed under the License is distributed on an "AS IS" BASIS,
 16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 17    See the License for the specific language governing permissions and
 18    limitations under the License.
 19
 20-->
 21<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 22
 23  <modelVersion>4.0.0</modelVersion>
 24
 25  <parent>
 26    <groupId>org.fusesource</groupId>
 27    <artifactId>fusesource-pom</artifactId>
 28    <version>1.9</version>
 29  </parent>
 30
 31  <groupId>org.scalatra.scalate</groupId>
 32  <artifactId>scalate-project_2.10</artifactId>
 33  <version>1.7.2-SNAPSHOT</version>
 34  <packaging>pom</packaging>
 35
 36  <name>${project.artifactId}</name>
 37  <description>Scalate Project POM</description>
 38
 39  <prerequisites>
 40    <maven>2.0.9</maven>
 41  </prerequisites>
 42
 43  <properties>
 44    <!-- build settings -->
 45    <forge-project-id>scalate</forge-project-id>
 46    <forge-project-id-uc>SCALATE</forge-project-id-uc>
 47    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 48    <release-altGitURL>scm:git:ssh://git@github.com:scalate/scalate.git</release-altGitURL>
 49
 50    <compiler.fork>false</compiler.fork>
 51
 52    <!-- environment settings -->
 53    <jetty-port>8080</jetty-port>
 54    <scalate.editor>${env.SCALATE_EDITOR}</scalate.editor>
 55    <scalate.mode>development</scalate.mode>
 56    <scalate.workdir>${basedir}/target/_scalate</scalate.workdir>
 57    <test.useFile>false</test.useFile>
 58
 59    <!-- version info -->
 60    <asm-version>3.1</asm-version>
 61    <jansi-version>1.6</jansi-version>
 62    <jersey-version>1.9</jersey-version>
 63    <jetty-version>7.2.1.v20101111</jetty-version>
 64    <jline-version>0.9.95.20100209</jline-version>
 65    <junit-version>4.5</junit-version>
 66    <karaf-version>2.2.0-fuse-00-43</karaf-version>
 67    <logback-version>0.9.26</logback-version>
 68    <markdownj-version>0.3.0-1.0.2b4</markdownj-version>
 69    <org.springframework.version>3.0.6.RELEASE</org.springframework.version>
 70
 71    <osgi-version>4.2.0</osgi-version>
 72
 73    <scala-version>2.10.4</scala-version>
 74    <scala-version-suffix>2.10</scala-version-suffix>
 75
 76    <scalatest-artifact>scalatest_${scala-version-suffix}</scalatest-artifact>
 77    <scalatest-version>2.1.3</scalatest-version>
 78
 79    <sbt-version>0.7.3</sbt-version>
 80    <scalamd.groupId>org.scalatra.scalate</scalamd.groupId>
 81    <scalamd-version>1.6.1</scalamd-version>
 82    <servlet-api-version>2.5</servlet-api-version>
 83    <slf4j-version>1.6.1</slf4j-version>
 84    <wikitext-version>1.4</wikitext-version>
 85
 86
 87    <!-- plugin version info -->
 88    <bundle-plugin-version>2.3.4</bundle-plugin-version>
 89    <changes-plugin-version>2.3</changes-plugin-version>
 90    <eclipse-plugin-version>2.8</eclipse-plugin-version>
 91    <idea-plugin-version>2.3-20100704</idea-plugin-version>
 92
 93<!--
 94    Don't use latest Jetty plugin as it requires Servlet 3.0 I think...
 95
 96    <jetty-plugin-version>8.0.0.M2</jetty-plugin-version>
 97    <jetty-plugin-version>7.2.1.v20101111</jetty-plugin-version>
 98-->
 99    <surefire-plugin-version>2.6</surefire-plugin-version>
100    <jetty-plugin-version>7.2.1.v20101111</jetty-plugin-version>
101    <scala-plugin-version>3.1.0</scala-plugin-version>
102    <tomcat-plugin-version>1.1</tomcat-plugin-version>
103    <war-plugin-version>2.1.1</war-plugin-version>
104    <buildhelper-plugin-version>1.7</buildhelper-plugin-version>
105
106
107    <!-- osgi settings -->
108    <scalate.osgi.import>*</scalate.osgi.import>
109
110    <rhinocoffeescript-version>1.6.2</rhinocoffeescript-version>
111  </properties>
112
113  <url>http://scalate.github.io/scalate/</url>
114  <inceptionYear>2010</inceptionYear>
115
116  <licenses>
117    <license>
118      <name>The Apache Software License, Version 2.0</name>
119      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
120      <distribution>repo</distribution>
121    </license>
122  </licenses>
123
124  <mailingLists>
125    <mailingList>
126      <name>Scalate discussion list</name>
127      <archive>http://groups.google.com/group/scalate</archive>
128      <post>scalate@googlegroups.com</post>
129      <subscribe>scalate+subscribe@googlegroups.com</subscribe>
130      <unsubscribe>scalate+unsubscribe@googlegroups.com</unsubscribe>
131    </mailingList>
132    <mailingList>
133      <name>Commits and issue tracker list</name>
134      <archive>http://groups.google.com/group/scalate-commits</archive>
135      <post>scalate-commits@googlegroups.com</post>
136      <subscribe>scalate-commits+subscribe@googlegroups.com</subscribe>
137      <unsubscribe>scalate-commits+unsubscribe@googlegroups.com</unsubscribe>
138    </mailingList>
139  </mailingLists>
140
141  <scm>
142    <connection>scm:git:git://github.com/scalate/scalate.git</connection>
143    <developerConnection>scm:git:ssh://git@github.com:scalate/scalate.git</developerConnection>
144    <url>http://github.com/scalate/scalate/tree/master</url>
145  </scm>
146
147  <issueManagement>
148    <system>assembla</system>
149    <url>http://github.com/scalate/scalate/issues</url>
150  </issueManagement>
151
152  <distributionManagement>
153	  <snapshotRepository>
154		  <id>ossrh</id>
155		  <url>https://oss.sonatype.org/content/repositories/snapshots</url>
156	  </snapshotRepository>
157	  <repository>
158		  <id>ossrh</id>
159		  <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
160	  </repository>
161  </distributionManagement>
162
163  <developers>
164    <developer>
165      <id>chirino</id>
166      <name>Hiram Chirino</name>
167      <url>http://hiramchirino.com/blog/</url>
168      <organization>FuseSource</organization>
169      <organizationUrl>http://fusesource.com/</organizationUrl>
170    </developer>
171    <developer>
172      <id>jstrachan</id>
173      <name>James Strachan</name>
174      <url>http://macstrac.blogspot.com/</url>
175      <organization>FuseSource</organization>
176      <organizationUrl>http://fusesource.com/</organizationUrl>
177    </developer>
178    <developer>
179      <id>matthild</id>
180      <name>Matt Hildebrand</name>
181    </developer>
182    <developer>
183      <id>PaulSandoz</id>
184      <name>Paul Sandoz</name>
185      <url>http://blogs.sun.com/sandoz/</url>
186      <organization>Oracle</organization>
187      <organizationUrl>http://oracle.com/</organizationUrl>
188    </developer>
189    <developer>
190      <id>sptz45</id>
191      <name>Spiros Tzavellas</name>
192      <url>http://www.tzavellas.com</url>
193      <timezone>+2</timezone>
194    </developer>
195    <developer>
196      <id>rossabaker</id>
197      <name>Ross A. Baker</name>
198      <url>http://www.rossabaker.com/</url>
199      <organization>CrowdStrike</organization>
200      <organizationUrl>http://www.crowdstrike.com/</organizationUrl>
201    </developer>
202  </developers>
203
204  <modules>
205    <module>scalate-util</module>
206    <module>scalate-core</module>
207    <module>scalate-test</module>
208    <module>scalate-wikitext</module>
209    <module>scalate-page</module>
210    <module>scalate-web</module>
211    <module>scalate-spring-mvc</module>
212    <module>scalate-guice</module>
213    <module>scalate-jrebel</module>
214    <module>scalate-war</module>
215    <module>samples</module>
216    <module>maven-scalate-plugin</module>
217    <module>sbt-scalate-plugin</module>
218    <module>archetypes</module>
219    <module>scalate-tool</module>
220    <module>scalate-jsp-converter</module>
221    <module>scalate-markdownj</module>
222    <module>scalate-jruby</module>
223    <module>scalate-pegdown</module>
224    <module>scalate-less</module>
225  </modules>
226
227
228  <dependencyManagement>
229    <dependencies>
230      <dependency>
231        <groupId>javax.servlet</groupId>
232        <artifactId>servlet-api</artifactId>
233        <version>${servlet-api-version}</version>
234      </dependency>
235      <dependency>
236        <groupId>com.sun.jersey</groupId>
237        <artifactId>jersey-server</artifactId>
238        <version>${jersey-version}</version>
239      </dependency>
240
241      <dependency>
242        <groupId>org.seleniumhq.selenium</groupId>
243        <artifactId>selenium-htmlunit-driver</artifactId>
244        <version>2.0a5</version>
245      </dependency>
246
247      <dependency>
248        <groupId>org.markdownj</groupId>
249        <artifactId>markdownj</artifactId>
250        <version>${markdownj-version}</version>
251      </dependency>
252
253      <dependency>
254        <groupId>org.slf4j</groupId>
255        <artifactId>slf4j-api</artifactId>
256        <version>${slf4j-version}</version>
257      </dependency>
258
259      <dependency>
260        <groupId>org.osgi</groupId>
261        <artifactId>org.osgi.core</artifactId>
262        <version>${osgi-version}</version>
263        <scope>provided</scope>
264        <optional>true</optional>
265      </dependency>
266
267      <dependency>
268        <groupId>ch.qos.logback</groupId>
269        <artifactId>logback-classic</artifactId>
270        <version>${logback-version}</version>
271        <scope>runtime</scope>
272        <optional>true</optional>
273      </dependency>
274
275      <!-- testing -->
276      <!--
277            <dependency>
278              <groupId>org.scala-tools.testing</groupId>
279              <artifactId>specs_2.8.0.Beta1</artifactId>
280              <version>1.6.3</version>
281            </dependency>
282      -->
283      <dependency>
284        <groupId>org.scalatest</groupId>
285        <artifactId>${scalatest-artifact}</artifactId>
286        <version>${scalatest-version}</version>
287      </dependency>
288      <dependency>
289        <groupId>junit</groupId>
290        <artifactId>junit</artifactId>
291        <version>4.8.2</version>
292      </dependency>
293
294    </dependencies>
295  </dependencyManagement>
296
297  <build>
298    <defaultGoal>install</defaultGoal>
299<!--
300    <sourceDirectory>src/main/scala</sourceDirectory>
301    <testSourceDirectory>src/test/scala</testSourceDirectory>
302-->
303
304    <pluginManagement>
305      <plugins>
306        <plugin>
307          <groupId>net.alchim31.maven</groupId>
308          <artifactId>scala-maven-plugin</artifactId>
309          <version>${scala-plugin-version}</version>
310          <executions>
311            <execution>
312              <goals>
313                <goal>compile</goal>
314                <goal>testCompile</goal>
315              </goals>
316            </execution>
317            <execution>
318              <id>attach-javadocs</id>
319              <goals>
320                <goal>doc-jar</goal>
321              </goals>
322            </execution>
323          </executions>
324          <configuration>
325            <!-- lets disable vscaladoc -->
326            <scaladocClassName>scala.tools.nsc.ScalaDoc</scaladocClassName>
327            <!--
328                        <scalaJars>
329                          <scalaJar>
330                            <groupId>org.scala-lang</groupId>
331                            <artifactId>scala-compiler</artifactId>
332                            <version>${scala-version}</version>
333                          </scalaJar>
334                        </scalaJars>
335            -->
336            <jvmArgs>
337              <jvmArg>-Xmx1024m</jvmArg>
338            </jvmArgs>
339            <args>
340              <!-- arg>-unchecked</arg -->
341              <arg>-deprecation</arg>
342            </args>
343            <javacArgs>
344              <javacArg>-g</javacArg>
345              <javacArg>-target</javacArg>
346              <javacArg>1.6</javacArg>
347              <javacArg>-source</javacArg>
348              <javacArg>1.6</javacArg>
349            </javacArgs>
350            <scalaVersion>${scala-version}</scalaVersion>
351            <recompileMode>incremental</recompileMode>
352            <useZincServer>true</useZincServer>
353          </configuration>
354        </plugin>
355
356        <plugin>
357          <groupId>org.apache.maven.plugins</groupId>
358          <artifactId>maven-compiler-plugin</artifactId>
359          <configuration>
360            <source>1.5</source>
361            <target>1.5</target>
362            <optimize>true</optimize>
363            <debug>true</debug>
364          </configuration>
365        </plugin>
366
367        <plugin>
368          <groupId>org.apache.maven.plugins</groupId>
369          <artifactId>maven-jar-plugin</artifactId>
370          <configuration>
371            <archive>
372              <manifest>
373                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
374                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
375              </manifest>
376            </archive>
377          </configuration>
378        </plugin>
379
380        <plugin>
381          <groupId>org.apache.maven.plugins</groupId>
382          <artifactId>maven-source-plugin</artifactId>
383          <executions>
384            <execution>
385              <id>attach-sources</id>
386              <phase>verify</phase>
387              <goals>
388                <goal>jar-no-fork</goal>
389              </goals>
390            </execution>
391          </executions>
392        </plugin>
393
394        <plugin>
395          <artifactId>maven-war-plugin</artifactId>
396          <version>${war-plugin-version}</version>
397          <configuration>
398            <attachClasses>true</attachClasses>
399          </configuration>
400        </plugin>
401
402        <plugin>
403          <groupId>org.apache.maven.plugins</groupId>
404          <artifactId>maven-idea-plugin</artifactId>
405          <version>${idea-plugin-version}</version>
406          <configuration>
407            <downloadSources>true</downloadSources>
408            <downloadJavadocs>true</downloadJavadocs>
409          </configuration>
410        </plugin>
411
412        <plugin>
413          <groupId>org.apache.maven.plugins</groupId>
414          <artifactId>maven-eclipse-plugin</artifactId>
415          <version>${eclipse-plugin-version}</version>
416          <configuration>
417            <outputDirectory>${basedir}/eclipse-classes</outputDirectory>
418            <downloadSources>true</downloadSources>
419
420            <!-- Eclipse update site for the Checkstyle plugin is http://eclipse-cs.sourceforge.net/update -->
421            <!-- Eclipse update site for the PMD plugin is http://pmd.sf.net/eclipse -->
422            <buildcommands>
423              <java.lang.String>org.eclipse.jdt.core.javabuilder</java.lang.String>
424              <java.lang.String>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</java.lang.String>
425              <!-- Lets not enable the PMD buidler just yet..
426              <java.lang.String>net.sourceforge.pmd.runtime.pmdBuilder</java.lang.String>
427              -->
428            </buildcommands>
429            <projectnatures>
430              <nature>org.eclipse.jdt.core.javanature</nature>
431              <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature>
432              <!-- Lets not enable the PMD buidler just yet..
433              <nature>net.sourceforge.pmd.runtime.pmdNature</nature>
434              -->
435            </projectnatures>
436          </configuration>
437        </plugin>
438
439        <plugin>
440          <groupId>org.mortbay.jetty</groupId>
441          <artifactId>jetty-maven-plugin</artifactId>
442          <version>${jetty-plugin-version}</version>
443          <configuration>
444            <!--
445            <connectors>
446              <connector implementation="org.eclipse.jetty.nio.SelectChannelConnector">
447                <port>${jetty.port}</port>
448                <maxIdleTime>60000</maxIdleTime>
449              </connector>
450            </connectors>
451            -->
452
453            <webAppConfig>
454              <contextPath>/</contextPath>
455              <resourceBase>${basedir}/src/main/webapp</resourceBase>
456              <unpackOverlays>true</unpackOverlays>
457            </webAppConfig>
458
459            <systemProperties>
460              <!-- enable easy JMX connection to JConsole -->
461              <systemProperty>
462                <name>com.sun.management.jmxremote</name>
463                <value />
464              </systemProperty>
465              <systemProperty>
466                <name>scalate.editor</name>
467                <value>${scalate.editor}</value>
468              </systemProperty>
469              <systemProperty>
470                <name>scalate.workdir</name>
471                <value>${scalate.workdir}</value>
472              </systemProperty>
473              <systemProperty>
474                <name>scalate.mode</name>
475                <value>${scalate.mode}</value>
476              </systemProperty>
477            </systemProperties>
478            <scanIntervalSeconds>0</scanIntervalSeconds>
479          </configuration>
480        </plugin>
481
482        <plugin>
483          <groupId>org.codehaus.mojo</groupId>
484          <artifactId>tomcat-maven-plugin</artifactId>
485          <version>${tomcat-plugin-version}</version>
486          <configuration>
487            <path>/</path>
488
489            <systemProperties>
490              <!-- enable easy JMX connection to JConsole -->
491              <com.sun.management.jmxremote />
492
493              <!-- Scalate console configuration -->
494              <scalate.mode>${scalate.mode}</scalate.mode>
495              <scalate.editor>${scalateEditor}</scalate.editor>
496              <scalate.workdir>${scalate.workdir}</scalate.workdir>
497              <scalate.package.resources>${scalate.package.resources}</scalate.package.resources>
498            </systemProperties>
499          </configuration>
500        </plugin>
501
502      </plugins>
503    </pluginManagement>
504
505    <plugins>
506      <plugin>
507        <groupId>net.alchim31.maven</groupId>
508        <artifactId>scala-maven-plugin</artifactId>
509      </plugin>
510
511      <plugin>
512        <groupId>org.apache.felix</groupId>
513        <artifactId>maven-bundle-plugin</artifactId>
514        <version>${bundle-plugin-version}</version>
515        <extensions>true</extensions>
516        <inherited>true</inherited>
517        <configuration>
518          <instructions>
519            <Implementation-Title>${project.artifactId}</Implementation-Title>
520            <Implementation-Version>${project.version}</Implementation-Version>
521            <Bundle-Name>${project.artifactId}</Bundle-Name>
522            <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
523            <Export-Package>{local-packages};version=${project.version};-noimport:=true</Export-Package>
524            <Import-Package>${scalate.osgi.import}</Import-Package>
525            <Private-Package>!*</Private-Package>
526            <_versionpolicy-impl>[$(version;==;$(@)),$(version;=+;$(@)))</_versionpolicy-impl>
527            <_versionpolicy-uses>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy-uses>
528            <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
529            <_failok>false</_failok>
530          </instructions>
531        </configuration>
532      </plugin>
533        
534      <plugin>
535        <groupId>org.apache.maven.plugins</groupId>
536        <artifactId>maven-changes-plugin</artifactId>
537        <version>${changes-plugin-version}</version>
538        <configuration>
539          <filteringChanges>true</filteringChanges>
540        </configuration>
541      </plugin>
542
543      <plugin>
544        <groupId>org.apache.maven.plugins</groupId>
545        <artifactId>maven-site-plugin</artifactId>
546        <version>3.0</version>
547        <executions>
548         <execution>
549           <id>attach-descriptor</id>
550           <goals>
551             <goal>attach-descriptor</goal>
552           </goals>
553         </execution>
554       </executions>
555       <configuration>
556          <reportPlugins>
557            <plugin>
558              <groupId>org.apache.maven.plugins</groupId>
559              <artifactId>maven-project-info-reports-plugin</artifactId>
560              <version>2.4</version>
561              <configuration>
562                <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
563                <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
564              </configuration>
565              <!-- simpler configuration without reportSets available for usual cases -->
566              <reports>
567                <report>index</report>
568                <report>dependencies</report>
569                <report>issue-tracking</report>
570                <report>license</report>
571                <report>mailing-list</report>
572                <report>modules</report>
573                <report>project-team</report>
574                <report>plugin-management</report>
575                <report>plugins</report>
576                <report>scm</report>
577              </reports>
578            </plugin>
579            <plugin>
580              <groupId>net.alchim31.maven</groupId>
581              <artifactId>scala-maven-plugin</artifactId>
582              <configuration>
583                <scalaVersion>${scala-version}</scalaVersion>
584              </configuration>
585            </plugin>
586          </reportPlugins>
587        </configuration>
588      </plugin>
589
590      <plugin>
591        <groupId>org.apache.maven.plugins</groupId>
592        <artifactId>maven-surefire-plugin</artifactId>
593        <version>${surefire-plugin-version}</version>
594        <configuration>
595          <!-- we must turn off the use of system class loader so our tests can find stuff - otherwise scala compiler can't find stuff -->
596          <useSystemClassLoader>false</useSystemClassLoader>
597
598          <forkMode>once</forkMode>
599          <childDelegation>false</childDelegation>
600          <useFile>${test.useFile}</useFile>
601          <failIfNoTests>false</failIfNoTests>
602        </configuration>
603      </plugin>
604
605      <plugin>
606        <groupId>org.codehaus.mojo</groupId>
607        <artifactId>build-helper-maven-plugin</artifactId>
608        <version>${buildhelper-plugin-version}</version>
609        <executions>
610          <execution>
611            <phase>generate-sources</phase>
612            <goals>
613              <goal>add-source</goal>
614            </goals>
615            <configuration>
616              <sources>
617                <source>src/main/scala</source>
618              </sources>
619            </configuration>
620          </execution>
621        </executions>
622      </plugin>
623
624    </plugins>
625  </build>
626
627  <profiles>
628    <!-- enables extra repositories which may have some
629         goodies that have not reached central yet -->
630    <profile>
631      <id>download</id>
632      <repositories>
633        <repository>
634          <id>repo1.maven</id>
635          <name>Maven Central Repo</name>
636          <url>http://repo1.maven.org/maven2</url>
637        </repository>
638        <!-- A transitive dependency defines this repo in its pom, however, the repo
639           has moved and causes dependency resolutions for 'maven-scalate-plugin'. Here we
640           disable the repo as we prefer to use central anyway. -->
641        <repository>
642          <id>glassfish-repo-archive</id>
643          <name>Nexus repository collection for Glassfish</name>
644          <url>http://maven.glassfish.org/content/groups/glassfish</url>
645          <releases>
646            <enabled>false</enabled>
647          </releases>
648          <snapshots>
649            <enabled>false</enabled>
650          </snapshots>
651        </repository>
652
653        <repository>
654          <id>sonatype-oss-snapshots</id>
655          <name>Sonatype OSS Snapshots</name>
656          <url>http://oss.sonatype.org/content/repositories/snapshots</url>
657          <snapshots>
658            <enabled>true</enabled>
659            <checksumPolicy>fail</checksumPolicy>
660          </snapshots>
661          <releases>
662            <enabled>true</enabled>
663            <checksumPolicy>fail</checksumPolicy>
664          </releases>
665        </repository>
666        <!--
667                <repository>
668                  <id>nexus.snapshots.scala-tools.org</id>
669                  <name>Scala-Tools Maven2 Snapshot Repository</name>
670                  <url>http://nexus.scala-tools.org/content/repositories/snapshots</url>
671                  <snapshots>
672                    <enabled>true</enabled>
673                    <checksumPolicy>fail</checksumPolicy>
674                  </snapshots>
675                  <releases>
676                    <enabled>true</enabled>
677                    <checksumPolicy>fail</checksumPolicy>
678                  </releases>
679                </repository>
680        -->
681        <repository>
682          <id>apache.snapshots</id>
683          <name>Apache Development Snapshot Repository</name>
684          <url>https://repository.apache.org/content/repositories/snapshots</url>
685          <releases>
686            <enabled>false</enabled>
687          </releases>
688          <snapshots>
689            <enabled>true</enabled>
690          </snapshots>
691        </repository>
692
693        <repository>
694          <id>fluido-skin</id>
695          <url>http://fluido-skin.googlecode.com/svn/repo/</url>
696        </repository>
697
698      </repositories>
699
700      <pluginRepositories>
701        <pluginRepository>
702          <id>sonatype-oss-snapshots</id>
703          <name>Sonatype OSS Snapshots</name>
704          <url>http://oss.sonatype.org/content/repositories/snapshots</url>
705          <releases>
706            <enabled>true</enabled>
707          </releases>
708          <snapshots>
709            <enabled>false</enabled>
710          </snapshots>
711        </pluginRepository>
712
713        <!-- TODO remove ASAP! for now use the 2.1 staging release of the mvn release plugin until its released -->
714        <pluginRepository>
715          <id>staging.002.apache.org</id>
716          <url>https://repository.apache.org/content/repositories/maven-002</url>
717        </pluginRepository>
718
719        <pluginRepository>
720          <id>mc-releases</id>
721          <name>mc-releases</name>
722          <url>http://mc-repo.googlecode.com/svn/maven2/releases</url>
723          <snapshots>
724            <enabled>false</enabled>
725          </snapshots>
726          <releases>
727            <enabled>true</enabled>
728          </releases>
729        </pluginRepository>
730      </pluginRepositories>
731    </profile>
732
733    <!-- use a profile for generating the maven site since we require a snapshot version for 2.8.0 Scala -->
734    <profile>
735      <id>site</id>
736      <!--
737            <properties>
738              &lt;!&ndash; this snapshot release works with 2.8.0-beta1 &ndash;&gt;
739              <scala-plugin-version>2.13.2-SNAPSHOT</scala-plugin-version>
740            </properties>
741      <reporting>
742        <plugins>
743          <plugin>
744            <groupId>net.alchim31.maven</groupId>
745            <artifactId>scala-maven-plugin</artifactId>
746            <configuration>
747              <scalaVersion>${scala-version}</scalaVersion>
748            </configuration>
749          </plugin>
750        </plugins>
751      </reporting>
752    -->
753    </profile>
754
755    <!-- so we can create a distro on our CI box -->
756    <profile>
757      <id>distro</id>
758      <modules>
759        <module>scalate-website</module>
760        <module>scalate-distro</module>
761      </modules>
762
763      <build>
764        <plugins>
765          <plugin>
766            <groupId>org.apache.maven.plugins</groupId>
767            <artifactId>maven-source-plugin</artifactId>
768          </plugin>
769
770          <!-- Generate the Scala Docs so that they can be included in the javadoc artifact -->
771          <plugin>
772            <groupId>net.alchim31.maven</groupId>
773            <artifactId>scala-maven-plugin</artifactId>
774            <version>${scala-plugin-version}</version>
775            <executions>
776              <execution>
777                <id>doc</id>
778                <phase>process-classes</phase>
779                <goals>
780                  <goal>doc</goal>
781                </goals>
782                <configuration>
783                  <reportOutputDirectory>${project.build.directory}</reportOutputDirectory>
784                  <outputDirectory>apidocs</outputDirectory>
785                </configuration>
786              </execution>
787            </executions>
788          </plugin>
789        </plugins>
790      </build>
791    </profile>
792
793    <!-- requires pygmentize to be installed -->
794    <profile>
795      <id>pygmentize</id>
796      <modules>
797        <module>scalate-sample-sitegen</module>
798      </modules>
799    </profile>
800
801
802    <profile>
803      <id>release</id>
804      <modules>
805        <module>scalate-website</module>
806        <module>scalate-distro</module>
807      </modules>
808      <build>
809        <plugins>
810
811          <!-- Generate the Scala Docs so that they can be included in the javadoc artifact -->
812          <plugin>
813            <groupId>net.alchim31.maven</groupId>
814            <artifactId>scala-maven-plugin</artifactId>
815            <version>${scala-plugin-version}</version>
816            <executions>
817              <execution>
818                <id>doc</id>
819                <phase>process-classes</phase>
820                <goals>
821                  <goal>doc</goal>
822                </goals>
823                <configuration>
824                  <reportOutputDirectory>${project.build.directory}</reportOutputDirectory>
825                  <outputDirectory>apidocs</outputDirectory>
826                </configuration>
827              </execution>
828            </executions>
829            <configuration>
830              <args>
831                <arg>-optimise</arg>
832              </args>
833            </configuration>
834          </plugin>
835        </plugins>
836      </build>
837
838    </profile>
839
840    <!-- 
841      Do a license check by running       : mvn -P license license:check
842      Update the license check by running : mvn -P license license:format
843    -->
844    <profile>
845      <id>license</id>
846      <build>
847        <plugins>
848          <plugin>
849            <groupId>com.mycila.maven-license-plugin</groupId>
850            <artifactId>maven-license-plugin</artifactId>
851            <version>1.9.0</version>
852            <configuration>
853              <quiet>false</quiet>
854              <header>src/main/resources/license-header.txt</header>
855              <aggregate>true</aggregate>
856              <includes>
857                <include>src/**</include>
858                <include>**/pom.xml</include>
859              </includes>
860              <excludes>
861                <exclude>**/.git/**</exclude>
862                <exclude>**/src/test/resources/moustache/**</exclude>
863                <exclude>**/src/test/resources/test-lib/fake-jar</exclude>
864                <exclude>**/src/main/resources/META-INF/services/jersey-server-components</exclude>
865                <exclude>**/WEB-INF/_scalate/**</exclude>
866                <exclude>**/dummy.txt</exclude>
867                <exclude>**/foo.txt</exclude>
868                <exclude>**/foo.mustache</exclude>
869                <exclude>**/src/highlight/**</exclude>
870                <exclude>**/.livereload</exclude>
871                <exclude>**/pygmentize.css</exclude>
872                <exclude>**/*.md</exclude>
873                <exclude>**/*.conf</exclude>
874                <exclude>**/*.page</exclude>
875                <exclude>**/banner.txt</exclude>
876                
877
878                <!-- ignore files produced during a build -->
879                <exclude>**/target/**</exclude>
880
881                <!-- ignore binary files -->
882                <exclude>**/*.jpg</exclude>
883                <exclude>**/*.png</exclude>
884                <exclude>**/*.gif</exclude>
885                <exclude>**/*.ico</exclude>
886                <exclude>**/*.keystore</exclude>
887              </excludes>
888              <useDefaultExcludes>false</useDefaultExcludes>
889              <mapping>
890                <ssp>DYNASCRIPT_STYLE</ssp>
891                <jj>JAVADOC_STYLE</jj>
892                <index>SCRIPT_STYLE</index>
893                <jade>HAML_STYLE</jade>
894              </mapping>
895            </configuration>
896            <executions>
897              <execution>
898                <goals>
899                  <goal>check</goal>
900                </goals>
901              </execution>
902            </executions>
903          </plugin>
904        </plugins>
905      </build>
906    </profile>
907
908    <!-- lets us pre compile Scalate templates as part of the build -->
909    <profile>
910      <id>precompile</id>
911      <build>
912        <plugins>
913          <plugin>
914            <groupId>org.scalatra.scalate</groupId>
915            <artifactId>maven-scalate-plugin_2.10</artifactId>
916            <version>${project.version}</version>
917            <executions>
918              <execution>
919                <goals>
920                  <goal>precompile</goal>
921                </goals>
922              </execution>
923            </executions>
924          </plugin>
925        </plugins>
926      </build>
927    </profile>
928
929    <profile>
930      <id>jrebel</id>
931      <dependencies>
932        <dependency>
933          <groupId>org.scalatra.scalate</groupId>
934          <artifactId>scalate-jrebel_2.10</artifactId>
935          <version>${project.version}</version>
936        </dependency>
937      </dependencies>
938    </profile>
939
940    <!-- the camel module requires JDK 1.6 -->
941    <profile>
942      <id>jdk6</id>
943      <activation>
944        <jdk>[1.6,)</jdk>
945      </activation>
946      <modules>
947        <module>scalate-camel</module>
948      </modules>
949    </profile>
950  </profiles>
951</project>