/archetypes/scalate-archetype-sitegen/pom.xml

http://github.com/scalate/scalate · XML · 114 lines · 78 code · 13 blank · 23 comment · 0 complexity · 5f1f60555f5a5dcf162e12dc05c41fe6 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/xsd/maven-4.0.0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <parent>
  19. <groupId>org.scalatra.scalate.tooling</groupId>
  20. <artifactId>archetypes_2.10</artifactId>
  21. <version>1.7.2-SNAPSHOT</version>
  22. </parent>
  23. <artifactId>scalate-archetype-sitegen_2.10</artifactId>
  24. <packaging>maven-archetype</packaging>
  25. <name>${project.artifactId}</name>
  26. <description>An archetype which creates an empty Scalate static website generation project</description>
  27. <build>
  28. <extensions>
  29. <extension>
  30. <groupId>org.apache.maven.archetype</groupId>
  31. <artifactId>archetype-packaging</artifactId>
  32. <version>${archetype-plugin-version}</version>
  33. </extension>
  34. </extensions>
  35. <resources>
  36. <resource>
  37. <directory>${basedir}/src/main/resources</directory>
  38. <filtering>true</filtering>
  39. </resource>
  40. <resource>
  41. <directory>${basedir}/target/resources</directory>
  42. <filtering>false</filtering>
  43. </resource>
  44. </resources>
  45. <plugins>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-archetype-plugin</artifactId>
  49. <version>2.0</version>
  50. <extensions>true</extensions>
  51. </plugin>
  52. <plugin>
  53. <artifactId>maven-antrun-plugin</artifactId>
  54. <executions>
  55. <execution>
  56. <phase>generate-resources</phase>
  57. <configuration>
  58. <tasks>
  59. <!--
  60. TODO if ever the maven archetype plugin could actually include resources
  61. from elsewhere we could remove this crap
  62. -->
  63. <copy todir="${basedir}/target/resources/archetype-resources" overwrite="false" verbose="true">
  64. <fileset dir="${basedir}/../../samples/scalate-sample-sitegen">
  65. <include name="src/**" />
  66. <include name="ext/**" />
  67. <include name="runlivereload" />
  68. </fileset>
  69. </copy>
  70. </tasks>
  71. </configuration>
  72. <goals>
  73. <goal>run</goal>
  74. </goals>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. <plugin>
  79. <artifactId>maven-clean-plugin</artifactId>
  80. <version>2.4.1</version>
  81. <configuration>
  82. <filesets>
  83. <fileset>
  84. <directory>src/main/resources/archetype-resources</directory>
  85. <includes>
  86. <include>ext/**</include>
  87. <include>src/**</include>
  88. <include>runlivereload</include>
  89. </includes>
  90. </fileset>
  91. </filesets>
  92. </configuration>
  93. </plugin>
  94. </plugins>
  95. </build>
  96. </project>