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